0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Move nav-item file, use variable colours instead of some hexes

This commit is contained in:
Paul Adam Davis 2014-08-18 18:08:52 +01:00
parent cbb3d34d85
commit dcbd77ca03
6 changed files with 73 additions and 72 deletions

View file

@ -6,6 +6,7 @@ $darkgrey: #242628;
$grey: #35393b;
$midgrey: #7d878a;
$lightgrey: #e2edf2;
$lightestgrey: #FCFCFC;
$brown: #aaa9a2;
$midbrown: #c0bfb6;
$lightbrown: #edece4;

View file

@ -4,7 +4,7 @@
// Wrapper
.post-settings-menu {
background: #FCFCFC;
background: $lightestgrey;
width: 100%;
max-width: 350px;
}
@ -50,12 +50,12 @@
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
color: #C0BFB6;
color: $midbrown;
font-size: 2rem;
}
&:hover {
&:before {
color: #7E878B;
color: $midgrey;
}
}
}

View file

@ -26,7 +26,7 @@
border-bottom: 1px solid #E0DFD7;
}
@include icon($i-chevron, 1.4rem, #C0BFB6) {
@include icon($i-chevron, 1.4rem, $midbrown) {
position: absolute;
top: 50%;
right: 10px;
@ -35,15 +35,15 @@
transform: translateY(-50%);
};
color: #2D3032;
color: $darkgrey;
a {
&:link, &:visited {
color: #2D3032;
color: $darkgrey;
}
}
&:hover {
background: #F9F8F5;
background: lighten($lightbrown, 5%);
}
b {
@ -55,7 +55,7 @@
span {
display: block;
font-size: 1.1rem;
color: #7E878B;
color: $midgrey;
line-height: 1.375;
}
}

View file

@ -28,6 +28,7 @@
@import "patterns/buttons";
@import "patterns/labels";
@import "patterns/tables";
@import "patterns/navlist";
//
@ -42,7 +43,6 @@
@import "components/dropdowns";
@import "components/pagination";
@import "components/badges";
@import "components/navlist";
//

View file

@ -1834,6 +1834,63 @@ table,
.table.plain tbody > tr:nth-child(odd) > th {
background: transparent; }
.nav-list {
background: #FFF;
border: 1px solid #E0DFD7;
border-radius: 3px;
max-width: 500px;
padding: 0; }
.nav-list.nav-list-block {
max-width: none; }
.nav-list-item {
display: block;
padding: 8px 40px 8px 12px;
position: relative;
color: #242628; }
.nav-list-item:first-of-type {
border-top-left-radius: 3px;
border-top-right-radius: 3px; }
.nav-list-item:last-of-type {
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px; }
.nav-list-item:not(:last-of-type) {
border-bottom: 1px solid #E0DFD7; }
.nav-list-item:before {
font-family: "GhostIcons";
font-weight: normal;
font-style: normal;
vertical-align: -7%;
text-transform: none;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
content: "\e01d";
font-size: 1.4rem;
color: #c0bfb6;
position: absolute;
top: 50%;
right: 10px;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%); }
.nav-list-item:hover {
text-decoration: none; }
.nav-list-item a:link, .nav-list-item a:visited {
color: #242628; }
.nav-list-item:hover {
background: #f7f7f3; }
.nav-list-item b {
display: block;
font-weight: normal;
font-size: 1.6rem;
line-height: 1.375; }
.nav-list-item span {
display: block;
font-size: 1.1rem;
color: #7d878a;
line-height: 1.375; }
.global-nav {
height: 60px;
position: fixed;
@ -3156,63 +3213,6 @@ a.badge:hover, a.badge:focus {
background-color: #e25440;
box-shadow: 0 0 0 1px #e25440; }
.nav-list {
background: #FFF;
border: 1px solid #E0DFD7;
border-radius: 3px;
max-width: 500px;
padding: 0; }
.nav-list.nav-list-block {
max-width: none; }
.nav-list-item {
display: block;
padding: 8px 40px 8px 12px;
position: relative;
color: #2D3032; }
.nav-list-item:first-of-type {
border-top-left-radius: 3px;
border-top-right-radius: 3px; }
.nav-list-item:last-of-type {
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px; }
.nav-list-item:not(:last-of-type) {
border-bottom: 1px solid #E0DFD7; }
.nav-list-item:before {
font-family: "GhostIcons";
font-weight: normal;
font-style: normal;
vertical-align: -7%;
text-transform: none;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
content: "\e01d";
font-size: 1.4rem;
color: #c0bfb6;
position: absolute;
top: 50%;
right: 10px;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%); }
.nav-list-item:hover {
text-decoration: none; }
.nav-list-item a:link, .nav-list-item a:visited {
color: #2D3032; }
.nav-list-item:hover {
background: #F9F8F5; }
.nav-list-item b {
display: block;
font-weight: normal;
font-size: 1.6rem;
line-height: 1.375; }
.nav-list-item span {
display: block;
font-size: 1.1rem;
color: #7E878B;
line-height: 1.375; }
#container {
position: absolute;
top: 0px;
@ -4658,7 +4658,7 @@ body.zen {
margin-top: 0; }
.post-settings-menu {
background: #FCFCFC;
background: #fcfcfc;
width: 100%;
max-width: 350px; }
@ -4694,10 +4694,10 @@ body.zen {
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
color: #C0BFB6;
color: #c0bfb6;
font-size: 2rem; }
.post-settings-header-action:hover:before {
color: #7E878B; }
color: #7d878a; }
.post-settings-content {
padding: 0 24px 24px; }

File diff suppressed because one or more lines are too long