Skip to content

Add sass sources, auto-generate and replace CSS #685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ _site/
.bundle
/.idea
.ruby-version
.sass-cache/
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exclude:
- vendor
- Procfile
- Rakefile

future: true

# Defaults
Expand Down Expand Up @@ -62,3 +63,6 @@ gems:

whitelist:
- jekyll-redirect-from

sass:
style: compressed
18 changes: 18 additions & 0 deletions _sass/base/body.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// BODY
//------------------------------------------------
//------------------------------------------------
html {
box-sizing: border-box;
}

*,
*::before,
*::after {
box-sizing: inherit;
}

html,
body {
height: 90%;
margin: 0;
}
30 changes: 30 additions & 0 deletions _sass/base/form.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// FORM
//------------------------------------------------
//------------------------------------------------

input,
select,
textarea {
font-family: $base-font-family;
font-size: $font-size-large;
display: block;
appearance: none;
border: none;
}


::-webkit-input-placeholder {
color: $base-font-color-light;
}

:-moz-placeholder { /* Firefox 18- */
color: $base-font-color-light;
}

::-moz-placeholder { /* Firefox 19+ */
color: $base-font-color-light;
}

:-ms-input-placeholder {
color: $base-font-color-light;
}
14 changes: 14 additions & 0 deletions _sass/base/helper.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// HELPER
//------------------------------------------------
//------------------------------------------------

.wrap {
@include outer-container;
@include padding(0 20px);
}

.dot {
font-size: 10px;
color: rgba($base-font-color-light, 0.6);
margin: 0 3px;
}
22 changes: 22 additions & 0 deletions _sass/base/lists.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// LISTS
//------------------------------------------------
//------------------------------------------------
ul,
ol {
list-style-type: none;
margin: 0;
padding: 0;
}

dl {
margin: 0;
}

dt {
font-weight: 600;
margin: 0;
}

dd {
margin: 0;
}
12 changes: 12 additions & 0 deletions _sass/base/media.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// MEDIA
//------------------------------------------------
//------------------------------------------------
figure {
margin: 0;
}

img,
picture {
margin: 0;
max-width: 100%;
}
62 changes: 62 additions & 0 deletions _sass/base/typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// TYPOGRAPHY
//------------------------------------------------
//------------------------------------------------
html {
font-size: $base-font-size;

}

body {
color: $base-font-color;
font-family: $base-font-family;
font-weight: $font-regular;
line-height: $base-line-height;
@include font-smoothing(on);
}
* {
transition: $base-transition;
}

h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $heading-font-family;
line-height: $heading-line-height;
font-weight: $font-black;
margin: 0;
}

h2 {
font-weight: $font-regular;
}

p {
margin: 0;
}

a {
color: $base-link-color;
text-decoration: none;
transition: $base-transition;
&:active,
&:focus,
&:hover {
color: $hover-link-color;
text-decoration: underline;
}
}

hr {
border-bottom: $base-border-gray;
border-left: 0;
border-right: 0;
border-top: 0;
margin: 0;
}

blockquote {
margin: 0;
}
22 changes: 22 additions & 0 deletions _sass/components/buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// BUTTONS
//------------------------------------------------
//------------------------------------------------
.button {
padding: 8px 18px;
font-size: $font-size-small;
font-weight: $font-bold;
text-transform: uppercase;
color: #fff;
background: $brand-secondary;
border-radius: $border-radius-base;
display: inline-block;

&:active,
&:focus,
&:hover {
text-decoration: none;
color: #fff;
background: $brand-primary;
}

}
33 changes: 33 additions & 0 deletions _sass/components/calendar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// CALENDAR
//------------------------------------------------
//------------------------------------------------

.calendar {
width: 28px;
height: 32px;
background: #fff;
border-radius: $border-radius-small;
overflow: hidden;

span {
display: block;
font-size: 10px;
font-weight: $font-bold;
text-align: center;
}
span:first-child {
background: $brand-primary;
color: #fff;
}

}

a {
.calendar {
span:last-child {
color: $gray-dark;
font-size: 12px;
margin-top: -1px;
}
}
}
39 changes: 39 additions & 0 deletions _sass/components/call-to-action.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// CALL TO ACTION
//------------------------------------------------
//------------------------------------------------

.call-to-action {
text-align: center;
margin-top: $padding-large;

&.action-medium {
margin-top: $padding-medium;
}

&.action-small {
margin-top: $padding-small;
}

p {
font-size: $font-size-small;
color: $base-font-color-inverse;

&.align-top {
margin-bottom: 12px;
}

&.align-bottom {
margin-top: 12px;
}

a {
text-decoration: underline;
color: $base-font-color-inverse;
&:active,
&:focus,
&:hover {
color: #fff;
}
}
}
}
60 changes: 60 additions & 0 deletions _sass/components/card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// CARD
//------------------------------------------------
//------------------------------------------------

.card {
padding: 18px;
border-radius: $border-radius-base;
@include display(flex);
@include flex-direction(row);
background: $gray;
transition: $base-transition;
margin-bottom: 14px;

&:hover {
background: $gray-dark;
}

img {
width: 28px;
height: 28px;
border-radius: $border-radius-small;
}

.card-text {
margin-left: 14px;

h4 {
font-family: $base-font-family;
font-size: $font-size-large;
color: #fff;
}

ul {
li {
color: $base-font-color-inverse;
display: inline-block;

&.online-courses-price,
&.event-location {
font-size: $font-size-xsmall;
text-transform: uppercase;
}

&.online-courses-date,
&.date-event {
font-size: $font-size-small;
}

&.dot {
color: rgba($base-font-color-inverse, 0.4);
}
}
}
}
&:active,
&:focus,
&:hover {
text-decoration: none;
}
}
30 changes: 30 additions & 0 deletions _sass/components/code.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// CODE
//------------------------------------------------
//------------------------------------------------
.code-element {
margin-bottom: 20px;

pre {
margin-top: 0;
}

code {
padding: 20px;
}

.bar-code {
background: #B4BBBD;
text-align: center;
padding: 2px 0;
font-size: $font-size-small;
font-weight: $font-bold;
min-height: 26px;
@include border-radius($border-radius-base $border-radius-base 0 0);

}

.hljs {
background: rgba($gray-darker, 0.8);
}

}
Loading