forked from markus/AMPERION_Webpage
Refactor SCSS styles in common and about templates
- Removed unused styles and nested selectors from _common.scss to streamline the code. - Cleaned up the .about section in _about.scss by eliminating redundant styles for headings and paragraphs. - Improved overall readability and maintainability of the SCSS files.
This commit is contained in:
parent
99b78797b2
commit
30fb9c0827
13 changed files with 288 additions and 323 deletions
|
|
@ -1,24 +1,27 @@
|
|||
// Color Variables
|
||||
$color-primary: #fff;
|
||||
$color-secondary: #0AA8A7;
|
||||
$text-color: #fff;
|
||||
$text-dark: #222;
|
||||
$text-light: #737373;
|
||||
$body-bg: #fff;
|
||||
$border-color: #ECECEC;
|
||||
$black: #000;
|
||||
$white: #fff;
|
||||
$light: #EDF6F5;
|
||||
{{ with site.Params.variables }}
|
||||
$color-primary: {{.color_primary | default "#fff"}};
|
||||
$color-secondary: {{.color_secondary | default "#0AA8A7"}};
|
||||
$text-color: {{.text_color | default "#fff"}};
|
||||
$text-dark: {{.text_dark | default "#222"}};
|
||||
$text-light: {{.text_light | default "#737373"}};
|
||||
$body-bg: {{.body_color | default "#fff"}};
|
||||
$border-color: {{.border_color | default "#ECECEC"}};
|
||||
$black: {{.black | default "#000"}};
|
||||
$white: {{.white | default "#fff"}};
|
||||
$light: {{.light | default "#EDF6F5"}};
|
||||
|
||||
|
||||
// Font Variables
|
||||
$font-size: 16px;
|
||||
$font-scale: 1.25;
|
||||
$font-primary: 'Lato', sans-serif;
|
||||
$font-secondary: 'Lato', sans-serif;
|
||||
$font-tertiary: 'Dosis', sans-serif;
|
||||
$font-quaternary: 'Edu', sans-serif;
|
||||
$font-size: {{.font_size | default "16px"}};
|
||||
$font-scale: {{.font_scale | default "1.25"}};
|
||||
$font-primary: '{{replace (replaceRE ":[ital,]*[ital@]*[wght@]*[0-9,;]+" "" .font_primary | default "Lato") "+" " "}}', {{.font_primary_type | default "sans-serif"}};
|
||||
$font-secondary: '{{replace (replaceRE ":[ital,]*[ital@]*[wght@]*[0-9,;]+" "" .font_secondary | default "Lato") "+" " "}}', {{.font_secondary_type | default "sans-serif"}};
|
||||
$font-tertiary: '{{replace (replaceRE ":[ital,]*[ital@]*[wght@]*[0-9,;]+" "" .font_tertiary | default "Dosis") "+" " "}}', {{.font_tertiary_type | default "sans-serif"}};
|
||||
$font-quaternary: '{{replace (replaceRE ":[ital,]*[ital@]*[wght@]*[0-9,;]+" "" .font_quaternary | default "Edu") "+" " "}}', {{.font_quaternary_type | default "sans-serif"}};
|
||||
|
||||
$font-icon: 'Font Awesome 5 Free';
|
||||
$font-icon: '{{.font_icon | default "Font Awesome 5 Free"}}';
|
||||
{{ end }}
|
||||
|
||||
$h1: 80px;
|
||||
$h1-md: 34px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue