Skip to content

Commit b9e1e00

Browse files
committed
Style changes
1 parent b79c338 commit b9e1e00

File tree

3 files changed

+68
-10
lines changed

3 files changed

+68
-10
lines changed

docs/assets/css/apiDocs.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3625,11 +3625,24 @@ body {
36253625
.apiDocs .nav #navInner .version {
36263626
float: none;
36273627
display: block; } }
3628+
.apiDocs .nav #navInner .version span {
3629+
display: none; }
3630+
@media only screen and (min-width: 768px) {
3631+
.apiDocs .nav #navInner .version span {
3632+
display: inline-block; } }
36283633
.apiDocs .nav #navInner .version select {
36293634
background: transparent;
36303635
border-radius: 30px;
36313636
color: white;
3632-
border: 1px solid white; }
3637+
border: 1px solid white;
3638+
position: relative;
3639+
background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%);
3640+
background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
3641+
background-size: 5px 5px, 5px 5px, 1px 1.5em;
3642+
background-repeat: no-repeat;
3643+
-webkit-appearance: none;
3644+
-moz-appearance: none;
3645+
appearance: none; }
36333646
.apiDocs .nav #navInner .version select:focus,
36343647
.apiDocs .nav #navInner .version select :active,
36353648
.apiDocs .nav #navInner .version select :hover {
@@ -3705,6 +3718,11 @@ body {
37053718
display: inline-block;
37063719
background: #FFF;
37073720
border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
3721+
.apiDocs .wrap .header.-main {
3722+
background: #9FA8DA;
3723+
/* fallback for old browsers */
3724+
background: linear-gradient(to right, #9FA8DA, #5C6BC0);
3725+
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ }
37083726
.apiDocs .wrap .header h1 {
37093727
font-size: 3em; }
37103728
.apiDocs .wrap .content {

docs/index.html

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,24 @@ <h1>apiDocs</h1>
3333

3434

3535
<div class="version">
36-
<span>
37-
Version
38-
</span>
39-
<select class="" name="">
40-
<option> 1.0.0</option>
41-
<option> 1.0.4</option>
42-
</select>
36+
37+
<form class="" action="#" method="post">
38+
<div class="form-group">
39+
<span>
40+
Version
41+
</span>
42+
<select class="" name="">
43+
<option> 1.0.0</option>
44+
<option> 1.0.4</option>
45+
</select>
46+
</div>
47+
</form>
48+
49+
50+
4351

4452
</div>
45-
53+
4654
<div class="menu-toggle">
4755

4856
<a class="btnToggle" href="#">
@@ -97,7 +105,7 @@ <h1>apiDocs</h1>
97105
<div class="wrap">
98106

99107

100-
<div class="header">
108+
<div class="header -main">
101109
<h1>apiDocs</h1>
102110
<h3>Free to use documentation template</h3> Bacon ipsum dolor amet chuck tongue shank, porchetta brisket swine drumstick pork chop ball tip jerky andouille cow venison beef tenderloin. Corned beef jowl chuck turkey, tail pancetta frankfurter pig t-bone cow porchetta. Pork belly
103111
strip steak

src/scss/_main.scss

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,36 @@ body {
148148
display: block;
149149
}
150150

151+
span{
152+
display: none;
153+
@include grid-media($neat-grid-tablet) {
154+
display: inline-block;
155+
}
156+
157+
}
158+
151159
select {
152160
background: transparent;
153161
border-radius: 30px;
154162
color: $textLightPrimary;
155163
border: 1px solid $textLightPrimary;
164+
position: relative;
165+
166+
background-image:
167+
linear-gradient(45deg, transparent 50%, gray 50%),
168+
linear-gradient(135deg, gray 50%, transparent 50%);
169+
background-position:
170+
calc(100% - 20px) calc(1em + 2px),
171+
calc(100% - 15px) calc(1em + 2px),
172+
calc(100% - 2.5em) 0.5em;
173+
background-size:
174+
5px 5px,
175+
5px 5px,
176+
1px 1.5em;
177+
background-repeat: no-repeat;
178+
appearance: none;
179+
180+
156181

157182
&:focus,
158183
:active,
@@ -258,6 +283,13 @@ body {
258283
background: #FFF;
259284
border-bottom: 1px solid $textDarkDivider;
260285

286+
&.-main{
287+
background: #9FA8DA; /* fallback for old browsers */
288+
background: linear-gradient(to right, #9FA8DA, #5C6BC0); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
289+
290+
}
291+
292+
261293
h1 {
262294
font-size: 3em;
263295
}

0 commit comments

Comments
 (0)