-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
177 lines (156 loc) · 3.25 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/* Resetting some default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body styling */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #12c2e9 0%, #c471ed 50%, #f64f59 100%);
display: flex;
height: 100vh;
overflow: hidden;
}
/* Topbar styling */
.topbar {
width: 100%;
height: 60px;
background-color: #333;
position: fixed;
top: 0;
left: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
z-index: 1000;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.topbar .logo a {
color: #ffffff;
text-decoration: none;
font-size: 1.5em;
font-weight: bold;
}
.topbar .nav-links {
list-style: none;
padding: 0;
margin: 0;
display: flex;
}
.topbar .nav-links li {
margin: 0 15px;
}
.topbar .nav-links a {
color: #ffffff;
text-decoration: none;
padding: 10px 15px;
border-radius: 5px;
transition: background-color 0.3s, color 0.3s;
}
.topbar .nav-links a:hover {
background-color: #575757;
color: #ffffff;
}
/* Container styling */
.container {
margin-left: auto;
margin-right: auto;
text-align: center;
background-color: #ffffff;
border-radius: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
padding: 30px 40px;
height: fit-content;
width: fit-content;
max-width: 80%;
margin-top: 100px;
}
/* Heading styling */
h1 {
font-size: 2.5em;
color: #333;
margin-bottom: 20px;
font-weight: 700;
line-height: 1.3;
background: linear-gradient(90deg, #ff6f61, #d084a3);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
animation: gradientAnimation 3s infinite;
}
/* Keyframes for gradient animation */
@keyframes gradientAnimation {
0% {
background-position: 0% 0%;
}
50% {
background-position: 100% 100%;
}
100% {
background-position: 0% 0%;
}
}
/* Button styling */
button {
background-color: #271d30;
color: #fff;
border: none;
border-radius: 30px;
padding: 15px 30px;
font-size: 1em;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
button:hover {
background-color: #355c7d;
transform: scale(1.05);
}
/* Color display styling */
#color {
font-size: 1.25em;
color: #555;
margin-bottom: 20px;
}
/* Button and hex-codes container styling */
.container button,
.container #hex-codes {
display: block;
margin: 0 auto;
}
#hex-codes {
margin-top: 100px;
font-size: 1.5em;
border-color: #f64f59;
color: #333;
font-weight: bold;
padding: 10px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Responsive design */
@media (max-width: 600px) {
.topbar {
width: 150px;
}
.container {
margin-left: 170px;
width: calc(100% - 170px);
}
h1 {
font-size: 1.5em;
}
#color {
font-size: 1em;
}
button {
font-size: 0.9em;
padding: 12px 24px;
}
#hex-codes{
font-size: 0.9em;
padding: 12px 24px;
}
}