Skip to content

Commit 1796b3e

Browse files
committed
Add styling for various html components
1 parent 85b9e1a commit 1796b3e

File tree

1 file changed

+114
-0
lines changed

1 file changed

+114
-0
lines changed

style.css

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
:root {
2+
--male-gender-color: #3399ff;
3+
--female-gender-color: #ff3300;
4+
}
5+
6+
html {
7+
height: 100%;
8+
width: 100%;
9+
overflow: hidden;
10+
}
11+
12+
body {
13+
height: inherit;
14+
width: inherit;
15+
font-family: 'Poppins', sans-serif;
16+
}
17+
18+
img {
19+
border: 5px solid;
20+
border-radius: 50%;
21+
}
22+
23+
h1 {
24+
margin-bottom: 0%;
25+
}
26+
27+
button {
28+
font-family: 'Poppins', sans-serif;
29+
color: white;
30+
border: none;
31+
padding-left: 1.5rem;
32+
padding-right: 1.5rem;
33+
padding-top: 0.8rem;
34+
padding-bottom: 0.8rem;
35+
}
36+
37+
button:focus {
38+
outline: none;
39+
}
40+
41+
#app{
42+
height: inherit;
43+
text-align: center;
44+
display: flex;
45+
flex-direction: column;
46+
justify-content: center;
47+
align-items: center;
48+
}
49+
50+
.male {
51+
background-color: var(--male-gender-color);
52+
border: 3px solid var(--male-gender-color);
53+
transition: 0.5s ease-in;
54+
}
55+
56+
button.male:hover {
57+
background-color: white;
58+
color: var(--male-gender-color);
59+
font-weight: bold;
60+
}
61+
62+
.female {
63+
background-color: var(--female-gender-color);
64+
border: 3px solid var(--female-gender-color);
65+
transition: 0.5s ease-in;
66+
}
67+
68+
button.female:hover {
69+
background-color: white;
70+
color: var(--female-gender-color);
71+
font-weight: bold;
72+
}
73+
74+
.joke-setup {
75+
margin-bottom: 0%;
76+
font-weight: bold;
77+
}
78+
79+
.joke-button {
80+
-webkit-tap-highlight-color: transparent;
81+
appearance: none;
82+
border-radius: 100px;
83+
border: 2px solid black;
84+
border: 0;
85+
background-size: 300% 100%;
86+
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
87+
color: black;
88+
cursor: pointer;
89+
outline: none;
90+
overflow: hidden;
91+
position: relative;
92+
93+
-moz-transition: all 0.4s ease-in-out;
94+
-o-transition: all 0.4s ease-in-out;
95+
-webkit-transition: all 0.4s ease-in-out;
96+
transition: all 0.4s ease-in-out;
97+
}
98+
99+
.joke-button:hover {
100+
background-position: 100% 0;
101+
-moz-transition: all 0.4s ease-in-out;
102+
-o-transition: all 0.4s ease-in-out;
103+
-webkit-transition: all 0.4s ease-in-out;
104+
transition: all 0.4s ease-in-out;
105+
}
106+
107+
.joke-button:focus {
108+
outline: none;
109+
}
110+
111+
.joke-button {
112+
background-image: linear-gradient(to right, #f5ce62, #e43603, #fa7199, #e85a19);
113+
box-shadow: 0 4px 15px 0 rgba(229, 66, 190, 0.75);
114+
}

0 commit comments

Comments
 (0)