styling it up
This commit is contained in:
35
app/assets/stylesheets/molecules/lists.scss
Normal file
35
app/assets/stylesheets/molecules/lists.scss
Normal file
@ -0,0 +1,35 @@
|
||||
.index {
|
||||
@include clean-ul;
|
||||
border-bottom: 1px solid $grey;
|
||||
margin: 0 0 $gutter;
|
||||
padding-bottom: $gutter / 2;
|
||||
&:last-of-type { border-bottom: 0; }
|
||||
|
||||
li {
|
||||
line-height: 1.8em;
|
||||
|
||||
.btn {
|
||||
margin-left: $gutter / 2;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $dark;
|
||||
text-decoration: underline;
|
||||
&:visited { color: $copy; }
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
color: $hover-copy;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 1.2em;
|
||||
text-transform: capitalize;
|
||||
.btn { font-size: 1rem; }
|
||||
}
|
||||
|
||||
ul { margin-left: $gutter; }
|
||||
}
|
@ -6,16 +6,22 @@
|
||||
width: calc(100% + 30px);
|
||||
|
||||
li {
|
||||
&:hover {
|
||||
border-bottom: 1px solid $black;
|
||||
border-right: 1px solid $black;
|
||||
|
||||
&:hover,
|
||||
&:active {
|
||||
background-color: $grey;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $light;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: $taupe;
|
||||
border-bottom: 1px solid $taupe;
|
||||
|
||||
a {
|
||||
color: $dark;
|
||||
@ -27,10 +33,11 @@
|
||||
|
||||
.sub-nav {
|
||||
@include inline-ul;
|
||||
margin: -19px -15px 0;
|
||||
margin: -20px -15px 0;
|
||||
|
||||
a {
|
||||
color: $dark;
|
||||
padding: 15px;
|
||||
|
||||
&:hover {
|
||||
background-color: $light;
|
||||
|
Reference in New Issue
Block a user