-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbase_bulma.scss
55 lines (47 loc) · 1.04 KB
/
base_bulma.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
@import "../vendor/bulma.scss";
body {
padding: 1rem;
}
// Main page:
main {
max-width: 60rem;
margin: auto;
}
// Avoid overriding lots of widget templates to add Bulma classes, by instead
// applying Bulma classes contextually using @extend. We could also use
// Bulma-provided Sass mixins for this, but this technique works even if we only
// have the generated CSS (renamed to SCSS).
.field-label label {
@extend .label;
}
.field-body {
input[type=text], input[type=email], input[type=password], input[type=date] {
@extend .input;
}
input[type=date] {
@extend .input;
}
input[type=checkbox] {
@extend .checkbox;
}
button {
@extend .button;
}
}
.field ul.errorlist {
@extend .has-text-danger;
}
ul.errorlist.nonfield {
@extend .notification;
@extend .is-danger;
@extend .is-light;
list-style: inside disc;
margin: 1em 0em;
}
ul.messagelist > li {
@extend .notification;
&.info {
@extend .is-info;
}
margin-bottom: 1rem;
}