Skip to content

Commit e9a8ed1

Browse files
authored
Merge pull request jupyter#524 from jupyter/gut-bootstrap
Gut out all the unused bootstrap components
2 parents bba0094 + 6be79fe commit e9a8ed1

17 files changed

+1703
-6585
lines changed

_sass/_bootstrap.scss

Lines changed: 0 additions & 6584 deletions
This file was deleted.

_sass/bootstrap/_basics.scss

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
* {
2+
-webkit-box-sizing: border-box;
3+
-moz-box-sizing: border-box;
4+
box-sizing: border-box;
5+
}
6+
*:before,
7+
*:after {
8+
-webkit-box-sizing: border-box;
9+
-moz-box-sizing: border-box;
10+
box-sizing: border-box;
11+
}
12+
html {
13+
font-size: 10px;
14+
15+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
16+
}
17+
body {
18+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
19+
font-size: 14px;
20+
line-height: 1.42857143;
21+
color: #333;
22+
background-color: #fff;
23+
}
24+
input,
25+
button,
26+
select,
27+
textarea {
28+
font-family: inherit;
29+
font-size: inherit;
30+
line-height: inherit;
31+
}
32+
hr {
33+
margin-top: 20px;
34+
margin-bottom: 20px;
35+
border: 0;
36+
border-top: 1px solid #eee;
37+
}
38+
.clearfix:before,
39+
.clearfix:after,
40+
.container:before,
41+
.container:after,
42+
.container-fluid:before,
43+
.container-fluid:after,
44+
.row:before,
45+
.row:after,
46+
.nav:before,
47+
.nav:after,
48+
.navbar:before,
49+
.navbar:after,
50+
.navbar-header:before,
51+
.navbar-header:after,
52+
.navbar-collapse:before,
53+
.navbar-collapse:after {
54+
display: table;
55+
content: " ";
56+
}
57+
.clearfix:after,
58+
.dl-horizontal dd:after,
59+
.container:after,
60+
.container-fluid:after,
61+
.row:after,
62+
.nav:after,
63+
.navbar:after,
64+
.navbar-header:after,
65+
.navbar-collapse:after {
66+
clear: both;
67+
}
68+
.center-block {
69+
display: block;
70+
margin-right: auto;
71+
margin-left: auto;
72+
}
73+
.pull-right {
74+
float: right !important;
75+
}
76+
.pull-left {
77+
float: left !important;
78+
}
79+
.hide {
80+
display: none !important;
81+
}
82+
.show {
83+
display: block !important;
84+
}
85+
.invisible {
86+
visibility: hidden;
87+
}
88+
.text-hide {
89+
font: 0/0 a;
90+
color: transparent;
91+
text-shadow: none;
92+
background-color: transparent;
93+
border: 0;
94+
}
95+
.hidden {
96+
display: none !important;
97+
}
98+
.affix {
99+
position: fixed;
100+
}
101+
@-ms-viewport {
102+
width: device-width;
103+
}

_sass/bootstrap/_code.scss

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
code, pre {
2+
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
3+
}
4+
code {
5+
padding: 2px 4px;
6+
font-size: 90%;
7+
color: #c7254e;
8+
background-color: #f9f2f4;
9+
border-radius: 4px;
10+
}
11+
pre {
12+
display: block;
13+
padding: 9.5px;
14+
margin: 0 0 10px;
15+
font-size: 13px;
16+
line-height: 1.42857143;
17+
color: #333;
18+
word-break: break-all;
19+
word-wrap: break-word;
20+
background-color: #f5f5f5;
21+
border: 1px solid #ccc;
22+
border-radius: 4px;
23+
}
24+
pre code {
25+
padding: 0;
26+
font-size: inherit;
27+
color: inherit;
28+
white-space: pre-wrap;
29+
background-color: transparent;
30+
border-radius: 0;
31+
}
32+
.pre-scrollable {
33+
max-height: 340px;
34+
overflow-y: scroll;
35+
}
36+

_sass/bootstrap/_collapse.scss

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.fade {
2+
opacity: 0;
3+
-webkit-transition: opacity .15s linear;
4+
-o-transition: opacity .15s linear;
5+
transition: opacity .15s linear;
6+
}
7+
.fade.in {
8+
opacity: 1;
9+
}
10+
.collapse {
11+
display: none;
12+
}
13+
.collapse.in {
14+
display: block;
15+
}
16+
tr.collapse.in {
17+
display: table-row;
18+
}
19+
tbody.collapse.in {
20+
display: table-row-group;
21+
}
22+
.collapsing {
23+
position: relative;
24+
height: 0;
25+
overflow: hidden;
26+
-webkit-transition-timing-function: ease;
27+
-o-transition-timing-function: ease;
28+
transition-timing-function: ease;
29+
-webkit-transition-duration: .35s;
30+
-o-transition-duration: .35s;
31+
transition-duration: .35s;
32+
-webkit-transition-property: height, visibility;
33+
-o-transition-property: height, visibility;
34+
transition-property: height, visibility;
35+
}
36+

