-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbase.scss
83 lines (65 loc) · 2.04 KB
/
base.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*
* $background:
* starting color of the background gradient, also used as fallback color as static color
*
* $background-gradient-end:
* end color of the background gradient
*/
$background: #f8f8f8 !default;
$background-gradient-end: #f0f0f0 !default;
$background-image: linear-gradient(to top, $background 0%, $background-gradient-end 100%);
$background-image-night: linear-gradient(to top, invert($background) 0%, invert($background-gradient-end) 100%);
/*
* font stacks for normal, header and monospace fonts
*/
$font-stack: Verdana, Arial, Helvetica, sans-serif !default;
$header-fonts: "Segoe UI", Helvetica, sans-serif !default;
$monospace: Consolas, monospace !default;
/*
* $font-color:
* default color for all text
*
* $lighter-color:
* color for borders and light text
*
* $cloze-color:
* color for clozed text, is redefined for nightmode below
*/
$font-color: #111111 !default;
$lighter-color: lighten($font-color, 60%) !default; //TODO: separate in element color and text color?
$cloze-color: #1d1dd1 !default;
/*
* $font-base-size:
* default font size
*
* $padding-amount:
* padding for "center-column" on large screens
*
* see file "_width_mixins.scss" or set "$include-padding-breakpoint"
* to change the width at which padding should be added
*/
$font-size-base: 1.2em !default;
$padding-amount: 15% !default;
@import 'width_mixins';
body {
background-color: $background;
background-image: $background-image;
background-attachment: fixed;
font-family: $font-stack;
font-size: $font-size-base;
color: $font-color;
text-align: center;
@include medium_width() {
padding-left: $padding-amount;
padding-right: $padding-amount;
}
padding-top: 2.5em;
@import 'element_styles';
}
body.night_mode {
background-image: $background-image-night;
$gradient-background: $background-image-night;
$lighter-color: invert($lighter-color);
$cloze-color: #ddac26 !important; // !important is needed to override the night-mode color
@import 'element_styles';
}