diff -u b/core/modules/color/color.module b/core/modules/color/color.module --- b/core/modules/color/color.module +++ b/core/modules/color/color.module @@ -247,7 +247,9 @@ } /** - * Prepares variables for color-scheme-form.html.twig. + * Prepares variables for color scheme form templates. + * + * Default template: color-scheme-form.html.twig. * * @param array $variables * An associative array containing: reverted: --- b/core/modules/color/css/color.admin.css +++ a/core/modules/color/css/color.admin.css @@ -4,46 +4,33 @@ */ .color-form { max-width: 50em; - position: relative; -} -#placeholder { - position: absolute; - right: 0; /* LTR */ - top: 0; } .farbtastic { margin: 0 auto; } .color-form .form-item { + overflow: hidden; - height: 2em; - line-height: 2em; margin: 0.5em 0; - overflow: hidden; - padding-left: 1em; /* LTR */ } .color-form label { clear: left; /* LTR */ - float: left; /* LTR */ - width: 10em; } [dir="rtl"] .color-form label { clear: right; } .color-form .form-text { - cursor: pointer; float: left; /* LTR */ + width: 86%; - margin-right: 5px; /* LTR */ text-align: center; + cursor: pointer; - width: 86%; } [dir="rtl"] .color-form .form-text { float: right; } #palette .hook { float: left; /* LTR */ + width: 16px; height: 16px; - margin-top: 3px; - width: 16px; } [dir="rtl"] #palette .hook { float: right; @@ -71,14 +58,11 @@ background-position: 0 -54px; } #palette .lock { + float: left; /* LTR */ + width: 20px; + height: 19px; background: url(../images/lock.png) no-repeat 50% 0; cursor: pointer; - float: left; /* LTR */ - height: 19px; - left: -10px; /* LTR */ - position: relative; - top: -1.4em; - width: 20px; } [dir="rtl"] #palette .lock { float: right; @@ -143,8 +127,8 @@ } .js #preview { display: block; + position: relative; float: left; /* LTR */ - position: relative; } .js[dir="rtl"] #preview { float: right;