Tabs component in patron
This commit is contained in:
parent
dcab333165
commit
dcb3a48bd3
2 changed files with 32 additions and 0 deletions
22
app/assets/stylesheets/new_design/_tabs.scss
Normal file
22
app/assets/stylesheets/new_design/_tabs.scss
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
@import "colors";
|
||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
.tabs {
|
||||||
|
li {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
@include vertical-padding(14px);
|
||||||
|
display: block;
|
||||||
|
color: $black;
|
||||||
|
font-size: 22px;
|
||||||
|
|
||||||
|
&.selected,
|
||||||
|
&:hover {
|
||||||
|
border-bottom: 2px solid $blue;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -29,6 +29,16 @@
|
||||||
%p
|
%p
|
||||||
= link_to ".button.primary.expand", "#", class: "button primary expand"
|
= link_to ".button.primary.expand", "#", class: "button primary expand"
|
||||||
|
|
||||||
|
%h2 Onglets
|
||||||
|
|
||||||
|
%ul.tabs
|
||||||
|
%li
|
||||||
|
= link_to "Onglet 1", "#", class: "selected"
|
||||||
|
%li
|
||||||
|
= link_to "Onglet 2", "#"
|
||||||
|
%li
|
||||||
|
= link_to "Onglet 3", "#"
|
||||||
|
|
||||||
%h2 Layout deux colonnes
|
%h2 Layout deux colonnes
|
||||||
|
|
||||||
.two-columns
|
.two-columns
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue