chore: split and move definitions to a subdirectory
This commit is contained in:
parent
9dc13158af
commit
10d6949e37
7 changed files with 45 additions and 38 deletions
|
@ -1,38 +1,12 @@
|
||||||
/* --- 01. DEFINITIONS --- */
|
// DEFINITIONS
|
||||||
|
|
||||||
/*
|
// Global definitions and variables of the stylesheet
|
||||||
* Les définitions globales de la stylesheet.
|
// With them, you can customize easily how the style look
|
||||||
* Elle permette de rapidement modifier le style globale de la fiche en modifiant les éléments centraux
|
// Look at each component inside the definitions subfolder to customize the
|
||||||
* D'autres définitions importantes sont visibles dans les autres parties de la fiche.
|
// styles
|
||||||
*
|
|
||||||
* Pour customiser les couleurs, voyez _palette.scss
|
|
||||||
*/
|
|
||||||
|
|
||||||
// A modifier pour customiser le style facilement :
|
@import 'definitions/palette';
|
||||||
|
@import 'definitions/shadows';
|
||||||
$large-shadow: 0px 2px 10px rgba(0, 0, 0, 0);
|
@import 'definitions/fonts';
|
||||||
$narrow-shadow: 0px 2px 6px rgba(0, 0, 0, 0);
|
@import 'definitions/borders';
|
||||||
$inset-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0);
|
@import 'definitions/sizing';
|
||||||
$inset-shadow-inverted: inset 0px 2px 0px rgba(0, 0, 0, 0);
|
|
||||||
$inset-relief: inset 0px 2px 0px rgba(255, 255, 255, 0);
|
|
||||||
|
|
||||||
$baseline: 1.6;
|
|
||||||
$fontsize: 4.75mm;
|
|
||||||
|
|
||||||
$lineheight: $baseline * 1rem;
|
|
||||||
$lineheight_half: $lineheight/2;
|
|
||||||
$lineheight_quarter: $lineheight/4;
|
|
||||||
|
|
||||||
$card-header-margin: $lineheight;
|
|
||||||
|
|
||||||
$card-radius: 0px;
|
|
||||||
$btn-radius: 0px;
|
|
||||||
$border-size: 0px;
|
|
||||||
|
|
||||||
$fontweight_big: 300;
|
|
||||||
$fontweight_base: 400;
|
|
||||||
$fontweight_bold: 600;
|
|
||||||
$fontweight_hyper: 800;
|
|
||||||
|
|
||||||
$basefont: Open Sans, sans-serif;
|
|
||||||
$titlefont: Amatic SC, sans-serif;
|
|
||||||
|
|
5
src/scss/definitions/_borders.scss
Normal file
5
src/scss/definitions/_borders.scss
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
// BORDERS AND BORDER-RADIUSES
|
||||||
|
|
||||||
|
$card-radius: 0px;
|
||||||
|
$btn-radius: 0px;
|
||||||
|
$border-size: 0px;
|
12
src/scss/definitions/_fonts.scss
Normal file
12
src/scss/definitions/_fonts.scss
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
// FONTS
|
||||||
|
// Define how looks the text
|
||||||
|
|
||||||
|
$fontsize: 4.75mm;
|
||||||
|
|
||||||
|
$fontweight_big: 300;
|
||||||
|
$fontweight_base: 400;
|
||||||
|
$fontweight_bold: 600;
|
||||||
|
$fontweight_hyper: 800;
|
||||||
|
|
||||||
|
$basefont: Open Sans, sans-serif;
|
||||||
|
$titlefont: Amatic SC, sans-serif;
|
8
src/scss/definitions/_shadows.scss
Normal file
8
src/scss/definitions/_shadows.scss
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// SHADOWS
|
||||||
|
// Define how looks the shadows and the relief effects
|
||||||
|
|
||||||
|
$large-shadow: 0px 2px 10px rgba(0, 0, 0, 0);
|
||||||
|
$narrow-shadow: 0px 2px 6px rgba(0, 0, 0, 0);
|
||||||
|
$inset-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0);
|
||||||
|
$inset-shadow-inverted: inset 0px 2px 0px rgba(0, 0, 0, 0);
|
||||||
|
$inset-relief: inset 0px 2px 0px rgba(255, 255, 255, 0);
|
10
src/scss/definitions/_sizing.scss
Normal file
10
src/scss/definitions/_sizing.scss
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// SIZING
|
||||||
|
// All the spacing and sizing variables
|
||||||
|
|
||||||
|
$baseline: 1.6;
|
||||||
|
|
||||||
|
$lineheight: $baseline * 1rem;
|
||||||
|
$lineheight_half: $lineheight/2;
|
||||||
|
$lineheight_quarter: $lineheight/4;
|
||||||
|
|
||||||
|
$card-header-margin: $lineheight;
|
|
@ -19,8 +19,6 @@
|
||||||
|
|
||||||
@import 'angled-edges';
|
@import 'angled-edges';
|
||||||
|
|
||||||
@import 'palette';
|
|
||||||
|
|
||||||
@import 'definitions';
|
@import 'definitions';
|
||||||
|
|
||||||
@import 'mixins';
|
@import 'mixins';
|
||||||
|
|
Loading…
Reference in a new issue