-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.scss
170 lines (139 loc) · 2.69 KB
/
custom.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/*-- scss:defaults --*/
// custom.scss
// SCSS vs SASS ? USE SCSS
// - both compile to same; MUCH CONFUSION
// - SASS is indented; without punctuation (; {})
// - SCSS uses punctutation
/* multiline comment
Colors (ie create variables)
*/
$baby-blue: #d2e3f3;
$teal: #047C90;
$dark-blue: #003660;
$white: #FFFFFF;
$green: #78A540;
$magenta: #900C3F;
$off-white: #F7F7F7;
$gray: #ADADAD;
// scss variables
$presentation-title-slide-text-align: "left";
$body-bg: $white;
$link-color: $green;
$code-color: $magenta;
$code-bg: $off-white;
$code-block-font-size: 0.9em; // default font size inside r code chunks
$code-block-bg: $off-white;
/*-- Works --*/
$body-bg: $off-white;
//$body-bg: $teal; # (too dark)
//$body-bg: $green;
/*-- scss:rules --*/
h3 {
color: red;
font-size: 1.1 em;
}
.postbox {
background-color: lightgrey;
font-size: 2.1em; // works, 'bigger'
}
/* an experiment */
/* in data tables, this color affects titles, text in columns */
.small {
font-size: 12px;
color: black;
}
.center {
text-align: right;
font-size: 25px;
color: red;
}
.very_small {
font-size: 10px;
color: lightred;
}
.custombox {
background-color: pink;
}
.custombox_blue {
color: blue;
background-color: white;
}
.custombox_yellow {
background-color: yellow;
}
.custombox_white {
padding: 1em;
color: black;
background-color: white;
border: 2px solid orange;
border-radius: 10px;
}
.custombox_black {
color: black;
background-color: lightblue;
}
.underline {
text-decoration: underline red;
}
/* nested, used & to indicate child of above */
.nested_class {
background_color: white;
&:hover {
background_color: orange;
}
}
@mixin btnContainerBlack {
background-color: orange;
color: white;
&:hover {
background-color: gray;
color: black;
}
}
/* actual element */
.button-container {
@include btnContainerBlack;
}
/* from in-line CSS
.blackbox {
padding: 1em;
background: black;
color: white;
border: 2px solid orange;
border-radius: 10px;
}
*/
// ------------------------ @mixin
@mixin absolute-center() {
position:absolute;
left:50%;
top:50%;
transform:translate(-50%,-50%);
}
.element-1 {
@include absolute-center();
left: 40%;
color:green;
}
.element-2 {
@include absolute-center();
color:blue;
}
@mixin square($size) {
width:$size;
height:$size;
color:yellow;
}
.square {
@include square(60px);
background-color:#000;
}
// ------------------------ shadow box
//
.shadowbox {
width: 45em;
border: 1px solid #333;
box-shadow: 8px 8px 5px #444;
padding: 8px 12px;
background-image: linear-gradient(180deg, #fff, #ddd 40%, #ccc);
}