-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.css
More file actions
169 lines (148 loc) · 2.94 KB
/
application.css
File metadata and controls
169 lines (148 loc) · 2.94 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
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
/*
* This is a manifest file that'll be compiled into application.css.
*
* With Propshaft, assets are served efficiently without preprocessing steps. You can still include
* application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
* cascading order, meaning styles declared later in the document or manifest will override earlier ones,
* depending on specificity.
*
* Consider organizing styles into separate files for maintainability.
*/
/* General styles */
body {
font-family: 'Open Sans', sans-serif;
padding: 20px;
}
body.login {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
text-align: center;
padding: 20px;
border: 2px solid #FFD633;
border-radius: 5px;
max-width: 400px;
}
.logout-container {
text-align: right;
margin-bottom: 20px;
}
table {
border-collapse: collapse;
width: 100%;
}
th, td {
border: 1px solid #ccc;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
.inline-form {
display: inline;
}
/* Reusable button base style */
.btn {
display: inline-block;
padding: 8px 16px;
background-color: #FFC000;
color: black;
text-decoration: none;
border-radius: 4px;
border: none;
cursor: pointer;
}
.btn:hover {
background-color: #FFD633;
}
/* Specific button variants */
.approve-btn {
background-color: #4CAF50;
}
.reject-btn, .close-btn {
background-color: #f44336;
}
.pending-btn, .edit-btn {
background-color: yellow;
color: black;
}
/* Banner styles */
.banner {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background-color: #f8d7da;
color: #721c24;
border-bottom: 2px solid #f5c6cb;
padding: 10px 20px;
text-align: center;
font-weight: bold;
}
.banner-message.error {
background-color: #f8d7da;
color: #721c24;
}
.banner-message.notice {
background-color: #d4edda;
color: #155724;
}
.banner-message.alert {
background-color: #fff3cd;
color: #856404;
}
/* full screen overlay */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
/* modal content box */
.modal-content {
background-color: white;
padding: 1.5rem;
border-radius: 0.5rem;
min-width: 300px;
max-width: 600px;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.modal-area {
display: flex;
flex-direction: column;
margin-bottom: 1rem;
}
/* Horizontal radio buttons for puzzle answer */
.answer-radio-group {
display: flex;
gap: 1.5em;
align-items: center;
}
.answer-radio-group label {
display: flex;
align-items: center;
gap: 0.3em;
}
.field-error {
color: #dc3545;
font-size: 12px;
margin-top: 4px;
font-weight: 500;
}
input.error, textarea.error {
width: 100%;
border-color: #dc3545;
box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}