Skip to content

Commit 992efe3

Browse files
committed
Refactor styles according to new linting
1 parent 40e8bc9 commit 992efe3

File tree

12 files changed

+19
-27
lines changed

12 files changed

+19
-27
lines changed

pattern_library/static/pattern_library/src/scss/_config.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
$site-title: 'Django Pattern Library';
33
$color-primary: #34b2b2;
44
$family-primary:
5-
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
6-
Cantarell, 'Helvetica Neue', sans-serif;
5+
-apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen-sans, ubuntu,
6+
cantarell, 'Helvetica Neue', sans-serif;
77

88
// $color--primary + $family--primary are in _config.scss
99
$white: #fff;

pattern_library/static/pattern_library/src/scss/abstracts/_base.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ h6 {
2525
}
2626

2727
a {
28-
word-wrap: break-word;
28+
overflow-wrap: break-word;
2929
color: $link-color;
3030
}
3131

@@ -58,7 +58,7 @@ a {
5858
height: 1px;
5959
overflow: hidden;
6060
opacity: 0;
61-
clip: rect(1px, 1px, 1px, 1px);
61+
clip-path: rect(1px, 1px, 1px, 1px);
6262
}
6363

6464
@keyframes fadeInOut {

pattern_library/static/pattern_library/src/scss/components/_heading.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
top: 20%;
1313
left: 50%;
1414
transform: translate(-50%, -50%);
15-
background: rgba(0, 0, 0, 0.78);
15+
background: rgb(0, 0, 0, 0.78);
1616
padding: 20px;
1717
border-radius: 10px;
1818
font-weight: bold;

pattern_library/static/pattern_library/src/scss/components/_iframe.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
margin: 20px 0;
88
resize: both;
99
overflow: auto;
10-
height: 300px;
1110
height: 415px;
1211

1312
&.is-animatable {

pattern_library/static/pattern_library/src/scss/components/_md.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.md {
22
padding: 20px;
3-
background-color: #eee;
3+
background-color: $off-white;
44

55
h1,
66
h2,

pattern_library/static/pattern_library/src/scss/components/_tabbed-listing.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
text-align: center;
1616

1717
> a {
18-
color: color.adjust(#000, $lightness: 30%);
18+
color: color.adjust($black, $lightness: 30%);
1919
padding: 12px 0;
2020
display: block;
2121
width: 100%;
@@ -26,14 +26,14 @@
2626
background-color 0.25s ease;
2727

2828
&:hover {
29-
color: #000;
29+
color: $black;
3030
background-color: $color-primary;
3131
}
3232
}
3333

3434
&--active {
3535
> a {
36-
color: #000;
36+
color: $black;
3737
background-color: $color-primary;
3838
}
3939
}

pattern_library/static/pattern_library/src/scss/hljs/_a11y-dark.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
/* a11y-dark theme */
2-
/* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */
3-
/* @author: ericwbailey */
1+
// a11y-dark theme
2+
// Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
3+
// @author: ericwbailey
4+
5+
// stylelint-disable selector-class-pattern, scale-unlimited/declaration-strict-value
46

57
/* Comment */
68
.hljs-comment,

pattern_library/static/pattern_library/src/scss/hljs/_a11y-light.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
/* a11y-light theme */
2-
/* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */
3-
/* @author: ericwbailey */
1+
// a11y-light theme
2+
// Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
3+
// @author: ericwbailey
4+
5+
// stylelint-disable selector-class-pattern, scale-unlimited/declaration-strict-value
46

57
/* Comment */
68
.hljs-comment,

pattern_library/static/pattern_library/src/scss/layout/_body.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
@use '../config' as *;
22

33
.body {
4-
display: -ms-grid;
54
display: grid;
6-
-ms-grid-columns: $sidebar-width 1fr;
7-
-ms-grid-rows: 45px 1fr;
85
grid-template-columns: $sidebar-width 1fr;
96

107
&.nav-closed {
11-
-ms-grid-columns: 0 1fr;
128
grid-template-columns: 0 1fr;
139
}
1410

pattern_library/static/pattern_library/src/scss/layout/_header.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
display: flex;
66
align-items: center;
77
height: 45px;
8-
-ms-grid-column: 1;
9-
-ms-grid-row: 1;
10-
-ms-grid-column-span: 2;
118
grid-column: 1 / span 2;
129

1310
&__title {

0 commit comments

Comments
 (0)