mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 06:19:29 +00:00
Added title styles
This commit is contained in:
@@ -5,6 +5,7 @@ $text-font-stack: 'Roboto', 'Arial', sans-serif !default;
|
|||||||
$text-colour: rgb(34, 34, 34) !default;
|
$text-colour: rgb(34, 34, 34) !default;
|
||||||
$primary-colour: #d71433;
|
$primary-colour: #d71433;
|
||||||
$secondary-colour: #46b43d;
|
$secondary-colour: #46b43d;
|
||||||
|
$grey: #505050;
|
||||||
|
|
||||||
$primary-colour-dark: darken-colour($primary-colour);
|
$primary-colour-dark: darken-colour($primary-colour);
|
||||||
$secondary-colour-dark: darken-colour($secondary-colour);
|
$secondary-colour-dark: darken-colour($secondary-colour);
|
||||||
@@ -14,6 +15,11 @@ $button-colours: (
|
|||||||
'secondary': $secondary-colour
|
'secondary': $secondary-colour
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$title-colours: (
|
||||||
|
'grey': $grey,
|
||||||
|
'white': white
|
||||||
|
);
|
||||||
|
|
||||||
// Breakpoints
|
// Breakpoints
|
||||||
$breakpoints: (
|
$breakpoints: (
|
||||||
'small' : 767px,
|
'small' : 767px,
|
||||||
|
|||||||
19
src/stylesheets/components/_title.scss
Normal file
19
src/stylesheets/components/_title.scss
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
.title {
|
||||||
|
&--spaced {
|
||||||
|
font: normal 300 1em Roboto;
|
||||||
|
letter-spacing: 0.175em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: $text-colour;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--center {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $name, $colour in $title-colours {
|
||||||
|
.title.title--#{$name} {
|
||||||
|
color: $colour;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,3 +10,4 @@
|
|||||||
@import 'components/button';
|
@import 'components/button';
|
||||||
@import 'components/feature';
|
@import 'components/feature';
|
||||||
@import 'components/testimonial';
|
@import 'components/testimonial';
|
||||||
|
@import 'components/title';
|
||||||
|
|||||||
Reference in New Issue
Block a user