forked from techreturners/lm-lab-css-bem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
132 lines (112 loc) · 2.31 KB
/
styles.css
File metadata and controls
132 lines (112 loc) · 2.31 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
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
body {
height: 100%;
margin: 0;
background-color: #000;
background-image: url("images/outer-space.jpg");
background-size: cover;
font: 400 15px/1.8 "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
color: #fff;
}
.header {
text-align: center;
font-size: 4rem;
height: 6rem;
margin-top: 0;
background: -webkit-linear-gradient(#fff, #6f62c8);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.container {
display: flex;
justify-content: center;
align-items: center;
}
/* card styles */
.card {
width: 20rem;
min-height: 445px;
border-radius: 50%;
border: solid 6px;
margin: 20px 50px;
padding: 20px;
border-color: #fff;
font-weight: bold;
transition: all 0.9s ease-out;
}
.card__dark {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
background-color: black;
text-align: right;
border-color: #d10000;
box-shadow: 0 0 29px 6px #fff, 0 0 50px 0px #d10000, 0 0 60px 50px #d10000;
}
.card__light {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
background-color: white;
color: #000;
border-color: #0a98eb93;
box-shadow: 0 0 29px 6px #fff, 0 0 50px 0px #0a98eb, 0 0 60px 50px #0a98eb;
}
.card__header {
font-size: 2em;
margin: 0 auto 10px;
}
.card__header-dark {
text-align: right;
}
.card__img {
height: 200px;
}
.card__p {
font-size:0.8rem;
text-decoration: dotted;
}
/* button styles */
.button {
border: 2px solid #111;
cursor: pointer;
height: 48px;
line-height: 24px;
padding: 0 25px;
border-radius: 8px;
}
.button:after {
border-radius: 8px;
}
.button:hover:after {
border-color: #ccc;
}
.button:active {
background-color: black;
outline: 0;
}
.button:hover {
outline: 0;
transition: all .3s ease-out;
}
.button__dark {
color: white;
background-color: #d10000;
border: solid #efefef;
}
.button__dark:hover {
border-color: #d10000;
}
.card:has(.button__dark:hover) {
z-index: 1;
box-shadow: 0 0 39px 40px #fff, 0 0 250px 630px #d1000095, 0 0 200px 650px #d1000095;
transition: all 10s ease-out;
}
.button__light {
color: white;
background-color: #0a98eb;
}
.button__light:hover {
border-color: #0a98eb;
}
.card:has(.button__light:hover) {
box-shadow: 0 0 29px 40px #fff, 0 0 250px 630px #0a98eb93, 0 0 200px 650px #0a98eb93;
transition: all 10s ease-out;
}