-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
141 lines (123 loc) · 2.89 KB
/
styles.css
File metadata and controls
141 lines (123 loc) · 2.89 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
133
134
135
136
137
138
139
140
141
* {
margin: 0;
padding: 0;
box-sizing: border-box; /* Prevent padding/border issues */
}
body {
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
background-color: lightgoldenrodyellow; /* Light background for contrast */
min-height: 100vh; /* Ensure body fills viewport */
display: flex;
justify-content: center;
align-items: center;
}
.window-container {
display: grid;
grid-template-columns: 1fr minmax(300px, 1200px) 1fr; /* Center content with max width */
grid-template-rows: auto auto; /* Two rows: main content and button */
gap: 20px;
padding: 20px;
width: 100%;
max-width: 1400px; /* Limit width on large screens */
}
#main-container {
grid-column: 2 / 3; /* Center in middle column */
grid-row: 1 / 2;
display: flex;
flex-wrap: wrap;
gap: 15px;
padding: 15px;
background-color: #fff; /* White background for cards */
border: 2px solid #6a0dad; /* Purple border */
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
.button-container {
grid-column: 2 / 3; /* Center in middle column */
grid-row: 2 / 3;
display: flex;
justify-content: center;
padding: 10px;
position: relative;
}
#showDialog {
padding: 10px 20px;
font-size: 1rem;
font-weight: bold;
background-color: #6a0dad; /* Purple */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s;
}
#showDialog:hover {
background-color: #8a2be2; /* Lighter purple */
}
/* Dialog styling */
dialog {
border: none;
border-radius: 10px;
padding: 20px;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
max-width: 400px;
width: 90%;
position: absolute;
left: 30%;
top: 20%;
}
dialog::backdrop {
background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
}
dialog p {
font-size: 1.2rem;
margin-bottom: 15px;
}
dialog form {
display: flex;
flex-direction: column;
gap: 10px;
}
dialog form div {
display: flex;
flex-direction: column;
}
dialog form label {
font-weight: bold;
margin-bottom: 5px;
}
dialog form input {
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 1rem;
}
dialog form button {
padding: 10px;
margin-top: 10px;
border: none;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
}
dialog form #confirm {
background-color: #6a0dad;
color: white;
}
dialog form #confirm:hover {
background-color: #8a2be2;
}
dialog form #cancel {
background-color: #ff4d4d;
color: white;
}
dialog form #cancel:hover {
background-color: #ff6666;
}
@media (max-width: 700px){
dialog{
top: 0%;
left: 0%
}
}