-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
142 lines (137 loc) · 2.3 KB
/
style.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
/* #stopUsingPx */
/* Universal Selector */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Global CSS Variables */
:root {
--primary-color:rgb(34, 110, 197);
--danger-color: rgb(196, 51, 9);
}
html {
font-size: 62.5%;
/* This will set 1rem=10px; */
}
body {
overflow: hidden;
}
main {
width: 100vw;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
line-height: 1.4;
}
.container {
width: 40rem;
padding: 1rem;
}
.container h2 {
text-align: center;
font-size: 3.5rem;
margin-bottom: 2rem;
}
.container span {
color: var(--primary-color);
}
.container i.fas {
color: var(--primary-color);
}
label {
font-size: 2rem;
}
input[type="text"] {
display: block;
width: 100%;
outline: none;
font-size: 1.8rem;
padding: 0.2rem 1rem;
margin: 0.2rem 0;
}
input[type="text"]:focus {
outline: 0.1rem solid var(--primary-color);
}
#add-book-btn {
display: block;
width: 100%;
background-color: var(--primary-color);
border: none;
outline: none;
color: white;
margin: 2rem auto;
padding: 0.5rem 0;
font-size: 1.8rem;
cursor: pointer;
}
.table-container {
width: 60%;
margin: 2rem auto;
}
table.book-container {
width: 100%;
border-collapse: collapse;
font-size: 1.8rem;
}
table.book-container th,
table.book-container td {
padding: 0.8rem;
}
table.book-container tr:nth-child(even) {
background-color: #f2f2f2;
}
table.book-container tr:hover {
background-color: #ddd;
}
table.book-container th {
background-color: var(--primary-color);
color: white;
font-size: 2rem;
text-align: left;
}
table.book-container td:last-child {
text-align: center;
}
.remove-button {
border: none;
outline: none;
background-color: var(--danger-color);
color: white;
width: 2rem;
height: 2rem;
line-height: 2rem;
border-radius: 50%;
cursor: pointer;
}
.alert{
font-size:1.8rem;
color:white;
padding: 0.2rem 1rem;
}
.alert-success{
background-color: rgb(73, 168, 8);
}
.alert-danger{
background-color: rgb(191, 6, 0);
}
@media only screen and (max-width: 768px) {
html {
font-size: 52%;
}
.table-container {
width: 90%;
}
}
@media only screen and (max-width: 480px) {
.container {
width: 90%;
}
}
@media only screen and (max-width:390px){
html{
font-size: 40%;
}
}
/* Pramesh Karki */