-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresponsive.css
148 lines (143 loc) · 2.85 KB
/
responsive.css
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
@media only screen and (max-width: 1140px){
.nav-list{
flex-direction: column;
}
.navbar{
height: 447px;
flex-direction: column;
transition: all 0.7s ease-out;
}
.rightNav{
text-align: center;
}
.box-main{
flex-direction: column-reverse;
max-width: 100%;
}
#search{
width: 100%;
}
.burger{
display: block;
}
.h-nav-resp{
height: 72px;
}
.v-class-resp{
opacity: 0;
}
.section{
flex-direction: column-reverse;
}
.text-small{
text-align: center;
}
.text-big{
text-align: center;
}
.buttons{
text-align: center;
}
.paras {
padding: 0px;
}
}
@media (min-width: 1024px) {
.card__thumb {
max-height: 500px;
}
}
.card__thumb::after {
position: absolute;
top: 0;
display: block;
content: "";
width: 100%;
height: 100%;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 40%, rgba(255, 255, 255, 0) 100%);
transition: 0.3s;
}
@media (min-width: 1024px) {
.card__thumb::after {
top: calc(100% - 140px);
}
}
.card__image {
transition: 0.5s ease-in-out;
}
.card__caption {
position: absolute;
top: 50%;
z-index: 1;
padding: 0 20px;
color: white;
transform: translateY(-50%);
text-align: center;
transition: 0.3s;
margin:20px 40px;
}
@media (min-width: 1024px) {
.card__caption {
top: calc(100% - 110px);
transform: unset;
}
}
.card__title {
display: -webkit-box;
max-height: 85px;
overflow: hidden;
font-family: "Playfair Display", serif;
font-size: 23px;
line-height: 28px;
text-shadow: 0px 1px 5px black;
text-overflow: ellipsis;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.card__snippet {
display: -webkit-box;
max-height: 150px;
margin: 20px 0;
overflow: hidden;
font-family: "Roboto", sans-serif;
font-size: 16px;
line-height: 20px;
text-overflow: ellipsis;
transition: 0.5s ease-in-out;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
}
@media (min-width: 1024px) {
.card__snippet {
margin: 60px 0;
}
}
.card__button {
display: inline-block;
padding: 10px 20px;
color: white;
border: 1px solid white;
font-family: "Roboto", sans-serif;
font-size: 12px;
text-transform: uppercase;
text-decoration: none;
transition: 0.3s;
}
.card__button:hover {
color: black;
background-color: white;
}
@media only screen and (max-width: 1140px){
.flip{
top: 50%;
left: 50%;
margin: -24px 0 0 -80px;
padding: 37px 6px 0px 6px;
}
}
@media only screen and (max-width: 1140px){
.firstHalf .flip{
padding: 0px 0px 0px;
top:20%;
}
}