Skip to content

Commit 524ee9d

Browse files
committed
Update Docs style
1 parent 1dee8bb commit 524ee9d

4 files changed

Lines changed: 71 additions & 26 deletions

File tree

docs/scss/_hero.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
justify-content: center;
88
padding: 30px;
99
font-size: 16px;
10-
background-color: #fafafa;
1110
}
1211

1312
.docs-c-hero__content {

docs/scss/_layout.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
.docs-l-topbar {
2+
position: relative;
3+
width: 100%;
4+
background-color: #fafafa;
5+
border-bottom: 1px solid #e5e5e5;
6+
&__inner {
7+
max-width: $content-width;
8+
width: 100%;
9+
padding-left: 10px;
10+
padding-right: 10px;
11+
margin-left: auto;
12+
margin-right: auto;
13+
}
14+
.c-navbar {
15+
font-size: 14px;
16+
}
17+
}
18+
119
.docs-l-content {
220
padding-top: 32px;
321
max-width: $content-width;

site/css/docs.css

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
.docs-l-topbar {
2+
position: relative;
3+
width: 100%;
4+
background-color: #fafafa;
5+
border-bottom: 1px solid #e5e5e5;
6+
}
7+
8+
.docs-l-topbar__inner {
9+
max-width: 1020px;
10+
width: 100%;
11+
padding-left: 10px;
12+
padding-right: 10px;
13+
margin-left: auto;
14+
margin-right: auto;
15+
}
16+
17+
.docs-l-topbar .c-navbar {
18+
font-size: 14px;
19+
}
20+
121
.docs-l-content {
222
padding-top: 32px;
323
max-width: 1020px;
@@ -79,7 +99,6 @@
7999
justify-content: center;
80100
padding: 30px;
81101
font-size: 16px;
82-
background-color: #fafafa;
83102
}
84103

85104
.docs-c-hero__content {

site/css/point.css

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -715,28 +715,28 @@ abbr[title] {
715715
margin-right: auto;
716716
padding-left: 10px;
717717
padding-right: 10px;
718-
width: 100%;
719718
max-width: 100%;
719+
width: 100%;
720720
}
721721

722722
@media (min-width: 768px) {
723723
.l-container {
724-
width: 100%;
725724
max-width: 100%;
725+
width: 100%;
726726
}
727727
}
728728

729729
@media (min-width: 1024px) {
730730
.l-container {
731-
width: 980px;
732-
max-width: 100%;
731+
max-width: 980px;
732+
width: 100%;
733733
}
734734
}
735735

736736
@media (min-width: 1200px) {
737737
.l-container {
738-
width: 1180px;
739-
max-width: 100%;
738+
max-width: 1180px;
739+
width: 100%;
740740
}
741741
}
742742

@@ -1460,6 +1460,8 @@ abbr[title] {
14601460
-webkit-box-align: center;
14611461
-ms-flex-align: center;
14621462
align-items: center;
1463+
-ms-flex-wrap: nowrap;
1464+
flex-wrap: nowrap;
14631465
}
14641466

14651467
.l-level.is-top {
@@ -1482,12 +1484,13 @@ abbr[title] {
14821484

14831485
.l-level > .l-level__item {
14841486
-webkit-box-flex: 1;
1485-
-ms-flex: 1;
1487+
-ms-flex: 1 1 0%;
14861488
flex: 1 1 0%;
14871489
text-align: center;
14881490
}
14891491

14901492
.l-level__left,
1493+
.l-level__center,
14911494
.l-level__right {
14921495
display: -webkit-box;
14931496
display: -ms-flexbox;
@@ -1497,28 +1500,24 @@ abbr[title] {
14971500
align-items: center;
14981501
}
14991502

1500-
.l-level__left.is-shrink,
1501-
.l-level__right.is-shrink {
1502-
-ms-flex-negative: 1;
1503-
flex-shrink: 1;
1504-
min-width: 0;
1505-
}
1506-
15071503
.l-level__left.is-top,
1504+
.l-level__center.is-top,
15081505
.l-level__right.is-top {
15091506
-webkit-box-align: start;
15101507
-ms-flex-align: start;
15111508
align-items: flex-start;
15121509
}
15131510

15141511
.l-level__left.is-bottom,
1512+
.l-level__center.is-bottom,
15151513
.l-level__right.is-bottom {
15161514
-webkit-box-align: end;
15171515
-ms-flex-align: end;
15181516
align-items: flex-end;
15191517
}
15201518

15211519
.l-level__left > .l-level__item:not(:last-child),
1520+
.l-level__center > .l-level__item:not(:last-child),
15221521
.l-level__right > .l-level__item:not(:last-child) {
15231522
margin-right: 16px;
15241523
}
@@ -1539,6 +1538,9 @@ abbr[title] {
15391538
-webkit-box-ordinal-group: 3;
15401539
-ms-flex-order: 2;
15411540
order: 2;
1541+
-webkit-box-pack: center;
1542+
-ms-flex-pack: center;
1543+
justify-content: center;
15421544
}
15431545

15441546
.l-level__right {
@@ -1553,6 +1555,21 @@ abbr[title] {
15531555
justify-content: flex-end;
15541556
}
15551557

1558+
.l-level__left.is-auto,
1559+
.l-level__right.is-auto {
1560+
-webkit-box-flex: 1;
1561+
-ms-flex: 1 1 auto;
1562+
flex: 1 1 auto;
1563+
min-width: 0;
1564+
}
1565+
1566+
.l-level__left.is-fixed,
1567+
.l-level__right.is-fixed {
1568+
-webkit-box-flex: 0;
1569+
-ms-flex: none;
1570+
flex: none;
1571+
}
1572+
15561573
.form-input,
15571574
.form-select,
15581575
.form-textarea {
@@ -2054,16 +2071,8 @@ input[type="checkbox"].form-switch:checked:after {
20542071
-webkit-box-align: center;
20552072
-ms-flex-align: center;
20562073
align-items: center;
2057-
-webkit-box-orient: horizontal;
2058-
-webkit-box-direction: normal;
2059-
-ms-flex-flow: row wrap;
2060-
flex-flow: row wrap;
2061-
}
2062-
2063-
.form-inline::after {
2064-
content: "";
2065-
display: table;
2066-
clear: both;
2074+
-ms-flex-wrap: nowrap;
2075+
flex-wrap: nowrap;
20672076
}
20682077

20692078
.form-inline .form-group {

0 commit comments

Comments
 (0)