Skip to content

Commit

Permalink
add styles for cobalt theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Beau committed Jun 16, 2020
1 parent f77c272 commit 0343675
Show file tree
Hide file tree
Showing 3 changed files with 214 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/css/theme-cobalt.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//THEME STYLES
@import
"./themes/live-deck-theme-fonts",
"./themes/cobalt-theme";
208 changes: 208 additions & 0 deletions assets/css/themes/cobalt-theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
//LIVEDCK THEME
//COLOR OVERRIDES
$color-1: #03153A;
$color-2: #E7ECEF;
$color-3: #1316ad;
$color-4: #0A40B6;
$color-5: #0C61CF;
$color-6: #0E87F1;


//FONTS OVERRIDES
$live-deck-main: 'Inter', sans-serif;

body {
background-color: $color-1;
color: $color-2;
font-family: $live-deck-main;
font-weight: 500;
}

//TYPE OVERIDES
h1, h2, h3, h4, h5 {
font-family: $live-deck-main;
font-weight: 800;
line-height: 1;
text-transform: uppercase;
}

h2, h3, h4 {
color: $color-6;
}

blockquote,
.blockquote {
color: $color-2;
font-weight: 600;

&::before {
background: $color-5;
}
}

ul {
li {
&::before {
background: $color-4;
}
}
}

//GLOABL DECK OVERIDES
.header {
z-index: 50;

&__title {
svg {
fill: $color-2;
}
}

&__date {
color: $color-2;
}
}

.footer {
z-index: 50;

&__caption {
color: $color-2;
}
}

//TEMPLATE OVERIDES
aside {
background-color: $color-3;
color: $color-2;
}

.template--split {
aside {
h2, h3, h4, h5, p {
color: $color-2;
}
}
}

.template--full-image {
img {
filter: brightness(90%) grayscale(100%);
}

.template__content {
background: transparent;
position: relative;
z-index: 50;

h1, h2, h3, h4, h5 {
color: $color-2;
font-weight: 600;
}
}

&::after {
content: '';
background-color: $color-1;
position: absolute;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
opacity: 0.8;
background-size: 3200% 3200%;
z-index: 20;
}
}

.template--quote-alt {
.blockquote__top::before {
background-color: $color-3;
}
}

//BACKGROUND OPTIONS
body.back--2 {
background-color: $color-3;

h1, h2, h3, h4, h5, p {
color: $color-2;
}

blockquote,
.blockquote {
&::before {
background: $color-2;
}
}

aside {
background: $color-1;
}

.template--full-image {
&::after {
content: '';
background-color: $color-3;
}
}

.template--quote-alt {
.blockquote__top::before {
animation: none;
background: rgba($color-1, 0.1);
}
}

ul {
li {
&::before {
background: $color-2;
}
}
}
}

body.back--3 {
background-color: $color-2;
color: $color-3;

h1, h2, h3, h4, h5 {
color: $color-3;
}

p {
color: $color-1;
}

blockquote,
.blockquote {
color: $color-3;
&::before {
background: $color-5;
}
}

.template--split {
aside {
background-color: $color-1;
h2, h3, h4, h5, p {
color: $color-2;
}
}
}

.template--left-aside, .template--right-aside {
background-color: $color-2;
color: $color-3;

aside {
background-color: $color-1;
color: $color-2;

h1, h2, h3, h4, h5, p {
color: $color-2;
}
}
}
}
4 changes: 2 additions & 2 deletions assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"repository": {},
"license": "MIT",
"scripts": {
"build": "cp -R ./static/* ../priv/static && cp -R ./static/fonts/* ../priv/static/css && parcel build ./js/app.js ./css/app.scss ./css/theme-live-deck.scss ./css/theme-crimson-command.scss --out-dir ../priv/static --public-url ./",
"watch": "cp -R ./static/* ../priv/static && cp -R ./static/fonts/* ../priv/static/css && parcel watch ./js/app.js ./css/app.scss ./css/theme-live-deck.scss ./css/theme-crimson-command.scss --out-dir ../priv/static --public-url ./",
"build": "cp -R ./static/* ../priv/static && cp -R ./static/fonts/* ../priv/static/css && parcel build ./js/app.js ./css/app.scss ./css/theme-live-deck.scss ./css/theme-crimson-command.scss ./css/theme-cobalt.scss --out-dir ../priv/static --public-url ./",
"watch": "cp -R ./static/* ../priv/static && cp -R ./static/fonts/* ../priv/static/css && parcel watch ./js/app.js ./css/app.scss ./css/theme-live-deck.scss ./css/theme-crimson-command.scss ./css/theme-cobalt.scss --out-dir ../priv/static --public-url ./",
"eslint": "eslint js/**"
},
"dependencies": {
Expand Down

0 comments on commit 0343675

Please sign in to comment.