Issue #2866799 by cwells: Update stylelint rule at-rule-empty-line-before to be consistent with Drupal's CSS standards

8.5.x
Alex Pott 2018-01-05 09:37:45 +00:00
parent 3b06c57e4f
commit d540d6426f
26 changed files with 39 additions and 1 deletions

View File

@ -4,7 +4,6 @@
"stylelint-no-browser-hacks/lib" "stylelint-no-browser-hacks/lib"
], ],
"rules": { "rules": {
"at-rule-empty-line-before": null,
"block-no-empty": null, "block-no-empty": null,
"color-hex-case": null, "color-hex-case": null,
"color-hex-length": null, "color-hex-length": null,

View File

@ -143,6 +143,7 @@ button.is-unlocked,
.js[dir="rtl"] .color-preview { .js[dir="rtl"] .color-preview {
float: right; float: right;
} }
@media screen and (max-width: 30em) { /* 480px */ @media screen and (max-width: 30em) { /* 480px */
.color-form .color-preview-sidebar, .color-form .color-preview-sidebar,
.color-form .color-preview-content { .color-form .color-preview-content {

View File

@ -125,6 +125,7 @@
margin: 0 0 0.25em 1.5em; margin: 0 0 0.25em 1.5em;
padding: 0; padding: 0;
} }
@media screen and (max-width: 40em) { @media screen and (max-width: 40em) {
#locale-translation-status-form th.title { #locale-translation-status-form th.title {
width: 20%; width: 20%;

View File

@ -16,6 +16,7 @@
padding: 0; padding: 0;
vertical-align: baseline; vertical-align: baseline;
} }
@media print { @media print {
#toolbar-administration { #toolbar-administration {
display: none; display: none;
@ -238,6 +239,7 @@ body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
margin-left: 240px; /* LTR */ margin-left: 240px; /* LTR */
margin-left: 15rem; /* LTR */ margin-left: 15rem; /* LTR */
} }
@media print { @media print {
body.toolbar-tray-open.toolbar-vertical.toolbar-fixed { body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
margin-left: 0; margin-left: 0;
@ -249,6 +251,7 @@ body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
margin-right: 240px; margin-right: 240px;
margin-right: 15rem; margin-right: 15rem;
} }
@media print { @media print {
[dir="rtl"] body.toolbar-tray-open.toolbar-vertical.toolbar-fixed { [dir="rtl"] body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
margin-right: 0; margin-right: 0;

View File

@ -32,6 +32,7 @@
top: 0; top: 0;
left: 0; left: 0;
} }
@media only screen and (max-width: 767px) { @media only screen and (max-width: 767px) {
.joyride-tip-guide { .joyride-tip-guide {
width: 85%; width: 85%;

View File

@ -483,6 +483,7 @@ td.group-title {
.view-preview-form .form-actions { .view-preview-form .form-actions {
vertical-align: top; vertical-align: top;
} }
@media screen and (min-width: 45em) { /* 720px */ @media screen and (min-width: 45em) { /* 720px */
.view-preview-form .form-type-textfield .description { .view-preview-form .form-type-textfield .description {
white-space: nowrap; white-space: nowrap;

View File

@ -10,6 +10,7 @@
.featured-bottom .region { .featured-bottom .region {
padding: 0 20px; padding: 0 20px;
} }
@media all and (min-width: 560px) { @media all and (min-width: 560px) {
.featured-bottom .region { .featured-bottom .region {
float: left; /* LTR */ float: left; /* LTR */
@ -22,6 +23,7 @@
float: right; float: right;
} }
} }
@media all and (min-width: 851px) { @media all and (min-width: 851px) {
.featured-bottom .region { .featured-bottom .region {
padding: 0 20px; padding: 0 20px;

View File

@ -42,6 +42,7 @@
padding: 0 0 0 1em; padding: 0 0 0 1em;
float: right; float: right;
} }
@media all and (min-width: 560px) { @media all and (min-width: 560px) {
.node .field--type-image { .node .field--type-image {
float: left; /* LTR */ float: left; /* LTR */

View File

@ -11,6 +11,7 @@
.region-header .site-branding { .region-header .site-branding {
margin-top: 0.429em; margin-top: 0.429em;
} }
@media all and (min-width: 461px) { @media all and (min-width: 461px) {
.region-header .block { .region-header .block {
float: right; /* LTR */ float: right; /* LTR */
@ -27,6 +28,7 @@
float: right; float: right;
} }
} }
@media screen and (max-width: 460px) { @media screen and (max-width: 460px) {
.region-header { .region-header {
padding-bottom: 0.357em; padding-bottom: 0.357em;
@ -38,6 +40,7 @@
margin: 0 0 1em; margin: 0 0 1em;
clear: right; clear: right;
} }
@media all and (min-width: 901px) { @media all and (min-width: 901px) {
.region-header .block:not(.site-branding) { .region-header .block:not(.site-branding) {
margin: 1.167em 0 1em; margin: 1.167em 0 1em;

View File

@ -13,6 +13,7 @@
width: 100%; width: 100%;
} }
} }
@media all and (min-width: 851px) { @media all and (min-width: 851px) {
.layout-one-sidebar .sidebar { .layout-one-sidebar .sidebar {
width: 25%; width: 25%;

View File

@ -16,11 +16,13 @@
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
} }
@media all and (min-width: 461px) { @media all and (min-width: 461px) {
.site-branding__text { .site-branding__text {
margin-bottom: 1.857em; margin-bottom: 1.857em;
} }
} }
@media all and (min-width: 901px) { @media all and (min-width: 901px) {
.site-branding__text { .site-branding__text {
padding: 1.286em 0 0; padding: 1.286em 0 0;
@ -31,6 +33,7 @@
color: #686868; color: #686868;
line-height: 1; line-height: 1;
} }
@media all and (min-width: 901px) { @media all and (min-width: 901px) {
.site-branding__name { .site-branding__name {
font-size: 1.821em; font-size: 1.821em;

View File

@ -10,6 +10,7 @@
.site-footer .layout-container { .site-footer .layout-container {
padding: 0 15px; padding: 0 15px;
} }
@media all and (min-width: 560px) { @media all and (min-width: 560px) {
.site-footer__top .region { .site-footer__top .region {
float: left; /* LTR */ float: left; /* LTR */
@ -20,6 +21,7 @@
float: right; float: right;
} }
} }
@media all and (min-width: 560px) and (max-width: 850px) { @media all and (min-width: 560px) and (max-width: 850px) {
.site-footer .region { .site-footer .region {
box-sizing: border-box; box-sizing: border-box;
@ -42,6 +44,7 @@
clear: both; clear: both;
} }
} }
@media all and (min-width: 851px) { @media all and (min-width: 851px) {
.site-footer__top .region { .site-footer__top .region {
width: 24%; width: 24%;

View File

@ -68,6 +68,7 @@ tr th {
display: none; display: none;
} }
} }
@media screen and (max-width: 60em) { /* 920px */ @media screen and (max-width: 60em) { /* 920px */
th.priority-low, th.priority-low,
td.priority-low { td.priority-low {

View File

@ -24,6 +24,7 @@ div.tabs {
background-color: #ffffff; background-color: #ffffff;
border: 1px solid #bbb; border: 1px solid #bbb;
} }
@media screen and (max-width: 37.5em) { /* 600px */ @media screen and (max-width: 37.5em) { /* 600px */
.tabs ul.primary { .tabs ul.primary {
border-bottom: 1px solid #bbb; border-bottom: 1px solid #bbb;
@ -39,6 +40,7 @@ div.tabs {
border-bottom: none; border-bottom: none;
} }
} }
@media screen and (min-width: 37.5em) { /* 600px */ @media screen and (min-width: 37.5em) { /* 600px */
.tabs ul.primary { .tabs ul.primary {
border-collapse: collapse; border-collapse: collapse;

View File

@ -12,6 +12,7 @@
margin-right: auto; margin-right: auto;
box-sizing: border-box; box-sizing: border-box;
} }
@media all and (min-width: 851px) { @media all and (min-width: 851px) {
.layout-container { .layout-container {
max-width: 1290px; max-width: 1290px;

View File

@ -53,6 +53,7 @@ body.maintenance-page {
line-height: 1em; line-height: 1em;
margin-top: 0; margin-top: 0;
} }
@media all and (min-width: 800px) { @media all and (min-width: 800px) {
.maintenance-page #page-wrapper { .maintenance-page #page-wrapper {
width: 800px; width: 800px;
@ -62,6 +63,7 @@ body.maintenance-page {
width: 700px; width: 700px;
} }
} }
@media all and (min-width: 600px) { /* @TODO find the proper breakpoint */ @media all and (min-width: 600px) { /* @TODO find the proper breakpoint */
.maintenance-page #page { .maintenance-page #page {
margin: 20px 40px 40px; margin: 20px 40px 40px;

View File

@ -12,6 +12,7 @@
border: solid 1px #ccc; border: solid 1px #ccc;
padding: 0; padding: 0;
} }
@media all and (max-width: 48em) { /* 768px */ @media all and (max-width: 48em) { /* 768px */
.ui-dialog { .ui-dialog {
width: 92% !important; width: 92% !important;

View File

@ -51,10 +51,12 @@
0% { background-position: 0 0, 0 0; } 0% { background-position: 0 0, 0 0; }
100% { background-position: 0 0, -80px 0; } 100% { background-position: 0 0, -80px 0; }
} }
@-ms-keyframes animate-stripes { @-ms-keyframes animate-stripes {
0% { background-position: 0 0, 0 0; } 0% { background-position: 0 0, 0 0; }
100% { background-position: 0 0, -80px 0; } 100% { background-position: 0 0, -80px 0; }
} }
@keyframes animate-stripes { @keyframes animate-stripes {
0% { background-position: 0 0, 0 0; } 0% { background-position: 0 0, 0 0; }
100% { background-position: 0 0, -80px 0; } 100% { background-position: 0 0, -80px 0; }

View File

@ -9,6 +9,7 @@
z-index: 1260; z-index: 1260;
padding: 0; padding: 0;
} }
@media all and (max-width: 48em) { /* 768px */ @media all and (max-width: 48em) { /* 768px */
.ui-dialog { .ui-dialog {
min-width: 92%; min-width: 92%;

View File

@ -143,6 +143,7 @@ th.select-all {
display: none; display: none;
} }
} }
@media screen and (max-width: 60em) { /* 920px */ @media screen and (max-width: 60em) { /* 920px */
th.priority-low, th.priority-low,
td.priority-low { td.priority-low {

View File

@ -110,6 +110,7 @@
display: table; display: table;
clear: both; clear: both;
} }
@media all and (max-width: 48em) { /* 768px */ @media all and (max-width: 48em) { /* 768px */
.layout-container { .layout-container {
margin: 1.25em; margin: 1.25em;

View File

@ -143,6 +143,7 @@ button.is-unlocked,
.js[dir="rtl"] .color-preview { .js[dir="rtl"] .color-preview {
float: right; float: right;
} }
@media screen and (max-width: 30em) { /* 480px */ @media screen and (max-width: 30em) { /* 480px */
.color-form .color-preview-sidebar, .color-form .color-preview-sidebar,
.color-form .color-preview-content { .color-form .color-preview-content {

View File

@ -125,6 +125,7 @@
margin: 0 0 0.25em 1.5em; margin: 0 0 0.25em 1.5em;
padding: 0; padding: 0;
} }
@media screen and (max-width: 40em) { @media screen and (max-width: 40em) {
#locale-translation-status-form th.title { #locale-translation-status-form th.title {
width: 20%; width: 20%;

View File

@ -16,6 +16,7 @@
padding: 0; padding: 0;
vertical-align: baseline; vertical-align: baseline;
} }
@media print { @media print {
#toolbar-administration { #toolbar-administration {
display: none; display: none;
@ -238,6 +239,7 @@ body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
margin-left: 240px; /* LTR */ margin-left: 240px; /* LTR */
margin-left: 15rem; /* LTR */ margin-left: 15rem; /* LTR */
} }
@media print { @media print {
body.toolbar-tray-open.toolbar-vertical.toolbar-fixed { body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
margin-left: 0; margin-left: 0;
@ -249,6 +251,7 @@ body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
margin-right: 240px; margin-right: 240px;
margin-right: 15rem; margin-right: 15rem;
} }
@media print { @media print {
[dir="rtl"] body.toolbar-tray-open.toolbar-vertical.toolbar-fixed { [dir="rtl"] body.toolbar-tray-open.toolbar-vertical.toolbar-fixed {
margin-right: 0; margin-right: 0;

View File

@ -32,6 +32,7 @@
top: 0; top: 0;
left: 0; left: 0;
} }
@media only screen and (max-width: 767px) { @media only screen and (max-width: 767px) {
.joyride-tip-guide { .joyride-tip-guide {
width: 85%; width: 85%;

View File

@ -483,6 +483,7 @@ td.group-title {
.view-preview-form .form-actions { .view-preview-form .form-actions {
vertical-align: top; vertical-align: top;
} }
@media screen and (min-width: 45em) { /* 720px */ @media screen and (min-width: 45em) { /* 720px */
.view-preview-form .form-type-textfield .description { .view-preview-form .form-type-textfield .description {
white-space: nowrap; white-space: nowrap;