-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
114 lines (97 loc) · 1.86 KB
/
styles.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
* {
box-sizing: border-box;
transition: all 0.25s ease-in-out;
margin: 0;
}
body {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
background-color: rgb(59, 59, 64);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.btns-container {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: rgb(255, 255, 255);
font-weight: 600;
font-size: 1.125rem;
}
.btns-container .btn {
cursor: pointer;
margin: 0.8em;
width: 18rem;
display: flex;
justify-content: space-between;
position: relative;
z-index: 1;
}
.btn::after {
position: absolute;
content: "";
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: inherit;
z-index: -2;
}
.btn:hover::after {
filter: brightness(65%);
}
.btn--read:hover::after {
filter: saturate(190%);
}
.btn--search {
background-color: rgb(136, 136, 252);
}
.btn--read {
background-color: rgb(237, 111, 100);
}
.btn--email {
background-color: rgb(222, 107, 237);
}
.btn--phone {
background-color: rgb(65, 156, 110);
}
.btn__body {
margin: auto;
}
.btn__item {
padding: 1em 1.5em;
text-align: center;
background-color: rgba(0, 0, 0, 0.2);
}
.btn__icon {
min-width: 1.225rem;
}
.btn--read:hover .btn__icon {
animation-name: movement;
animation-duration: 650ms;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
@keyframes movement {
100% {
transform: translateX(30%);
}
}
.btn--search:hover .btn__icon {
transform: scale(1.5);
}
.btn--email:hover .btn__icon {
transform: skewX(-30deg);
}
.btn--phone:hover .btn__icon {
animation-name: rotation;
animation-duration: 650ms;
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
}
@keyframes rotation {
100% {
transform: rotate(30deg);
}
}