Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 5432e7b

Browse files
committed
Misc style improvements
1 parent 2ce2a36 commit 5432e7b

11 files changed

Lines changed: 69 additions & 32 deletions

File tree

_scss/app.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@
3636
@import 'partials/progress-bar';
3737
@import 'partials/tooltip';
3838
@import 'partials/popover';
39-
40-
41-
39+
@import 'partials/ee-only';
4240

4341
.hide {
4442
display: none;

_scss/partials/_buttons.scss

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,24 @@
1414
background-repeat: repeat-x;
1515
border: none;
1616
transition: .3s;
17-
}
1817

19-
.btn:hover, .btn:focus, .btn:active, .btn.active, .btn.disabled, .btn[disabled] {
20-
color: $body-font-color;
21-
background-color: #e6e6e6;
22-
}
18+
&:visited {
19+
color: $body-font-color;
20+
background-color: #f5f5f5;
21+
}
22+
23+
&:hover, &:focus {
24+
color: $body-font-color;
25+
background-color: #e6e6e6;
26+
}
27+
28+
&:active, &.active {
29+
background-color: #cccccc;
30+
}
2331

24-
.btn:active, .btn.active {
25-
background-color: #cccccc;
32+
&.disabled, &[disabled] {
33+
opacity: .4;
34+
}
2635
}
2736

2837
.btn:first-child {

_scss/partials/_code.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,10 @@ h1 code, h2 code, h3 code, h4 code, h5 code {
107107
border-radius: 3px;
108108
margin: 0 0 20px;
109109
}
110+
111+
112+
.language-bash pre.highlight:before {
113+
display: inline;
114+
content: '$';
115+
margin-right: 5px;
116+
}

_scss/partials/_ee-only.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.ee-only {
2+
display: inline-block;
3+
font-size: $font-size-sm;
4+
font-weight: $font-weight-bold;
5+
padding: .3em .8em;
6+
border: 1px solid #fac49f;
7+
letter-spacing: .04em;
8+
9+
&:before {
10+
display: inline-block;
11+
width: 14px;
12+
height: 14px;
13+
line-height: 1;
14+
content: '';
15+
background: url(../i/icons/ee-only.svg) no-repeat center;
16+
margin: 0 .5em 0 0;
17+
vertical-align: baseline;
18+
}
19+
20+
.page-intro & {
21+
margin: .7em 0 0 0;
22+
}
23+
}

_scss/partials/_footer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636

3737
// For two colum layout, offset the footer to support the fixed sidebar
38-
.layout-default &, .layout-videos &, .layout-video &, .layout-specification &{
38+
.layout-default &, .layout-videos &, .layout-video &, .layout-specification &, .layout-tutorial & {
3939
margin-left: $sidebar-width;
4040
}
4141

_scss/partials/_popover.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
position: absolute;
300300
margin-left: -15px;
301301
margin-right: -15px;
302-
background: url(../img/loading.gif) no-repeat;
302+
background: url(../i/loader.svg) no-repeat;
303303
}
304304
@-webkit-keyframes rotate {
305305
100% {

_scss/partials/_search.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ input[type=search] {
8787

8888
}
8989

90-
.algolia__result-highlight {
91-
//background: yellow;
92-
font-weight: 700;
90+
.ais-Highlight {
91+
font-style: normal;
92+
background: #FFF8D7;
9393
}
9494

9595

@@ -296,8 +296,7 @@ a.clear-all:hover {
296296
}
297297

298298
.ais-refinement-list--item {
299-
margin: 0 0 20px 0;
300-
font-size: 16px;
299+
margin: 0 0 1em 0;
301300
}
302301

303302
.ais-refinement-list--count {

_scss/partials/_site-header.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
overflow: hidden;
4040
display: none;
4141
z-index: 50;
42-
border-left: 1px solid $beige-color;
42+
border-left: 1px solid $border-color;
4343
}
4444

4545
.menu-icon {
@@ -75,7 +75,7 @@
7575
@media ( $medium-screen ) {
7676

7777
.site-nav {
78-
outline: 1px solid $beige-color;
78+
outline: 1px solid $border-color;
7979
}
8080

8181
.menu-btn {

_scss/partials/_typography.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
1616
}
1717

1818
h1 {
19-
font-size: 46px;
20-
line-height: 1.3;
19+
font-size: 2.8em;
20+
line-height: 1.2;
2121
letter-spacing: 0.01em;
2222
margin: 0 0 20px 0;
2323
font-weight: 300;
2424
}
2525

2626
h1.page-subtitle {
27-
font-size: 22px;
27+
font-size: 2em;
2828
color: #6E6E70;
2929
margin: 8px 0 0 0;
3030
}
@@ -240,6 +240,10 @@ hr {
240240
border-bottom: 1px solid #ffffff;
241241
}
242242

243+
abbr {
244+
text-decoration: none;
245+
}
246+
243247
abbr[title], abbr[data-original-title] {
244248
cursor: help;
245249
border-bottom: 1px dotted #999999;

_scss/partials/_videos.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,26 +142,23 @@
142142
}
143143

144144
.sidebar ul .playlist-name {
145-
padding: 0;
146-
147-
148145
a {
149-
font-weight: 700;
150-
font-size: 15px;
151-
color: #5F6061;
152-
padding-top: 0;
146+
font-weight: $font-weight-bold;
153147
}
154148
}
155149
}
156150

157-
151+
.video-player {
152+
margin-bottom: 2em;
153+
}
158154

159155
.video-player.affix {
160156
position: fixed;
161157
bottom: 30px;
162158
left: 20px;
163159
width: 20%;
164160
z-index: 9999;
161+
margin: 0;
165162

166163
box-shadow: 0 5px 16px rgba(0,0,0,.4);
167164
}

0 commit comments

Comments
 (0)