-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
142 lines (125 loc) · 2.28 KB
/
style.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
body{
background: rgba(0,0,0,0.9);
margin: 0;
color: white;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/*.showcase::after 'it is a css element, used for styling' */
.showcase::after{
content: '';
height: 100vh;
width: 100%;
background-image: url(img1.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
display: block;
filter: blur(10px);
-webkit-filter: blur(10);
transition: all 1000ms;
}
.showcase:hover::after{
filter: blur(-1px);
-webkit-filter: blur(0);
}
.showcase:hover .content{
filter: blur(2px);
-webkit-filter: blur(2);
}
/*
.content:hover #bg{
filter: blur(2px);
-webkit-filter: blur(2);
} */
.content{
position: absolute;
z-index: 1;
top: 6%;
left: 50%;
margin-top: 105px;
margin-left: -145px;
width: 300px;
height: 350px;
text-align: center;
transition: all 1000ms;
}
.content .logo{
height: 185px;
width: 185px;
}
.content .title{
font-size: 2.8rem;
margin-top: 1rem;
}
.content .text{
line-height: 1.6;
margin-top: 1rem;
font-weight: 200px;
}
.container{
max-width: 960px;
margin: auto;
overflow: hidden;
padding: 4rem 1rem;
}
.grid-3{
display: grid;
grid-gap: 20px;
grid-template-columns: 1fr 1fr 1fr; /* repeat(3, 1fr) */
}
.grid-2{
display: grid;
grid-gap: 20px;
grid-template-columns: 1fr 1fr; /* repeat(2, 1fr) */
}
.center{
text-align: center;
margin: auto;
}
.bg-light{
background: #f4f4f4;
color: #333;
}
.bg-dark{
background: #333;;
color: #f4f4f4;
}
footer{
padding: 2.2rem;
}
footer p{
margin: 0;
}
/* Mobile Devices */
@media(max-width: 560px){
.showcase::after{
height: 50vh;
}
.content{
top: 5%;
margin-top: 5px;
}
.content .logo{
height: 140px;
width: 140px;
}
.content .text{
display: none;
}
.grid-3, .grid-2{
grid-template-columns: 1fr;
}
.services div{
border-bottom: #333 dashed 1.4px;
padding: 1.3rem 1rem;
}
}
/* Landscape height */
@media(max-height: 500px){
.content .title, .content .text{
display: none;
}
.content{
top: 0;
}
}