Skip to content

Commit 23f1d57

Browse files
EugeneHlushkomontogeek
authored andcommitted
docs(infra) format scss files for maintainability (#2914)
1 parent aa50d9f commit 23f1d57

File tree

7 files changed

+38
-75
lines changed

7 files changed

+38
-75
lines changed

src/components/Cube/Cube.scss

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
@import 'functions';
22

33
.cube {
4-
position:relative;
5-
display:block;
6-
transform-style:preserve-3d;
7-
transform:rotateX(-33.5deg) rotateY(45deg);
4+
position: relative;
5+
display: block;
6+
transform-style: preserve-3d;
7+
transform: rotateX(-33.5deg) rotateY(45deg);
88

99
&__inner,
1010
&__outer {
11-
display:inline-block;
12-
transform-style:preserve-3d;
13-
transition:transform 1000ms;
11+
display: inline-block;
12+
transform-style: preserve-3d;
13+
transition: transform 1000ms;
1414
}
1515

1616
&__inner {
17-
position:absolute;
18-
top:-2px;
19-
left:0;
17+
position: absolute;
18+
top: -2px;
19+
left: 0;
2020
}
2121

2222
&__face {
23-
position:absolute;
24-
width:100%;
25-
height:100%;
23+
position: absolute;
24+
width: 100%;
25+
height: 100%;
2626
border: 1px solid getColor(white);
2727
}
2828

2929
.cube__outer .cube__face {
30-
background:transparentize(getColor(malibu), 0.5);
30+
background: transparentize(getColor(malibu), 0.5);
3131
transition: border-width 0.2s;
3232
transition-delay: 0.2s;
3333
}
3434

3535
.cube__inner .cube__face {
36-
background:getColor(denim);
36+
background: getColor(denim);
3737
border: 2px solid getColor(white);
3838
}
3939
}

src/components/Footer/Footer.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
justify-content: space-between;
1313
align-content: center;
1414
padding: 0.4em 0;
15-
border-top:1px solid getColor(concrete);
15+
border-top: 1px solid getColor(concrete);
1616

1717
@include break {
1818
flex-direction: initial;
@@ -41,7 +41,7 @@
4141

4242
.footer__right {
4343
@include break {
44-
padding-right:1.5em;
44+
padding-right: 1.5em;
4545
}
4646
}
4747

src/components/Markdown/Markdown.scss

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import "vars";
2-
@import "functions";
3-
@import "prism-theme";
1+
@import 'vars';
2+
@import 'functions';
3+
@import 'prism-theme';
44

55
.markdown {
66
line-height: 1.5em;
@@ -378,39 +378,4 @@
378378
white-space: pre-line;
379379
}
380380
}
381-
382-
// TODO: Is the following still needed with remark-collapse?
383-
//
384-
// details:focus,
385-
// summary:focus {
386-
// outline: none;
387-
// background: rgba(255,255,255,0.03);
388-
// border-radius: 2px;
389-
// }
390-
391-
// @media screen and (-webkit-min-device-pixel-ratio:0) {
392-
// /* Style details arrow if on webkit */
393-
394-
// details summary::-webkit-details-marker {
395-
// color: getColor(malibu);
396-
// }
397-
398-
// summary::-webkit-details-marker {
399-
// display: none
400-
// }
401-
// summary:after {
402-
// content: "\F103";
403-
// float: left;
404-
// position: relative;
405-
// left: -2px;
406-
// text-align: center;
407-
// font-family: icons;
408-
// color: lighten(getColor(denim), 10%)
409-
// }
410-
411-
// details[open] summary:after {
412-
// content: "\F101";
413-
// font-family: icons;
414-
// }
415-
// }
416381
}

src/components/Markdown/prism-theme.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pre[class*="lang-"] {
1111
line-height: 1.5;
1212
tab-size: 4;
1313
hyphens: none;
14-
//color: getColor(fiord);
1514
color: desaturate(getColor(malibu), 40%);
1615
@include fontantialias(false);
1716

@@ -25,7 +24,6 @@ pre[class*="lang-"] {
2524
padding: .4em .8em;
2625
margin: .5em 0;
2726
overflow: auto;
28-
//background-color: rgba(238,238,238,0.35);
2927
background-color: getColor(elephant);
3028
}
3129

@@ -52,9 +50,6 @@ pre[class*="lang-"] {
5250
opacity: .7;
5351
}
5452

55-
.token.function{
56-
}
57-
5853
.token.property,
5954
.token.tag,
6055
.token.boolean,

src/components/SidebarItem/SidebarItem.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@
7070

7171
a {
7272
color: getColor(emperor);
73-
&:hover { color: getColor(denim); }
73+
74+
&:hover {
75+
color: getColor(denim);
76+
}
7477
}
7578
}
7679

src/components/SidebarMobile/SidebarMobile.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,30 @@
5050
}
5151

5252
.sidebar-mobile__close {
53-
position:absolute;
54-
cursor:pointer;
53+
position: absolute;
54+
cursor: pointer;
5555
right: 22px;
5656
top: 22px;
5757
font-size: 1.3em;
58-
background: getColor(denim);
58+
background-color: getColor(denim);
5959
color: getColor(white);
6060
width: 30px;
6161
height: 30px;
6262
display: flex;
6363
align-items: center;
6464
justify-content: center;
6565
border-radius: 50%;
66-
transition: background 150ms;
66+
transition: background-color 150ms;
6767
-webkit-tap-highlight-color: transparent;
6868

6969
&:hover {
70-
background: darken(getColor(denim), 20%);
70+
background-color: darken(getColor(denim), 20%);
7171
}
7272
}
7373

7474
.sidebar-mobile__section {
7575
border-left: 2px solid transparent;
76-
padding-bottom:0.5em;
76+
padding-bottom: 0.5em;
7777

7878
&--active {
7979
border-left: 2px solid getColor(malibu);

src/components/Splash/Splash.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
text-align:center;
1111

1212
&--dark {
13-
background-color:#f3f3f3;
13+
background-color: #f3f3f3;
1414
}
1515

1616
p {
@@ -19,20 +19,20 @@
1919
}
2020

2121
.container {
22-
padding:5em 1em;
22+
padding: 5em 1em;
2323

2424
@include break {
25-
padding-left:1.5em;
26-
padding-right:1.5em;
25+
padding-left: 1.5em;
26+
padding-right: 1.5em;
2727
}
2828
}
2929

3030
pre {
31-
text-align:left;
31+
text-align: left;
3232
}
3333

3434
.icon-link {
35-
display:none;
35+
display: none;
3636
}
3737
}
3838

@@ -45,7 +45,7 @@
4545

4646
&:before,
4747
&:after {
48-
content: " ";
48+
content: ' ';
4949
display: table;
5050
}
5151

@@ -65,7 +65,7 @@
6565
}
6666
}
6767

68-
/* XXX: Hack to fix markown parsing issues */
68+
/* XXX: Hack to fix markdown parsing issues */
6969
&__right {
7070
margin-bottom: 1em;
7171
}

0 commit comments

Comments
 (0)