Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
WIP: New content (#528)
Browse files Browse the repository at this point in the history
* Initial style updates
* First pass content management design overhaul
  • Loading branch information
JohnONolan authored and kevinansfield committed Feb 15, 2017
1 parent f4dc416 commit 887eb9b
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 216 deletions.
111 changes: 45 additions & 66 deletions app/styles/components/badges.css
Original file line number Diff line number Diff line change
@@ -1,74 +1,53 @@
/* Badges
/* ---------------------------------------------------------- */

.badge {
.gh-badge {
display: inline-block;
padding: 2px 4px;
min-width: 10px;
background-color: #777;
border-radius: 10px;
box-shadow: 0 0 0 1px #777;
padding: 2px 4px 3px;
border: color(var(--green) blackness(+8%)) 1px solid;
color: #fff;
vertical-align: baseline;
font-size: 0.8em;
line-height: 1em;
font-weight: 400;
text-align: center;
text-shadow: 0 -1px 0 rgba(0,0,0,0.1);
white-space: nowrap;
font-size: 1rem;
line-height: 1;
font-weight: inherit;
}

.badge:empty {
display: none;
}

.btn .badge {
position: relative;
top: -1px;
}

.btn-xs .badge {
top: 0;
padding: 1px 5px;
}

p .badge {
position: relative;
top: -2px;
margin-left: -1px;
padding: 0 4px 3px;
}

.nav-pills > li > a > .badge {
margin-left: 3px;
}

.nav-item .badge {
margin-top: -5px;
margin-left: 3px;
}

a.badge:hover,
a.badge:focus {
color: #fff;
text-decoration: none;
cursor: pointer;
}


/* Colour variations
/* ---------------------------------------------------------- */

.badge.badge-blue {
background-color: var(--blue);
box-shadow: 0 0 0 1px var(--blue);
}

.badge.badge-green {
background-color: var(--green);
box-shadow: 0 0 0 1px var(--green);
}

.badge.badge-red {
background-color: var(--red);
box-shadow: 0 0 0 1px var(--red);
user-select: none;
background: linear-gradient(
color(var(--green) whiteness(+4%)),
color(var(--green) blackness(+4%))
);
border-radius: 3px;
}

.gh-badge-blue {
border: color(var(--blue) blackness(+8%)) 1px solid;
background: linear-gradient(
color(var(--blue) whiteness(+10%)),
color(var(--blue) blackness(+4%))
);
}

.gh-badge-red {
border: color(var(--red) blackness(+8%)) 1px solid;
background: linear-gradient(
color(var(--red) whiteness(+10%)),
color(var(--red) blackness(+4%))
);
}

.gh-badge-black {
border: color(var(--darkgrey) blackness(+8%)) 1px solid;
background: linear-gradient(
color(var(--darkgrey) whiteness(+10%)),
color(var(--darkgrey) blackness(+4%))
);
}

.gh-badge-outline {
border-color: color(var(--midgrey) l(+35%));
color: color(var(--midgrey) l(+25%));
font-weight: 400;
background: transparent;
box-shadow: none;
}
145 changes: 50 additions & 95 deletions app/styles/layouts/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,45 @@
/* Header
/* ---------------------------------------------------------- */

.gh-content-view-container .view-header {
border-bottom: none;
}

.basic-filter {
margin-top: 0.5em;
border-bottom: #dfe1e3 1px solid;
}

.basic-filter ul {
.gh-contentfilter {
display: flex;
flex-direction: row;
margin-bottom: 0;
padding-left: 0.7em;
margin: 2vw 0 1vw;
padding: 0;
border-top: color(var(--lightgrey)) 1px solid;
list-style: none;
}

.basic-filter li {
list-style: none;
.gh-contentfilter li {
position: relative;
display: inline-block;
margin-bottom: 0;
padding: 0 0.5em 10px 0.5em;
margin: 0 25px 0 0;
}

.basic-filter li.active {
border-bottom: #dfe1e3 3px solid ;
.gh-contentfilter li.active:after {
content: "";
display: block;
width: 100%;
height: 1px;
background: var(--darkgrey);
position: absolute;
top: -1px;
opacity: 0.5;
}

.basic-filter li a {
.gh-contentfilter li a {
display: block;
padding: 13px 1px 0;
color: var(--midgrey);
font-size: 1.5rem;
font-weight: 300;
letter-spacing: 0.3px;
}

.basic-filter li a.active {
font-weight: bold;
.gh-contentfilter a.active {
font-weight: 500;
color: var(--darkgrey);
}

@media (max-width: 500px) {
.basic-filter ul {
padding-left: 8px !important;
}
}

@media (max-width: 800px) {
.basic-filter ul {
padding-left: 15px;
}
}

/* Content List
/* ---------------------------------------------------------- */
Expand All @@ -60,95 +52,58 @@
}

.content-list ol {
margin: 20px 4vw;
margin: 0;
padding: 0;
list-style: none;
}

.gh-posts-list-item {
position: relative;
margin: 0;
padding: 0;
border-bottom: #dfe1e3 1px solid;
}

.gh-posts-list-item a {
display: block;
padding: 19px 25px 22px 20px;
color: rgba(0, 0, 0, 0.5);
padding: 24px 0 25px 0;
border-bottom: color(var(--lightgrey)) 1px solid;
}

.gh-posts-list-item a:hover {
text-decoration: none;
}

.gh-posts-list-item .entry-title {
margin: 0 0 0.2em 0;
font-size: 1.5rem;
line-height: 1.3em;
font-weight: normal;
.gh-content-entry-title {
margin: 0 0 3px 0;
font-size: 2.2rem;
font-weight: 600;
letter-spacing: 0.4px;
}

.gh-posts-list-item p {
margin: 0 0 1em 0;
font-size: 0.8em;
line-height: 1.5em;
.gh-content-entry-title a {
color: color(var(--darkgrey) l(+3%));
}

.gh-posts-list-item .entry-meta {
position: relative;
margin-top: 7px;
line-height: 18px;
}

.gh-posts-list-item .avatar {
position: relative;
float: left;
margin: 1px 10px 0px 0;
width: 18px;
height: 18px;
background-position: center center;
background-size: cover;
border-radius: 18px;
}

.gh-posts-list-item .avatar img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}

.gh-posts-list-item .status,
.gh-posts-list-item .author {
font-size: 1.3rem;
.gh-posts-list-item p {
margin: 0;
font-size: 1.6rem;
font-weight: 300;
transition: opacity 0.15s linear;
}

.gh-posts-list-item .avatar:hover + .author + .status {
opacity: 0;
}

.gh-posts-list-item .avatar:hover + .author {
opacity: 1;
.gh-content-entry-meta {
margin: 10px 0 0 0;
font-size: 1.3rem;
color: var(--midgrey);
font-weight: 200;
letter-spacing: 0.3px;
}

.gh-posts-list-item .author {
position: absolute;
bottom: 0;
left: 28px;
opacity: 0;
.gh-content-entry-meta .gh-badge {
margin-right: 3px;
}

.gh-posts-list-item .status .draft {
color: var(--red);
.gh-content-status-published {
color: var(--darkgrey);
}

.gh-posts-list-item .status .scheduled {
color: var(--green);
.gh-content-entry-author {
color: var(--darkgrey);
}

@media (max-width: 400px) {
Expand Down
34 changes: 30 additions & 4 deletions app/styles/layouts/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ body > .ember-view:not(.liquid-target-container) {
.gh-nav {
position: relative;
z-index: 800;
flex: 0 0 205px;
flex: 0 0 280px;
display: flex;
flex-direction: column;
min-width: 0; /* TODO: This is a bullshit Firefox hack */
border-right: #dfe1e3 1px solid;
background: #f5f7f8;
background: color(var(--lightgrey) l(+4%));
transform: translateX(0);
}

Expand Down Expand Up @@ -216,7 +215,7 @@ body > .ember-view:not(.liquid-target-container) {
display: flex;
align-items: center;
height: 40px;
border-top: #dfe1e3 1px solid;
padding-bottom: 5px;
color: var(--midgrey);
}

Expand Down Expand Up @@ -458,6 +457,33 @@ body > .ember-view:not(.liquid-target-container) {
flex-direction: column;
}

.gh-canvas {
flex-grow: 1;
padding: 2.9vw 4vw 3vw 4vw;
margin: 0 auto;
}

.gh-canvas-header {
flex-shrink: 0;
display: flex;
justify-content: space-between;
align-items: center;
}

.gh-canvas-title {
display: flex;
align-items: center;
overflow: hidden;
margin: 0;
padding: 0;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 3.4rem;
line-height: 1.2em;
font-weight: 700;
letter-spacing: 0.4px;
}

.view-header {
flex-shrink: 0;
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion app/styles/patterns/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/* Colours */
--darkgrey: #343f44;
--midgrey: #738a94;
--lightgrey: #e2edf2;
--lightgrey: #e5eff5;
--blue: #3eb0ef;
--red: #f05230;
--orange: #fecd35;
Expand Down
Loading

0 comments on commit 887eb9b

Please sign in to comment.