_notes.scss
1.5 KB
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
/***
Notes
***/
@mixin note-variant($text-color, $background-color, $border-color) {
background-color: lighten($background-color, 5%);
border-color: darken($border-color, 10%);
color: $text-color, 80%;
&.note-bordered {
background-color: lighten($background-color, 1%);
border-color: darken($border-color, 8%);
}
}
.note {
margin: 0 0 20px 0;
padding: 15px 30px 15px 15px;
border-left: 5px solid #eee;
@include border-radius(0 $portlet-border-radius $portlet-border-radius 0);
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top:0;
.close {
margin-right: -10px;
}
}
p {
&:last-child {
margin-bottom: 0;
}
font-size: 13px;
}
code,
.highlight {
background-color: #fff;
}
&.note-default {
@include note-variant($state-default-text, $state-default-bg, $state-default-border);
}
&.note-primary {
@include note-variant($state-primary-text, $state-primary-bg, $state-primary-border);
}
&.note-success {
@include note-variant($state-success-text, $state-success-bg, $state-success-border);
}
&.note-info {
@include note-variant($state-info-text, $state-info-bg, $state-info-border);
}
&.note-warning {
@include note-variant($state-warning-text, darken($state-warning-bg, 5%), darken($state-warning-border, 5%));
}
&.note-danger {
@include note-variant($state-danger-text, $state-danger-bg, $state-danger-border);
}
}