Skip to content

Commit a92128e

Browse files
AlmeroSteyngaearon
authored andcommitted
[Docs: Installation] Fix tabs responsive layout - Resubmit (#9458)
* [Docs: Installation] Fix tabs responsive layout * Move tabs a pixel down * Remove left margin on first tab * Remove the long line * Fix mobile styles
1 parent 9bb7ca5 commit a92128e

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

docs/docs/installation.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,43 @@ React is flexible and can be used in a variety of projects. You can create new a
2323
<style>
2424
.toggler li {
2525
display: inline-block;
26+
position: relative;
27+
top: 1px;
2628
padding: 10px;
27-
margin: 2px;
29+
margin: 0px 2px 0px 2px;
2830
border: 1px solid #05A5D1;
29-
border-radius: 3px;
31+
border-bottom-color: transparent;
32+
border-radius: 3px 3px 0px 0px;
3033
color: #05A5D1;
3134
background-color: transparent;
3235
font-size: 0.99em;
3336
cursor: pointer;
3437
}
38+
.toggler li:first-child {
39+
margin-left: 0;
40+
}
41+
.toggler li:last-child {
42+
margin-right: 0;
43+
}
3544
.toggler ul {
45+
display: inline-block;
3646
list-style-type: none;
3747
margin: 0;
48+
border-bottom: 1px solid #05A5D1;
49+
cursor: default;
3850
}
39-
.toggler li {
40-
display: inline;
51+
@media screen and (max-width: 960px) {
52+
.toggler li,
53+
.toggler li:first-child,
54+
.toggler li:last-child {
55+
display: block;
56+
border-bottom-color: #05A5D1;
57+
border-radius: 3px;
58+
margin: 2px 0px 2px 0px;
59+
}
60+
.toggler ul {
61+
border-bottom: 0;
62+
}
4163
}
4264
.display-target-fiddle .toggler .button-fiddle:focus,
4365
.display-target-newapp .toggler .button-newapp:focus,

0 commit comments

Comments
 (0)