-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
127 lines (114 loc) · 2.41 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
/* Body and Container Styles */
body {
font-family: Arial, sans-serif;
background-color: #f8f9fa;
color: #343a40;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
text-align: center;
}
.container {
background-color: #ffffff;
padding: 50px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 600px;
width: 100%;
}
/* Typography */
h1 {
font-size: 100px;
margin-bottom: 20px;
}
p {
font-size: 20px;
margin-bottom: 30px;
}
/* Button Styles */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
font-size: 18px;
padding: 10px 20px;
background-color: #4CAF50;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
transition: background-color 0.3s ease;
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
background-color: #45a049;
}
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
background-color: #388e3c;
}
/* General Input Styles */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="search"],
textarea {
width: 100%;
padding: 10px;
margin: 5px 0;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
textarea:focus {
border-color: #66afe9;
box-shadow: 0 0 5px rgba(102, 175, 233, 0.5);
outline: none;
}
/* Specific Input Types */
input[type="checkbox"],
input[type="radio"] {
width: 18px;
height: 18px;
cursor: pointer;
accent-color: #4CAF50;
margin-right: 5px;
}
input[type="file"] {
border: 1px solid #ccc;
padding: 6px;
font-size: 16px;
border-radius: 4px;
}
input[type="range"],
input[type="color"] {
cursor: pointer;
}
input[type="number"] {
-moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
}