Skip to content

Commit

Permalink
[Docs: Installation] Fix tabs responsive layout - Resubmit (facebook#…
Browse files Browse the repository at this point in the history
…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

(cherry picked from commit a92128e)
  • Loading branch information
AlmeroSteyn authored and flarnie committed Jun 7, 2017
1 parent 0f866ba commit c388391
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions docs/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,43 @@ React is flexible and can be used in a variety of projects. You can create new a
<style>
.toggler li {
display: inline-block;
position: relative;
top: 1px;
padding: 10px;
margin: 2px;
margin: 0px 2px 0px 2px;
border: 1px solid #05A5D1;
border-radius: 3px;
border-bottom-color: transparent;
border-radius: 3px 3px 0px 0px;
color: #05A5D1;
background-color: transparent;
font-size: 0.99em;
cursor: pointer;
}
.toggler li:first-child {
margin-left: 0;
}
.toggler li:last-child {
margin-right: 0;
}
.toggler ul {
display: inline-block;
list-style-type: none;
margin: 0;
border-bottom: 1px solid #05A5D1;
cursor: default;
}
.toggler li {
display: inline;
@media screen and (max-width: 960px) {
.toggler li,
.toggler li:first-child,
.toggler li:last-child {
display: block;
border-bottom-color: #05A5D1;
border-radius: 3px;
margin: 2px 0px 2px 0px;
}
.toggler ul {
border-bottom: 0;
}
}
.display-target-fiddle .toggler .button-fiddle:focus,
.display-target-newapp .toggler .button-newapp:focus,
Expand Down

0 comments on commit c388391

Please sign in to comment.