Skip to content

Commit a69875c

Browse files
Update
1 parent 11645dc commit a69875c

File tree

4 files changed

+99
-97
lines changed

4 files changed

+99
-97
lines changed

.factory/index.css.scss

+65-61
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ abbr {
183183

184184
audio,
185185
iframe,
186+
picture,
186187
video {
187188
display: block;
188189
height: auto;
@@ -248,7 +249,6 @@ code {
248249
details {
249250
> summary {
250251
@extend %label;
251-
cursor: pointer;
252252
display: block;
253253
padding-left: 15px;
254254
position: relative;
@@ -381,14 +381,16 @@ legend {
381381

382382
mark {
383383
background: #fff399;
384-
color: inherit;
385384
}
386385

387386
ol {
388387
list-style: decimal;
389388
}
390389

391-
small,
390+
small {
391+
@extend %small;
392+
}
393+
392394
sub,
393395
sup {
394396
@extend %small;
@@ -432,19 +434,6 @@ pre {
432434
}
433435
}
434436

435-
.aside {
436-
width: 280px;
437-
}
438-
439-
.body {
440-
background: #fff;
441-
box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
442-
margin: 50px auto;
443-
padding: 15px;
444-
position: relative;
445-
width: 900px;
446-
}
447-
448437
button,
449438
input,
450439
output,
@@ -616,6 +605,43 @@ textarea {
616605
opacity: 0.6;
617606
}
618607

608+
[role='button'] {
609+
@extend button;
610+
&:focus,
611+
&:hover,
612+
&:active {
613+
color: #fff;
614+
text-decoration: none;
615+
}
616+
&:not(:any-link) {
617+
@extend :disabled;
618+
}
619+
}
620+
621+
[role='deletion'] {
622+
@extend del;
623+
}
624+
625+
[role='img'] {
626+
@extend img;
627+
}
628+
629+
[role='insertion'] {
630+
@extend ins;
631+
}
632+
633+
[role='link'] {
634+
@extend a;
635+
}
636+
637+
[role='mark'] {
638+
@extend mark;
639+
}
640+
641+
.aside {
642+
width: 280px;
643+
}
644+
619645
.banner {
620646
background: #f2f0f1;
621647
margin: 0;
@@ -635,6 +661,15 @@ textarea {
635661
}
636662
}
637663

664+
.body {
665+
background: #fff;
666+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
667+
margin: 50px auto;
668+
padding: 15px;
669+
position: relative;
670+
width: 900px;
671+
}
672+
638673
.content {
639674
background: #fff linear-gradient(#f2f2f2, #fff) repeat-x 0 0;
640675
background-size: 100% 350px;
@@ -792,16 +827,6 @@ textarea {
792827
line-height: 45px;
793828
margin: 0;
794829
text-transform: uppercase;
795-
ul,
796-
li {
797-
list-style: none;
798-
margin: 0;
799-
padding: 0;
800-
}
801-
ul {
802-
display: flex;
803-
flex-wrap: wrap;
804-
}
805830
a {
806831
@extend %label;
807832
border: {
@@ -820,14 +845,26 @@ textarea {
820845
background: rgba(0, 0, 0, 0.045);
821846
}
822847
}
848+
li,
849+
ul {
850+
list-style: none;
851+
margin: 0;
852+
padding: 0;
853+
}
823854
mark {
824855
background: rgba(0, 0, 0, 0.125);
825856
}
826857
li {
827-
&:first-child a {
828-
border-left-width: 0;
858+
&:first-child {
859+
a {
860+
border-left-width: 0;
861+
}
829862
}
830863
}
864+
ul {
865+
display: flex;
866+
flex-wrap: wrap;
867+
}
831868
+ h2 {
832869
display: none;
833870
+ ul {
@@ -1045,39 +1082,6 @@ textarea {
10451082
}
10461083
}
10471084

1048-
[role='button'] {
1049-
@extend button;
1050-
&:focus,
1051-
&:hover,
1052-
&:active {
1053-
color: #fff;
1054-
text-decoration: none;
1055-
}
1056-
&:not(:any-link) {
1057-
@extend :disabled;
1058-
}
1059-
}
1060-
1061-
[role='deletion'] {
1062-
@extend del;
1063-
}
1064-
1065-
[role='img'] {
1066-
@extend img;
1067-
}
1068-
1069-
[role='insertion'] {
1070-
@extend ins;
1071-
}
1072-
1073-
[role='link'] {
1074-
@extend a;
1075-
}
1076-
1077-
[role='mark'] {
1078-
@extend mark;
1079-
}
1080-
10811085
@import './_/x/alert';
10821086
@import './_/x/comment';
10831087
@import './_/x/markdown';

index.css

+32-34
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ s {
216216
text-decoration: line-through;
217217
}
218218

219-
small,
220219
sub,
221-
sup {
220+
sup,
221+
small {
222222
font-size: 90%;
223223
}
224224

@@ -237,6 +237,7 @@ abbr[title]:hover {
237237

238238
audio,
239239
iframe,
240+
picture,
240241
video {
241242
display: block;
242243
height: auto;
@@ -272,7 +273,6 @@ code {
272273
}
273274

274275
details > summary {
275-
cursor: pointer;
276276
display: block;
277277
padding-left: 15px;
278278
position: relative;
@@ -388,14 +388,12 @@ legend {
388388
mark,
389389
[role=mark] {
390390
background: #fff399;
391-
color: inherit;
392391
}
393392

394393
ol {
395394
list-style: decimal;
396395
}
397396

398-
small,
399397
sub,
400398
sup {
401399
position: relative;
@@ -439,19 +437,6 @@ pre code {
439437
padding: 10px;
440438
}
441439

442-
.aside {
443-
width: 280px;
444-
}
445-
446-
.body {
447-
background: #fff;
448-
box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
449-
margin: 50px auto;
450-
padding: 15px;
451-
position: relative;
452-
width: 900px;
453-
}
454-
455440
button,
456441
[role=button],
457442
input[type=button],
@@ -589,6 +574,16 @@ textarea {
589574
opacity: 0.6;
590575
}
591576

577+
[role=button]:focus,
578+
[role=button]:hover,
579+
[role=button]:active {
580+
color: #fff;
581+
text-decoration: none;
582+
}
583+
.aside {
584+
width: 280px;
585+
}
586+
592587
.banner {
593588
background: #f2f0f1;
594589
margin: 0;
@@ -607,6 +602,15 @@ textarea {
607602
display: none;
608603
}
609604

605+
.body {
606+
background: #fff;
607+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
608+
margin: 50px auto;
609+
padding: 15px;
610+
position: relative;
611+
width: 900px;
612+
}
613+
610614
.content {
611615
background: #fff linear-gradient(#f2f2f2, #fff) repeat-x 0 0;
612616
background-size: 100% 350px;
@@ -761,16 +765,6 @@ textarea {
761765
margin: 0;
762766
text-transform: uppercase;
763767
}
764-
.nav ul,
765-
.nav li {
766-
list-style: none;
767-
margin: 0;
768-
padding: 0;
769-
}
770-
.nav ul {
771-
display: flex;
772-
flex-wrap: wrap;
773-
}
774768
.nav a,
775769
.nav [role=link] {
776770
border-left: 1px solid rgba(255, 255, 255, 0.175);
@@ -790,6 +784,12 @@ textarea {
790784
.nav [role=link]:active {
791785
background: rgba(0, 0, 0, 0.045);
792786
}
787+
.nav li,
788+
.nav ul {
789+
list-style: none;
790+
margin: 0;
791+
padding: 0;
792+
}
793793
.nav mark,
794794
.nav [role=mark] {
795795
background: rgba(0, 0, 0, 0.125);
@@ -798,6 +798,10 @@ textarea {
798798
.nav li:first-child [role=link] {
799799
border-left-width: 0;
800800
}
801+
.nav ul {
802+
display: flex;
803+
flex-wrap: wrap;
804+
}
801805
.nav + h2 {
802806
display: none;
803807
}
@@ -992,12 +996,6 @@ textarea {
992996
display: table;
993997
}
994998

995-
[role=button]:focus,
996-
[role=button]:hover,
997-
[role=button]:active {
998-
color: #fff;
999-
text-decoration: none;
1000-
}
1001999
[role=alert] {
10021000
background: #ffffd8;
10031001
border: 1px solid rgba(0, 0, 0, 0.125);

0 commit comments

Comments
 (0)