Browse Source

SCSS linting: add newline after every selector

merge-requests/72/head
Deimos 6 years ago
parent
commit
0b05d469c7
  1. 1
      tildes/package.json
  2. 16
      tildes/scss/_base.scss
  3. 6
      tildes/scss/_placeholders.scss
  4. 3
      tildes/scss/modules/_comment.scss
  5. 3
      tildes/scss/modules/_divider.scss
  6. 3
      tildes/scss/modules/_form.scss
  7. 3
      tildes/scss/modules/_group.scss
  8. 3
      tildes/scss/modules/_link.scss
  9. 3
      tildes/scss/modules/_menu.scss
  10. 3
      tildes/scss/modules/_post.scss
  11. 4
      tildes/scss/modules/_site-header.scss
  12. 18
      tildes/scss/modules/_text.scss
  13. 7
      tildes/scss/themes/_theme_base.scss

1
tildes/package.json

@ -136,6 +136,7 @@
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-descendant-combinator-no-non-space": true,
"selector-list-comma-newline-after": "always",
"selector-list-comma-newline-before": "never-multi-line",
"selector-max-empty-lines": 0,
"selector-pseudo-class-case": "lower",

16
tildes/scss/_base.scss

@ -86,7 +86,12 @@ form {
max-width: 40rem;
}
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: 0.4rem;
}
@ -147,11 +152,13 @@ menu {
// We'll use lists for their semantic value sometimes, so we don't want them to
// have the normal list numbering/etc. by default. We'll specifically add that
// back in for text-based lists in places where it's needed.
ol, ul {
ol,
ul {
list-style: none;
margin: 0;
ol, ul {
ol,
ul {
list-style: none;
}
}
@ -188,7 +195,8 @@ table {
margin-bottom: 1rem;
}
td, th {
td,
th {
border-bottom: $border-width solid;
padding: $unit-3 $unit-2;
}

6
tildes/scss/_placeholders.scss

@ -16,7 +16,8 @@
max-width: $paragraph-max-width;
}
ol, ul {
ol,
ul {
$list-left-margin: 2rem;
margin: 0 0 0.4rem $list-left-margin;
@ -25,7 +26,8 @@
max-width: $paragraph-max-width - $list-left-margin;
}
ol, ul {
ol,
ul {
margin-left: 1rem;
}

3
tildes/scss/modules/_comment.scss

@ -215,7 +215,8 @@
}
}
.is-comment-deleted, .is-comment-removed {
.is-comment-deleted,
.is-comment-removed {
font-size: 0.7rem;
font-style: italic;
}

3
tildes/scss/modules/_divider.scss

@ -1,6 +1,7 @@
// Copyright (c) 2018 Tildes contributors <code@tildes.net>
// SPDX-License-Identifier: AGPL-3.0-or-later
.divider, .divider[data-content] {
.divider,
.divider[data-content] {
margin: 1rem;
}

3
tildes/scss/modules/_form.scss

@ -14,7 +14,8 @@ select.form-select:not([multiple]) {
.form-listing-options {
margin-left: 1rem;
label, select {
label,
select {
font-size: 0.6rem;
}

3
tildes/scss/modules/_group.scss

@ -28,7 +28,8 @@
align-items: center;
margin: 1rem 0;
.group-subscription-count, button {
.group-subscription-count,
button {
flex: 1; // makes the two elements equal width
}

3
tildes/scss/modules/_link.scss

@ -1,7 +1,8 @@
// Copyright (c) 2018 Tildes contributors <code@tildes.net>
// SPDX-License-Identifier: AGPL-3.0-or-later
a.link-user, a.link-group {
a.link-user,
a.link-group {
white-space: nowrap;
text-decoration: none;

3
tildes/scss/modules/_menu.scss

@ -3,7 +3,8 @@
.menu {
.menu-item {
> a:hover, > a:focus {
> a:hover,
> a:focus {
background-color: transparent;
}
}

3
tildes/scss/modules/_post.scss

@ -6,7 +6,8 @@
margin-bottom: 1rem;
}
.is-topic-mine, .is-topic-official {
.is-topic-mine,
.is-topic-official {
margin-left: -1px;
}
}

4
tildes/scss/modules/_site-header.scss

@ -43,7 +43,9 @@
font-size: 1.2rem;
font-weight: bold;
&:hover, &:active, &:focus {
&:hover,
&:active,
&:focus {
text-decoration: none;
}

18
tildes/scss/modules/_text.scss

@ -12,23 +12,33 @@
// special formatting rules for wiki pages
.text-wiki {
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
a {
text-decoration: none;
}
}
h1, h2, h3 {
h1,
h2,
h3 {
border-bottom: 1px dotted;
padding-bottom: 0.2rem;
}
h1, h2 {
h1,
h2 {
margin-top: 2rem;
}
// smaller margin when two large headers are sequential
h1 + h1, h1 + h2, h2 + h2 {
h1 + h1,
h1 + h2,
h2 + h2 {
margin-top: 1rem;
}

7
tildes/scss/themes/_theme_base.scss

@ -445,7 +445,12 @@
}
.text-wiki {
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
a {
color: map-get($theme, "foreground-highlight");
}

Loading…
Cancel
Save