mixins.scss

mixins.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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
@mixin text-line-clamp($line: 2) {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: $line;
}

@mixin glyphicon($mark) {
content: '#{$mark}';
font-family: 'Glyphicons Halflings';
}

@mixin image-zoom() {
transition: all 0.4s ease-out;
&:hover {
transform: scale(1.15);
}
}

@mixin object-fit() {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
object-fit: cover;
font-family: 'object-fit: cover;';
}

// Safari image border-radius
@mixin mask-image() {
-webkit-mask-image: -webkit-radial-gradient(white, black);
}

@mixin readmore($color: $pink) {
color: $color;
text-transform: uppercase;
text-decoration: none;
&::after {
@include glyphicon('\e072');
display: inline-block;
font-size: 12px;
font-weight: 500;
transition: padding .25s;
transform: scale(.8);
-webkit-transform: scale(.8);
}

&:hover::after,
&:focus::after,
&:active::after {
padding-left: 8px;
}
}

@mixin position($pos:absolute,$top:0,$con:'',$w:100%,$h:100%){
position: $pos;
top: $top;
content: $con;
display: inline-block;
width: $w;
height: $h;
}

@mixin change-color($normal: $primary-shade, $highlight: $primary-dark) {
color: $normal;

&:hover,
&:active {
color: $highlight;
}
}

@mixin moveup() {
transform: translateY(-10px);
}

@mixin add-shadow($x:4px, $y:6px, $width:8px, $color: rgba(0, 0, 0, .3)) {
box-shadow: $x $y $width $color;
}


@mixin content-title {
font-size: 28px;
font-weight: 900;
letter-spacing: -0.02rem;
}

@mixin page-title {
font-size: 32px;
font-weight: 900;
line-height: 40px;

@media (max-width: 1200px) {
font-size: 30px;
line-height: 1.4;
letter-spacing: -0.33px;
}
}


@mixin flex($hov: space-between, $col: center) {
display: flex;
justify-content: $hov;
align-items: $col;
}

@mixin bgImg($w: 100%, $h: 100%, $img: "", $size: 100%) {
display: inline-block;
width: $w;
height: $h;
background: url($img) no-repeat center;
background-size: $size;
}

@mixin bg-width-full($bg) {
background: $bg;
position: relative;
&::before,
&::after {
@include position($w: 20%);
left: -20%;
background: $bg;
}
&::after {
right: -20%;
left: auto;
}
}

@mixin button($w: 189px, $h: 53px, $fcolor: #000, $bg: $ui-yellow,$h-bg: $dark-yellow,
$fz: 16px) {
display: inline-block;
width: $w;
height: $h;
line-height: $h;
color: $fcolor;
text-transform: uppercase;
text-decoration: none;
background: $bg;
border-color: $bg;
font-size: $fz;
font-weight: bold;
&:hover {
background: $h-bg;
border-color: $h-bg;
}
}

@mixin down-arrow($color: $white, $deg: 45deg) {
border-right: 2px solid $color;
border-bottom: 2px solid $color;
transform: rotate($deg);
}

@mixin hook-icon($color: $white, $deg: -45deg) {
border-left: 2px solid $color;
border-bottom: 2px solid $color;
transform: rotate($deg);
}

@mixin circular($w, $h, $bg) {
display: inline-block;
width: $w;
height: $h;
border-radius: 50%;
background-color: $bg;
}

@mixin input-text(
$p: 10px,
$h: 56px,
$w: 100%,
$br: 16px,
$bg: $input-bg,
$fs: 15px,
$color: $dusk
) {
box-sizing: border-box;
padding: $p;
border: none;
border-radius: $br;
background: none;
background-color: $bg;
width: $w;
height: $h;
outline: none;
font-size: $fs;
color: $color;
}

@mixin select-arrow() {
background: $input-bg url(../images/select-arrow.png) no-repeat
calc(100% - 16px) center;
background-size: 18px auto;
}

@mixin disabled-button {
background: #f5f5f5;
border: 2px solid $disabled;
color: $disabled;
cursor: auto;
}