programa.scss
2.4 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
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
// Variables
$program-box-space: 20px;
$scale: 1.1;
$time: .3s;
$darken: 15%;
// sandbox
.program-box {
cursor: pointer;
background-color: #fff;
margin-bottom: $program-box-space;
.contraste & {
color: #fff;
background-color: #262626;
}
&--category {
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
line-height: 22px;
display: block;
height: 30px;
margin: 0;
padding: 5px $program-box-space;
color: #ffffff;
@each $category, $color in $categories {
.#{$category} & {
background-color: $color;
}
}
.contraste & {
background-color: #262626;
}
}
&--title {
font-size: 18px;
font-weight: bold;
padding: 0 $program-box-space;
margin: 0 0 10px 0;
}
&--abstract {
padding: 0 $program-box-space;
}
&--button {
padding: $program-box-space;
.btn {
color: #fff;
font-weight: bold;
padding: 15px 0;
border-left: 0;
border-right: 0;
border-top: 0;
border-radius: 6px;
@each $category, $color in $categories {
.#{$category} & {
background-color: $color;
border-bottom: 3px solid darken($color, $darken);
}
}
.contraste & {
color: #262626;
background-color: #fff;
}
}
}
&--image-wrapper {
position: relative;
// width: 100%;
// width: 370px;
// height: 170px;
overflow: hidden;
// text-align: center;
min-height: 170px;
}
&--image {
min-height: 170px;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
-webkit-transition: all $time ease-in-out;
-moz-transition: all $time ease-in-out;
-o-transition: all $time ease-in-out;
transition: all $time ease-in-out;
}
&:hover .program-box--image {
-webkit-transform: scale($scale); /* prefixo para browsers webkit */
-moz-transform: scale($scale); /* prefixo para browsers gecko */
-o-transform: scale($scale); /* prefixo para opera */
transform: scale($scale);
}
}