Complete TP7 TP8 authentication authorization and classic CSS
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--blue: #1f4e79;
|
||||
--blue-dark: #163a5c;
|
||||
--blue-light: #eaf2f8;
|
||||
--border: #d7dee6;
|
||||
--text: #263238;
|
||||
--muted: #66727d;
|
||||
--danger: #a33a3a;
|
||||
--success: #2f6f4e;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #f5f7fa;
|
||||
color: var(--text);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
a { color: var(--blue); }
|
||||
a:hover { color: var(--blue-dark); }
|
||||
|
||||
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
|
||||
|
||||
.site-header {
|
||||
background: var(--blue);
|
||||
border-bottom: 4px solid #d6a84f;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.header-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
min-height: 76px;
|
||||
}
|
||||
|
||||
.brand { margin: 0; font-size: 1.55rem; letter-spacing: .02em; }
|
||||
.brand a { color: #fff; text-decoration: none; }
|
||||
|
||||
.main-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 8px 14px;
|
||||
}
|
||||
|
||||
.main-nav a { color: #fff; text-decoration: none; }
|
||||
.main-nav a:hover { text-decoration: underline; }
|
||||
.main-nav span { color: #e7eef5; font-size: .9rem; }
|
||||
.main-nav form { margin: 0; }
|
||||
|
||||
.page-content {
|
||||
min-height: calc(100vh - 142px);
|
||||
padding-top: 34px;
|
||||
padding-bottom: 46px;
|
||||
}
|
||||
|
||||
h2 { color: var(--blue-dark); margin-top: 0; }
|
||||
h3 { color: var(--blue); }
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
margin: 22px 0;
|
||||
border-collapse: collapse;
|
||||
background: #fff;
|
||||
box-shadow: 0 1px 3px rgb(31 78 121 / 10%);
|
||||
}
|
||||
|
||||
th, td { padding: 11px 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
|
||||
th { background: var(--blue-light); color: var(--blue-dark); font-weight: 700; }
|
||||
tr:nth-child(even) td { background: #fbfcfd; }
|
||||
|
||||
form:not(.inline-form) {
|
||||
max-width: 620px;
|
||||
padding: 22px;
|
||||
margin: 18px 0;
|
||||
background: #fff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 3px rgb(31 78 121 / 8%);
|
||||
}
|
||||
|
||||
label { display: block; margin: 12px 0 5px; font-weight: 700; color: var(--blue-dark); }
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
padding: 9px 10px;
|
||||
border: 1px solid #b8c4cf;
|
||||
border-radius: 3px;
|
||||
background: #fff;
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
}
|
||||
input:focus, select:focus, textarea:focus { outline: 2px solid #9fc4df; border-color: var(--blue); }
|
||||
|
||||
button, .button {
|
||||
display: inline-block;
|
||||
margin-top: 14px;
|
||||
padding: 8px 14px;
|
||||
border: 1px solid var(--blue-dark);
|
||||
border-radius: 3px;
|
||||
background: var(--blue);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
button:hover, .button:hover { background: var(--blue-dark); color: #fff; }
|
||||
button[type="submit"] { margin-top: 12px; }
|
||||
|
||||
td form { display: inline; margin: 0; padding: 0; border: 0; box-shadow: none; }
|
||||
td form button { margin: 0 0 0 8px; padding: 4px 8px; background: #fff; color: var(--danger); border-color: #c98787; }
|
||||
td form button:hover { background: #f9eaea; color: #7e2929; }
|
||||
|
||||
ul { padding-left: 24px; }
|
||||
li, .error { color: var(--danger); }
|
||||
.success { padding: 10px 12px; border-left: 4px solid var(--success); background: #eaf5ee; color: var(--success); }
|
||||
|
||||
main nav[role="navigation"] { margin-top: 18px; }
|
||||
main nav[role="navigation"] svg { width: 1rem; height: 1rem; }
|
||||
main nav[role="navigation"] a, main nav[role="navigation"] span { margin-right: .35rem; }
|
||||
|
||||
.site-footer { padding: 18px 0; border-top: 1px solid var(--border); background: #fff; color: var(--muted); font-size: .9rem; }
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
|
||||
.main-nav { justify-content: flex-start; }
|
||||
table { display: block; overflow-x: auto; white-space: nowrap; }
|
||||
}
|
||||
Reference in New Issue
Block a user