-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.scss
92 lines (75 loc) · 1.77 KB
/
test.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
// @group global
// @desc Base line height
// @type measure
$base-line-height: 1em;
.m-wrapper {
//
// @desc Content block #2
// @group content-blocks
//
@include block(content002) {
text-align: center;
// @description Align text to the left
@include modifier(left) {
text-align: left;
}
// @desc Nested element of content block - content entity
@include element(nested) {
@include _(3 3 4 4 4);
margin-top: $base-line-height * 2;
margin-bottom: $base-line-height * 2;
}
@include element(nested) {
// this should be mixed with upper element
text-decoration: underline;
}
@include element(title) {
@extend %heading;
@include _($full-row-configuration);
}
@include element(title-nested) {
@include type-setting(accent-text);
margin-bottom: $base-line-height;
height: $base-line-height * 4;
overflow: hidden;
display: block;
text-decoration: none;
&:hover{
text-decoration: underline;
}
@include _(greater than tablet) {
margin-bottom: $base-line-height * 2;
}
}
@include element(img) {
margin-bottom: $base-line-height;
height: $base-line-height * 12;
overflow: hidden;
position: relative;
img {
position: absolute;
margin: auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: auto;
min-height: 100%;
min-width: 100%;
}
@include _(greater than tablet) {
margin-bottom: $base-line-height * 2;
}
}
@include element(text) {
@include type-setting(text);
height: $base-line-height * 6;
overflow: hidden;
}
}
}
another {
test {
}
}