_sass/bootstrap/_container.scss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.container {
2+
padding-right: 15px;
3+
padding-left: 15px;
4+
margin-right: auto;
5+
margin-left: auto;
6+
}
7+
@media (min-width: 768px) {
8+
.container {
9+
width: 750px;
10+
}
11+
}
12+
@media (min-width: 992px) {
13+
.container {
14+
width: 970px;
15+
}
16+
}
17+
@media (min-width: 1200px) {
18+
.container {
19+
width: 1170px;
20+
}
21+
}
22+
.container-fluid {
23+
padding-right: 15px;
24+
padding-left: 15px;
25+
margin-right: auto;
26+
margin-left: auto;
27+
}
28+

_sass/bootstrap/_headlines.scss

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
h1,
2+
h2,
3+
h3,
4+
h4,
5+
h5,
6+
h6,
7+
.h1,
8+
.h2,
9+
.h3,
10+
.h4,
11+
.h5,
12+
.h6 {
13+
font-family: inherit;
14+
font-weight: 500;
15+
line-height: 1.1;
16+
color: inherit;
17+
}
18+
h1 small,
19+
h2 small,
20+
h3 small,
21+
h4 small,
22+
h5 small,
23+
h6 small,
24+
.h1 small,
25+
.h2 small,
26+
.h3 small,
27+
.h4 small,
28+
.h5 small,
29+
.h6 small,
30+
h1 .small,
31+
h2 .small,
32+
h3 .small,
33+
h4 .small,
34+
h5 .small,
35+
h6 .small,
36+
.h1 .small,
37+
.h2 .small,
38+
.h3 .small,
39+
.h4 .small,
40+
.h5 .small,
41+
.h6 .small {
42+
font-weight: normal;
43+
line-height: 1;
44+
color: #777;
45+
}
46+
h1,
47+
.h1,
48+
h2,
49+
.h2,
50+
h3,
51+
.h3 {
52+
margin-top: 20px;
53+
margin-bottom: 10px;
54+
}
55+
h1 small,
56+
.h1 small,
57+
h2 small,
58+
.h2 small,
59+
h3 small,
60+
.h3 small,
61+
h1 .small,
62+
.h1 .small,
63+
h2 .small,
64+
.h2 .small,
65+
h3 .small,
66+
.h3 .small {
67+
font-size: 65%;
68+
}
69+
h4,
70+
.h4,
71+
h5,
72+
.h5,
73+
h6,
74+
.h6 {
75+
margin-top: 10px;
76+
margin-bottom: 10px;
77+
}
78+
h4 small,
79+
.h4 small,
80+
h5 small,
81+
.h5 small,
82+
h6 small,
83+
.h6 small,
84+
h4 .small,
85+
.h4 .small,
86+
h5 .small,
87+
.h5 .small,
88+
h6 .small,
89+
.h6 .small {
90+
font-size: 75%;
91+
}
92+
h1,
93+
.h1 {
94+
font-size: 36px;
95+
}
96+
h2,
97+
.h2 {
98+
font-size: 30px;
99+
}
100+
h3,
101+
.h3 {
102+
font-size: 24px;
103+
}
104+
h4,
105+
.h4 {
106+
font-size: 18px;
107+
}
108+
h5,
109+
.h5 {
110+
font-size: 14px;
111+
}
112+
h6,
113+
.h6 {
114+
font-size: 12px;
115+
}
116+

_sass/bootstrap/_hyperlinks.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
a {
2+
color: #337ab7;
3+
text-decoration: none;
4+
}
5+
a:hover,
6+
a:focus {
7+
color: #23527c;
8+
text-decoration: underline;
9+
}
10+
a:focus {
11+
outline: thin dotted;
12+
outline: 5px auto -webkit-focus-ring-color;
13+
outline-offset: -2px;
14+
}
15+

_sass/bootstrap/_images.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
figure {
2+
margin: 0;
3+
}
4+
img {
5+
vertical-align: middle;
6+
}
7+
.img-responsive,
8+
.thumbnail > img,
9+
.thumbnail a > img,
10+
.carousel-inner > .item > img,
11+
.carousel-inner > .item > a > img {
12+
display: block;
13+
max-width: 100%;
14+
height: auto;
15+
}
16+
.img-rounded {
17+
border-radius: 6px;
18+
}
19+
.img-thumbnail {
20+
display: inline-block;
21+
max-width: 100%;
22+
height: auto;
23+
padding: 4px;
24+
line-height: 1.42857143;
25+
background-color: #fff;
26+
border: 1px solid #ddd;
27+
border-radius: 4px;
28+
-webkit-transition: all .2s ease-in-out;
29+
-o-transition: all .2s ease-in-out;
30+
transition: all .2s ease-in-out;
31+
}
32+
.img-circle {
33+
border-radius: 50%;
34+
}
35+

0 commit comments

Comments
 (0)