Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
[TASK] Remove sass lint exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xf- committed Feb 4, 2017
1 parent 6e6d2b7 commit 2598bc2
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 25 deletions.
9 changes: 1 addition & 8 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
rules:
single-line-per-selector: 0
# Allow for new prefixes like -webkit-tap-highlight-color or antialiasing
# Can maybe be enabled again with sass-lint 1.8 https://github.com/sasstools/sass-lint/pull/709
no-vendor-prefixes: 0
# Needed for old 'display: -vendor-prefix-property' for higher browser-support
no-duplicate-properties: 0
# Needed for unique-id()
empty-args: 0
# No global rules currently
17 changes: 13 additions & 4 deletions scss/modules/_base.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: transparent; // sass-lint:disable-line no-vendor-prefixes
background: $color-white;
color: $color-black;
font-family: $font-family;
Expand All @@ -12,7 +12,12 @@ header {
background: transparentize($color-black, .98);
}

h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: bold;
}

Expand All @@ -31,12 +36,16 @@ h3 {
padding: 1em 0;
}

h2, h3 {
h2,
h3 {
padding-left: $button-distance;
padding-right: $button-distance;
}

p, pre, ul, h4 {
p,
pre,
ul,
h4 {
padding: 0 $button-distance 1em;
}

Expand Down
3 changes: 2 additions & 1 deletion scss/modules/_infobox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
font-family: $font-family-icons;
}

input, textarea {
input,
textarea {
border: 1px solid $color-gray-light;
font-family: $font-family-monospace;
font-size: 1.15em;
Expand Down
3 changes: 2 additions & 1 deletion scss/modules/_legend.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
}
}

.legend-online, .legend-offline {
.legend-online,
.legend-offline {
margin-left: 1em;
}
1 change: 1 addition & 0 deletions scss/modules/_reset.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
// http://cssreset.com
// sass-lint:disable-all
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
Expand Down
18 changes: 12 additions & 6 deletions scss/modules/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
padding-bottom: 15px;
}

.node-list, .node-links {
th, td {
.node-list,
.node-links {
th,
td {
&:first-child {
width: 25px;
}
Expand All @@ -38,15 +40,17 @@
}

.node-links {
th, td {
th,
td {
&:first-child {
width: 50px;
}
}
}

.link-list {
th, td {
th,
td {
&:nth-child(1) {
overflow: hidden;
text-overflow: ellipsis;
Expand All @@ -56,7 +60,8 @@
}
}

.infobox, .container {
.infobox,
.container {
@if $shadows == 1 {
@include shadow(2);
} @else {
Expand All @@ -83,7 +88,8 @@
left: $sidebar-width-small + $button-distance;
}

.container, .infobox {
.container,
.infobox {
border-radius: 0;
@if $shadows == 1 {
box-shadow: none;
Expand Down
6 changes: 4 additions & 2 deletions scss/modules/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ table {
}
}

td, th {
td,
th {
line-height: 1.41em;
text-align: right;

Expand Down Expand Up @@ -61,7 +62,8 @@ th {
}
}

&.sort-up, &.sort-down {
&.sort-up,
&.sort-down {
&::after {
opacity: .4;
visibility: visible;
Expand Down
4 changes: 2 additions & 2 deletions scss/modules/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
}
background: transparentize($color-black, .98);
display: flex;
display: -webkit-flex;
display: -webkit-flex; // sass-lint:disable-line no-vendor-prefixes no-duplicate-properties
list-style: none;
margin: 0;
padding: 0;

li {
-webkit-flex: 1 1 auto;
-webkit-flex: 1 1 auto; // sass-lint:disable-line no-vendor-prefixes
color: transparentize($color-black, .5);
cursor: pointer;
flex: 1 1 auto;
Expand Down
3 changes: 2 additions & 1 deletion scss/night.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ html {

//@import 'modules/sidebar';
.sidebar {
.infobox, .container {
.infobox,
.container {
background: transparentize($color-white, .03);
border-right: 1px solid darken($color-white, 10%);
}
Expand Down

0 comments on commit 2598bc2

Please sign in to comment.