Skip to content

Commit

Permalink
Split custom CSS into another file
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Nov 12, 2019
1 parent f6b4926 commit 0279ce4
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 64 deletions.
58 changes: 58 additions & 0 deletions _sass/_custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
@import "landing"; // Special layout for landing page
//@import "masthead"; // Colored masthead

blockquote {
font-style: normal;
font-family: $serif;
}

.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
margin: 0.2rem 0.2rem 0.4rem;
}

.page__content a:not(.btn):not(#goog-wm-sb):hover img.card {
box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3), 0 6px 30px 0 rgba(0, 0, 0, 0.19);
}

html {
box-sizing: border-box;
font-size: 14px;
@include breakpoint($medium) { font-size: 16px; }
@include breakpoint($large) { font-size: 18px; }
@include breakpoint($x-large) { font-size: 20px; }
}

#main {
background: $background-color !important;
padding-bottom: 3em;
@include breakpoint($x-large) { max-width: 1440px; }
}

.page__content li p {
margin-bottom: 0;
}

div.page__hero--overlay {
text-align: center;
margin-bottom: 0;
}

a.site-logo > img, div.author__avatar:hover > img {
animation: spin-periodically 5000ms infinite ease-in-out;
}

section.page__content {
a {
word-break: break-word;
}
}

p img.block {
display: block;
margin-left: auto;
}

.page__footer {
margin-top: 0;
}
4 changes: 1 addition & 3 deletions _sass/landing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ body.landing {
//background-color: #EEE;
//background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('/image/mm/splash.jpg');
div.masthead {
border-bottom: none;
background: none;

@media screen and (min-width: $large) {
background-image: url('/image/mm/splash.jpg');
background-attachment: fixed;
background-size: cover;
background-position: center;
border-bottom: none !important;

nav#site-nav {
background: transparent;
Expand Down
17 changes: 17 additions & 0 deletions _sass/masthead.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
div.masthead {
border-bottom: none;
background: url("/image/header/thin/whimsical.png") center/cover no-repeat;
//background: #0078d4;

nav#site-nav {
background: transparent;
}

.greedy-nav a, .search__toggle {
color: white !important;
}

.greedy-nav .visible-links a:before {
background: white;
}
}
62 changes: 1 addition & 61 deletions assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,64 +13,4 @@ $x-large: 1440px;
@import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
@import "minimal-mistakes"; // main partials

@import "landing"; // Special layout for landing page

blockquote {
font-style: normal;
font-family: $serif;
}

.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
margin: 0.2rem 0.2rem 0.4rem;
}

.page__content a:not(.btn):not(#goog-wm-sb):hover img.card {
box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.3), 0 6px 30px 0 rgba(0, 0, 0, 0.19);
}

html {
box-sizing: border-box;
font-size: 14px;
@include breakpoint($medium) { font-size: 16px; }
@include breakpoint($large) { font-size: 18px; }
@include breakpoint($x-large) { font-size: 20px; }
}

#main {
@include breakpoint($x-large) { max-width: 1440px; }
}

.page__content li p {
margin-bottom: 0;
}

div.page__hero--overlay {
text-align: center;
margin-bottom: 0;
}

a.site-logo > img, div.author__avatar:hover > img {
animation: spin-periodically 5000ms infinite ease-in-out;
}

section.page__content {
a {
word-break: break-word;
}
}

p img.block {
display: block;
margin-left: auto;
margin-right: auto;
}

/********** Animations **********/

@import "loading-animation";

@keyframes spin-periodically {
80% { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@import "_custom"; // iBug's customization

0 comments on commit 0279ce4

Please sign in to comment.