Skip to content
Snippets Groups Projects
Commit 54cc3d75 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1872598 by LewisNyman, rachel_norfolk, echoz, djbobbydrake: Fixed...

Issue #1872598 by LewisNyman, rachel_norfolk, echoz, djbobbydrake: Fixed Bartik color settings not responsive.
parent 75b8c067
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -2,62 +2,33 @@ ...@@ -2,62 +2,33 @@
* @file * @file
* Stylesheet for the administration pages of the Color module. * Stylesheet for the administration pages of the Color module.
*/ */
/* Farbtastic placement */
.color-form { .color-form {
max-width: 50em; max-width: 50em;
position: relative;
}
#placeholder {
position: absolute;
top: 0;
right: 0; /* LTR */
} }
[dir="rtl"] #placeholder { .farbtastic {
left: 0; margin: 0 auto;
right: auto;
} }
/* Palette */
.color-form .form-item { .color-form .form-item {
height: 2em; overflow: hidden;
line-height: 2em;
padding-left: 1em; /* LTR */
margin: 0.5em 0; margin: 0.5em 0;
} }
[dir="rtl"] .color-form .form-item {
padding-left: 0;
padding-right: 1em;
}
.color-form label { .color-form label {
float: left; /* LTR */
clear: left; /* LTR */ clear: left; /* LTR */
width: 10em;
} }
[dir="rtl"] .color-form label { [dir="rtl"] .color-form label {
float: right;
clear: right; clear: right;
} }
.color-form .form-text,
.color-form .form-select {
float: left; /* LTR */
}
[dir="rtl"] .color-form .form-text,
[dir="rtl"] .color-form .form-select {
float: right;
}
.color-form .form-text { .color-form .form-text {
float: left; /* LTR */
width: 86%;
text-align: center; text-align: center;
margin-right: 5px; /* LTR */
cursor: pointer; cursor: pointer;
} }
[dir="rtl"] .color-form .form-text { [dir="rtl"] .color-form .form-text {
margin-right: 0; float: right;
margin-left: 5px;
} }
#palette .hook { #palette .hook {
float: left; /* LTR */ float: left; /* LTR */
margin-top: 3px;
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
...@@ -72,7 +43,7 @@ ...@@ -72,7 +43,7 @@
[dir="rtl"] #palette .down, [dir="rtl"] #palette .down,
[dir="rtl"] #palette .up, [dir="rtl"] #palette .up,
[dir="rtl"] #palette .both { [dir="rtl"] #palette .both {
background: url(images/hook-rtl.png) no-repeat 0 0; background: url(../images/hook-rtl.png) no-repeat 0 0;
} }
#palette .up { #palette .up {
background-position: 100% -27px; /* LTR */ background-position: 100% -27px; /* LTR */
...@@ -88,25 +59,65 @@ ...@@ -88,25 +59,65 @@
} }
#palette .lock { #palette .lock {
float: left; /* LTR */ float: left; /* LTR */
position: relative;
top: -1.4em;
left: -10px; /* LTR */
width: 20px; width: 20px;
height: 25px; height: 19px;
background: url(../images/lock.png) no-repeat 50% 2px; background: url(../images/lock.png) no-repeat 50% 0;
cursor: pointer; cursor: pointer;
} }
[dir="rtl"] #palette .lock { [dir="rtl"] #palette .lock {
float: right; float: right;
right: -10px;
} }
#palette .unlocked { #palette .unlocked {
background-position: 50% -22px; background-position: 50% -22px;
} }
#palette .form-item {
width: 20em; /* wide viewport. */
} @media screen and (min-width: 37.5625em) { /* 601px */
#palette .item-selected { #placeholder {
float: right; /* LTR */
}
[dir="rtl"] #placeholder {
float: left;
}
.color-form .form-item {
margin: 0.5em 195px 0.5em 0; /* LTR */
}
[dir="rtl"] .color-form .form-item {
margin: 0.5em 0 0.5em 195px;
}
.color-form label {
float: left; /* LTR */
clear: left; /* LTR */
width: 15em;
}
[dir="rtl"] .color-form label {
float: right;
clear: right;
}
.color-form .form-text,
.color-form .form-select {
float: left; /* LTR */
width: auto;
}
[dir="rtl"] .color-form .form-text,
[dir="rtl"] .color-form .form-select {
float: right;
}
#palette .hook {
float: left; /* LTR */
margin-top: 3px;
}
[dir="rtl"] #palette .hook {
float: right;
}
#palette .lock {
float: left; /* LTR */
}
[dir="rtl"] #palette .lock {
float: right;
}
}
.item-selected {
background: #eee; background: #eee;
} }
...@@ -122,3 +133,10 @@ ...@@ -122,3 +133,10 @@
.js[dir="rtl"] #preview { .js[dir="rtl"] #preview {
float: right; float: right;
} }
@media screen and (max-width: 30em) { /* 480px */
.color-form #preview-sidebar,
.color-form #preview-content {
width: auto;
margin: 0;
}
}
/* ---------- Color form ----------- */
#color_scheme_form #palette .form-item {
width: 25em;
}
#color_scheme_form #palette .form-item label {
width: 15em;
}
/* ---------- Preview Styles ----------- */ /* ---------- Preview Styles ----------- */
.js #preview { .js #preview {
clear: both; clear: both;
float: none !important; float: none !important;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment