Skip to content

Commit 6a0b4cb

Browse files
committed
ADD: New Documents experience
1 parent a6c0404 commit 6a0b4cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+42662
-103
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
index.html linguist-documentation
1+
**/*.html linguist-documentation

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,11 @@ You can compile your custom version of Spectre.css. Read [the documentation](htt
7070

7171
### Browser support
7272
Spectre uses [Autoprefixer](https://github.com/postcss/autoprefixer) to make most styles compatible with earlier browsers and [Normalize.css](https://necolas.github.io/normalize.css/) for CSS resets. Spectre is designed for modern browsers. For best compatibility, these browsers are recommended:
73-
- Chrome (last two)
74-
- Edge (last two)
75-
- Firefox (last two)
73+
- Chrome (last three)
74+
- Microsoft Edge (last three)
75+
- Firefox (last three)
76+
- Safari (last three)
77+
- Opera (last three)
7678
- Internet Explorer 10+
77-
- Microsoft Edge
78-
- Opera (last two)
79-
- Safari 6+
8079

8180
Designed and built with ♥ by [Yan Zhu](https://twitter.com/picturepan2). Feel free to submit a pull request. Help is always appreciated.

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spectre.css",
3-
"version": "0.1.32",
3+
"version": "0.2.1",
44
"description": "Spectre.css: a lightweight, responsive and modern CSS framework.",
55
"homepage": "http://picturepan2.github.io/spectre",
66
"repository": "picturepan2/spectre",

dist/spectre.css

+72-43
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,9 @@ hr {
7474
/* 2 */
7575
}
7676
/**
77-
* 1. Correct the inheritance and scaling of font size in all browsers.
77+
* 1. Correct the inheritance and scaling of font size in all browsers. (removed)
7878
* 2. Correct the odd `em` font sizing in all browsers.
7979
*/
80-
pre {
81-
font-family: monospace, monospace;
82-
/* 1 */
83-
font-size: 1em;
84-
/* 2 */
85-
}
8680
/* Text-level semantics
8781
========================================================================== */
8882
/**
@@ -127,6 +121,7 @@ strong {
127121
*/
128122
code,
129123
kbd,
124+
pre,
130125
samp {
131126
font-family: monospace, monospace;
132127
/* 1 */
@@ -471,7 +466,7 @@ h6 {
471466
font-size: 1.6rem;
472467
}
473468
p {
474-
margin: 0 0 1rem;
469+
margin: 0 0 1em;
475470
}
476471
blockquote {
477472
border-left: .2rem solid #ddd;
@@ -520,15 +515,15 @@ dl dd {
520515
mark {
521516
background: #ffe5a3;
522517
border-radius: .2rem;
523-
font-size: .95em;
518+
font-size: 95%;
524519
padding: .1em .3em;
525520
vertical-align: baseline;
526521
}
527522
kbd {
528523
background: #333;
529524
border-radius: .2rem;
530525
color: #fff;
531-
font-size: .95em;
526+
font-size: 95%;
532527
padding: .1em .3em;
533528
vertical-align: baseline;
534529
}
@@ -539,39 +534,55 @@ abbr[title] {
539534
}
540535
ins,
541536
u {
542-
border-bottom: .1rem solid;
543-
text-decoration: none;
544-
}
545-
pre {
546-
background: #f9f9f9;
547-
line-height: 1.8rem;
548-
margin-bottom: 1em;
549-
margin-top: 1em;
550-
overflow: auto;
551-
padding: 1.5rem 2.5rem;
537+
text-decoration: underline;
552538
}
553539
code {
554540
background: #efefef;
555541
border-radius: .2rem;
556542
color: #666;
557-
font-size: .95em;
543+
font-size: 95%;
558544
padding: .1em .3em;
559545
vertical-align: baseline;
560-
white-space: nowrap;
561546
}
562-
pre code {
547+
pre {
548+
background: #f9f9f9;
549+
line-height: 1.8rem;
550+
margin-bottom: 1em;
551+
margin-top: 1em;
552+
overflow: auto;
553+
padding: 2rem 2.5rem;
554+
position: relative;
555+
}
556+
pre > code {
563557
background: transparent;
564558
border-left: 0;
559+
font-size: 1em;
565560
line-height: 1.8rem;
566-
margin-bottom: 0;
567-
margin-top: 0;
561+
padding: 0;
562+
}
563+
pre > code::before {
564+
color: #c5c5c5;
565+
content: attr(data-lang);
566+
font-size: 1.2rem;
567+
position: absolute;
568+
right: 1rem;
569+
top: .2rem;
568570
}
569571
:lang(zh),
570572
:lang(ja),
571573
:lang(ko),
572574
.cjk {
573575
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Hiragino Kaku Gothic Pro", Meiryo, "Malgun Gothic", "Helvetica Neue", sans-serif;
574576
}
577+
:lang(zh) ins,
578+
:lang(ja) ins,
579+
.cjk ins,
580+
:lang(zh) u,
581+
:lang(ja) u,
582+
.cjk u {
583+
border-bottom: .1rem solid;
584+
text-decoration: none;
585+
}
575586
:lang(zh) del + del,
576587
:lang(ja) del + del,
577588
.cjk del + del,
@@ -633,7 +644,7 @@ pre code {
633644
height: 3.2rem;
634645
line-height: 1.6rem;
635646
outline: 0;
636-
padding: .7rem 1rem;
647+
padding: .7rem 1.2rem;
637648
text-align: center;
638649
text-decoration: none;
639650
transition: all .15s ease;
@@ -646,7 +657,7 @@ pre code {
646657
}
647658
.btn:focus {
648659
background: #f3f4fb;
649-
box-shadow: 0 0 .4rem rgba(87, 100, 198, .25);
660+
box-shadow: 0 0 .5rem rgba(87, 100, 198, .25);
650661
}
651662
.btn:hover {
652663
background: #5764c6;
@@ -797,7 +808,7 @@ pre code {
797808
}
798809
.form-input:focus {
799810
border-color: #5764c6;
800-
box-shadow: 0 0 .4rem rgba(87, 100, 198, .25);
811+
box-shadow: 0 0 .5rem rgba(87, 100, 198, .25);
801812
}
802813
.form-input[disabled] {
803814
background: #eeeff2;
@@ -873,7 +884,7 @@ textarea.form-input {
873884
}
874885
.form-select:focus {
875886
border-color: #5764c6;
876-
box-shadow: 0 0 .4rem rgba(87, 100, 198, .25);
887+
box-shadow: 0 0 .5rem rgba(87, 100, 198, .25);
877888
}
878889
.form-select::-ms-expand {
879890
display: none;
@@ -911,7 +922,7 @@ textarea.form-input {
911922
.form-radio input:focus + .form-icon,
912923
.form-switch input:focus + .form-icon {
913924
border-color: #5764c6;
914-
box-shadow: 0 0 .4rem rgba(87, 100, 198, .25);
925+
box-shadow: 0 0 .5rem rgba(87, 100, 198, .25);
915926
}
916927
.form-checkbox,
917928
.form-radio {
@@ -1105,7 +1116,7 @@ textarea.form-input {
11051116
background: #efefef;
11061117
border-radius: .2rem;
11071118
color: #666;
1108-
font-size: .95em;
1119+
font-size: 95%;
11091120
padding: .1em .3em;
11101121
vertical-align: baseline;
11111122
white-space: nowrap;
@@ -1871,25 +1882,36 @@ textarea.form-input {
18711882
.badge {
18721883
position: relative;
18731884
}
1874-
.badge[data-badge]::after {
1885+
.badge[data-badge]::after,
1886+
.badge:not([data-badge])::after,
1887+
.badge[data-badge=""]::after {
18751888
background: #5764c6;
18761889
background-clip: padding-box;
18771890
border: .1rem solid #fff;
18781891
border-radius: 1rem;
18791892
color: #fff;
18801893
content: attr(data-badge);
18811894
display: inline-block;
1895+
-webkit-transform: translate(-.2rem, -.8rem);
1896+
-ms-transform: translate(-.2rem, -.8rem);
1897+
transform: translate(-.2rem, -.8rem);
1898+
}
1899+
.badge[data-badge]::after {
18821900
font-size: 1.1rem;
18831901
height: 1.8rem;
18841902
line-height: 1.2rem;
18851903
min-width: 1.8rem;
1886-
padding: .2rem .5rem;
1904+
padding: .2rem .4rem;
18871905
text-align: center;
1888-
-webkit-transform: translate(-.2rem, -.8rem);
1889-
-ms-transform: translate(-.2rem, -.8rem);
1890-
transform: translate(-.2rem, -.8rem);
18911906
white-space: nowrap;
18921907
}
1908+
.badge:not([data-badge])::after,
1909+
.badge[data-badge=""]::after {
1910+
height: .8rem;
1911+
min-width: .8rem;
1912+
padding: 0;
1913+
width: .8rem;
1914+
}
18931915
.toast {
18941916
background: rgba(51, 51, 51, .9);
18951917
border: .1rem solid #333;
@@ -1937,7 +1959,6 @@ textarea.form-input {
19371959
}
19381960
.menu .menu-item {
19391961
border-radius: .2rem;
1940-
color: #333;
19411962
display: block;
19421963
line-height: 2.4rem;
19431964
margin-top: .1rem;
@@ -2022,11 +2043,12 @@ textarea.form-input {
20222043
margin: 0;
20232044
}
20242045
.breadcrumb .breadcrumb-item a {
2046+
border: none;
20252047
text-decoration: none;
20262048
}
20272049
.breadcrumb .breadcrumb-item:last-child,
20282050
.breadcrumb .breadcrumb-item:last-child a {
2029-
color: #333;
2051+
color: #808080;
20302052
}
20312053
.breadcrumb .breadcrumb-item:not(:last-child)::after {
20322054
color: #c5c5c5;
@@ -2086,13 +2108,12 @@ textarea.form-input {
20862108
}
20872109
.pagination .page-item a {
20882110
border-radius: .2rem;
2089-
color: #333;
2111+
color: #666;
20902112
padding: .6rem .8rem;
20912113
text-decoration: none;
20922114
}
20932115
.pagination .page-item a:focus,
20942116
.pagination .page-item a:hover {
2095-
background: #eff1fa;
20962117
color: #5764c6;
20972118
}
20982119
.pagination .page-item.active a {
@@ -2108,19 +2129,24 @@ textarea.form-input {
21082129
flex-direction: column;
21092130
}
21102131
.nav .nav-item a {
2111-
border-radius: .2rem;
2112-
color: #333;
2132+
color: #666;
21132133
padding: .6rem .8rem;
21142134
text-decoration: none;
21152135
}
21162136
.nav .nav-item a:focus,
21172137
.nav .nav-item a:hover {
21182138
color: #5764c6;
21192139
}
2120-
.nav .nav-item.active a {
2140+
.nav .nav-item.active > a {
2141+
color: #333;
2142+
font-weight: bold;
2143+
}
2144+
.nav .nav-item.active > a:focus,
2145+
.nav .nav-item.active > a:hover {
21212146
color: #5764c6;
21222147
}
21232148
.nav .nav {
2149+
margin-bottom: 1rem;
21242150
margin-left: 2rem;
21252151
}
21262152
.nav .nav a {
@@ -2143,13 +2169,15 @@ textarea.form-input {
21432169
right: 0;
21442170
top: 0;
21452171
}
2172+
.modal:target,
21462173
.modal.active {
21472174
display: flex;
21482175
display: -ms-flexbox;
21492176
display: -webkit-flex;
21502177
opacity: 1;
21512178
z-index: 1988;
21522179
}
2180+
.modal:target .modal-overlay,
21532181
.modal.active .modal-overlay {
21542182
background: rgba(51, 51, 51, .5);
21552183
bottom: 0;
@@ -2159,6 +2187,7 @@ textarea.form-input {
21592187
right: 0;
21602188
top: 0;
21612189
}
2190+
.modal:target .modal-container,
21622191
.modal.active .modal-container {
21632192
-webkit-animation: slide-down .216s;
21642193
animation: slide-down .216s;

dist/spectre.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)