passesFrontend/static/styles/main.css
2024-05-15 16:27:22 +03:00

849 lines
14 KiB
CSS

body {
background-color: #fff;
font-family: "Montserrat", sans-serif;
margin: 0;
color: rgba(0, 0, 0, 0.87);
}
* {
box-sizing: border-box;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
}
input:read-only,
select:read-only,
textarea:read-only {
background-color: #0000000a;
}
header {
box-sizing: border-box;
width: 100%;
padding: 0 16px;
display: flex;
justify-content: space-between;
align-items: center;
min-height: auto;
height: 56px;
background-color: #fff;
overflow: hidden;
transition: all 0.5s ease-out, background 1s ease-out;
transition-delay: 0.2s;
border-bottom: solid 1px #e5e7eb;
z-index: 6;
}
header a {
text-decoration: none;
}
header nav {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}
header nav a {
color: rgb(102, 102, 102);
text-align: center;
font-size: 14px;
color: #6b7a99;
margin: 0;
font-weight: 500;
cursor: pointer;
transition: 0.2s;
display: flex;
justify-content: center;
align-items: center;
height: 40px;
padding: 0 16px;
border-radius: 4px;
}
header span {
color: rgb(102, 102, 102);
text-align: center;
font-size: 14px;
color: #6b7a99;
margin: 0;
font-weight: 500;
text-decoration: none;
padding: 10px 16px;
}
header nav a:hover {
background-color: #e5e7eb;
}
header h1 {
font-size: 14px;
color: #6b7a99;
margin: 0;
font-weight: 500;
}
h1 {
font-size: 24px;
font-weight: 500;
margin: 0;
}
.main-content {
box-sizing: border-box;
width: 100%;
padding: 50px;
display: flex;
flex-direction: column;
gap: 25px;
}
.main-content .bg {
box-sizing: border-box;
background-color: #fff;
border-radius: 4px;
width: 100%;
padding: 20px;
display: flex;
gap: 20px;
min-height: 300px;
}
.hub-bg {
box-sizing: border-box;
background-color: #fff;
border-radius: 4px;
width: 100%;
padding: 20px;
display: flex;
gap: 20px;
flex-wrap: wrap;
align-content: flex-start;
min-height: 300px;
}
.settings-area {
flex-direction: column;
}
.main-content .buttons {
width: 358px;
height: 260px;
padding-left: 20px;
border-left: solid 1px #e5e7eb;
display: flex;
flex-direction: column;
gap: 20px;
}
.main-content .buttons button {
background-color: #0050cf;
outline: none;
border: none;
box-sizing: border-box;
border-radius: 4px;
padding: 14px 16px;
font-size: 14px;
color: #fff;
font-weight: 500;
cursor: pointer;
transition: 0.2s;
}
.main-content .buttons button:hover {
background-color: #002d6e;
}
.main-form {
width: 775px;
margin: 100px auto;
border-radius: 4px;
background-color: #fff;
box-sizing: border-box;
padding: 50px 75px;
display: flex;
flex-direction: column;
gap: 25px;
}
.main-form .inputs {
display: flex;
flex-direction: column;
gap: 25px;
}
.main-form .radio-inputs {
margin: 0 auto;
}
.main-form h1 {
font-size: 32px;
font-size: 600;
margin-bottom: 20px;
text-align: center;
}
.input-area label,
.tmc-input-group label,
.car-input-group label {
font-size: 14px;
color: #6b7a99;
}
.input-area input,
.input-area textarea,
.input-area select,
.tmc-input-group input,
.car-input-group input {
box-sizing: border-box;
width: 100%;
padding: 14px 14px 12px 14px;
font-size: 16px;
line-height: 20px;
height: 48px;
border: 1px solid #d3d8e6;
border-radius: 4px;
outline: none;
margin-top: 5px;
}
.tmc-input-group input,
.car-input-group input {
margin-top: 0 !important;
}
.tmc-input-group,
.car-input-group {
display: flex;
flex-direction: column;
gap: 10px;
}
select {
cursor: pointer;
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
background: url(../img/down-input.svg) no-repeat right white !important;
background-position-x: calc(100% - 14px) !important;
}
.input-area textarea {
resize: vertical;
min-height: 110px;
}
.input-area input:focus,
.input-area textarea:focus,
.input-area select:focus,
.tmc-input-group input:focus {
border: 1px solid #000;
}
.form-info {
box-sizing: border-box;
padding: 16px 16px 16px 56px;
width: 100%;
background-color: rgb(240, 245, 255);
border-radius: 8px;
color: rgb(0, 45, 110);
font-size: 14px;
}
.form-info p {
color: rgb(0, 45, 110);
font-size: 14px;
position: relative;
margin: 0;
}
.form-info p:before {
content: "";
position: absolute;
top: calc(70% - 18px);
left: -29px;
display: block;
width: 18px;
height: 18px;
background: url(../img/info.svg) 100% 100% no-repeat;
}
button {
background-color: #0050cf;
outline: none;
border: none;
box-sizing: border-box;
border-radius: 4px;
padding: 14px;
font-size: 14px;
color: #fff;
font-weight: 600;
cursor: pointer;
transition: 0.3s;
}
button:hover {
background-color: #002d6e;
}
button.bright {
background-color: #f0f5ff;
color: #0050cf;
}
button.delete {
background-color: rgb(255, 69, 58);
}
button.delete:hover {
background-color: rgba(255, 69, 58, 0.8);
}
button.bright:hover {
background-color: #0050cf;
color: #fff;
}
button.inactive {
opacity: 0.5;
cursor: not-allowed;
}
button.inactive:hover {
background-color: #0050cf;
}
.login-form {
width: 775px;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: auto;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
border-radius: 10px;
background-color: #fff;
box-sizing: border-box;
padding: 36px;
display: flex;
flex-direction: column;
gap: 8px;
max-height: 80%;
max-width: 412px;
min-height: 185px;
min-width: 320px;
}
.login-form h1 {
font-size: 32px;
font-size: 600;
margin-bottom: 50px;
text-align: center;
}
.login-form input {
padding: 12px 18px;
border: 1px solid rgba(211, 215, 225, 0.6);
border-radius: 4px;
outline: none;
}
.login-form h1 {
margin-bottom: 15px;
}
.login-form button {
margin-top: 5px;
}
.login-form span {
font-size: 14.4px;
}
.login-form span a {
color: rgb(0, 103, 184);
text-decoration: none;
}
.exit-button {
height: 40px;
width: 40px;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
}
.hub-element {
padding: 10px 30px 10px 10px;
border-radius: 12px;
display: flex;
align-items: flex-start;
flex-direction: column;
justify-content: center;
flex-wrap: wrap;
width: 450px;
height: 80px;
cursor: pointer;
}
.hub-element:hover {
background-color: #eeeff3;
}
.hub-element .icon {
background-color: rgb(238, 239, 244);
border-radius: 12px;
padding: 8px;
width: 48px;
height: 48px;
margin-right: 16px;
}
.hub-element:hover .icon {
background-color: #fff;
}
.hub-element .icon svg {
width: 32px;
height: 32px;
}
.hub-element h1 {
font-size: 16px;
margin: 0;
font-weight: 600;
width: calc(100% - 60px);
}
.hub-element h2 {
font-size: 14px;
margin: 0;
font-weight: 400;
width: calc(100% - 60px);
}
.radio-inputs {
position: relative;
display: flex;
flex-wrap: wrap;
border-radius: 0.5rem;
background-color: #eee;
box-sizing: border-box;
box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
padding: 0.25rem;
width: 300px;
font-size: 14px;
}
.radio-inputs .radio {
flex: 1 1 auto;
text-align: center;
}
.radio-inputs .radio input {
display: none;
}
.radio-inputs .radio .name {
display: flex;
cursor: pointer;
align-items: center;
justify-content: center;
border-radius: 0.5rem;
border: none;
padding: 0.5rem 0;
color: rgba(51, 65, 85, 1);
transition: all 0.15s ease-in-out;
}
.radio-inputs .radio input:checked + .name {
background-color: #fff;
font-weight: 600;
}
#pass-form .radio-inputs {
width: 600px;
}
.underheader-buttons {
width: 100%;
border-bottom: solid 1px #e5e7eb;
height: 56px;
display: flex;
align-items: center;
padding: 16px;
gap: 24px;
}
.underheader-buttons button {
border: solid 1px #d3d8e6;
border-radius: 4px;
background-color: #fff;
color: #6b7a99;
font-weight: 500;
height: 38px;
padding: 0 25px;
}
.underheader-buttons button:hover {
background-color: #e5e7eb;
}
.underheader-buttons input {
border: solid 1px #d3d8e6;
border-radius: 4px;
font-size: 14px;
background-color: #fff;
color: rgba(0, 0, 0, 0.75);
font-weight: 500;
height: 38px;
padding: 0 5px 0 10px;
outline: none;
width: 200px;
}
input::placeholder,
textarea::placeholder {
color: #6b7a99;
}
.underheader-buttons input:focus {
border: 1px solid #0050cf;
}
.underheader-buttons button.blue {
background-color: #0050cf;
color: #fff;
}
.table-wrapper {
overflow-x: auto;
position: relative;
box-sizing: border-box;
width: calc(100% - 32px);
margin: 24px 16px;
box-shadow: 0 0 0 1px #e5e7eb;
border-radius: 4px;
background-color: white;
}
table {
box-sizing: border-box;
width: 100%;
border-collapse: collapse;
overflow: hidden;
background-color: white;
}
table th {
color: rgba(0, 0, 0, 0.87);
font-size: 14px;
font-weight: 600;
height: 56px;
padding: 0 50px 0 10px;
border: 0;
text-align: left;
}
table td {
color: rgba(0, 0, 0, 0.87);
font-size: 14px;
padding: 0 50px 0 10px;
height: 56px;
font-weight: 500;
border-bottom: 0;
border-top: 1px solid #e5e7eb;
}
table tbody tr {
transition: 0.2s;
cursor: pointer;
background-color: white;
}
table tbody tr:hover {
background-color: #e5e7eb;
}
#pagination {
display: flex;
gap: 5px;
justify-content: center;
}
#pagination a {
color: rgba(0, 0, 0, 0.6);
border-radius: 10px;
padding: 8px 12px;
text-decoration: none;
margin-left: 6px;
}
#pagination a.active {
background-color: rgba(0, 0, 0, 0.05);
}
#pagination a:hover:not(.active) {
background-color: rgba(0, 0, 0, 0.025);
}
#pagination input:hover,
#pagination input:focus {
border: 1px solid rgba(0, 0, 0, 0.3);
}
#pagination #page-number {
width: 40px;
height: 40px;
display: flex;
border-radius: 8px;
background-color: #0050cf;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-size: 14px;
}
#pagination #left-slider,
#pagination #right-slider {
width: 40px;
height: 40px;
display: flex;
border-radius: 4px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition: 0.1s;
}
#pagination #left-slider:hover,
#pagination #right-slider:hover {
background-color: rgba(0, 0, 0, 0.1);
}
.form-popup-bg {
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
background-color: rgba(255, 255, 255, 1);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0s 0.3s;
overflow-y: auto;
z-index: 10000;
}
.form-popup-bg.is-visible {
opacity: 1;
visibility: visible;
-webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
-moz-transition: opacity 0.3s 0s, visibility 0s 0s;
transition: opacity 0.3s 0s, visibility 0s 0s;
}
.form-popup-bg.not-main {
background-color: rgba(0, 0, 0, 0.1);
}
.form-container {
border-radius: 10px;
display: flex;
flex-direction: column;
gap: 15px;
width: 1000px;
margin-left: auto;
margin-right: auto;
position: relative;
padding: 50px 40px;
border-radius: 12px;
border: 1px solid #fff;
background: #fff;
box-shadow: 0px 12px 28px 0px #c5cbd0;
display: inline-flex;
flex-direction: column;
flex-shrink: 0;
max-height: calc(100vh - 100px);
overflow-y: auto;
}
.close-button {
width: 40px;
height: 40px;
position: absolute;
top: 8px;
right: 8px;
cursor: pointer;
user-select: none;
display: flex;
justify-content: center;
align-items: center;
}
.form-container h1 {
font-size: 32px;
margin: 0;
font-weight: 500;
}
.form-container h2 {
font-size: 18px;
margin: 0;
font-weight: 500;
}
.form-container .inputs,
.worker-inputs {
display: flex;
flex-direction: column;
gap: 15px;
}
.three-inputs,
.two-inputs {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px 0;
}
.three-inputs input,
.three-inputs select {
box-sizing: border-box;
width: 32.5%;
padding: 14px 14px 12px 14px;
font-size: 16px;
line-height: 20px;
height: 48px;
border: 1px solid #d3d8e6;
border-radius: 4px;
outline: none;
}
.two-inputs input,
.two-inputs select {
box-sizing: border-box;
width: 49.5%;
padding: 14px 14px 12px 14px;
font-size: 16px;
line-height: 20px;
height: 48px;
border: 1px solid #d3d8e6;
border-radius: 4px;
outline: none;
}
.three-inputs input:focus,
.three-inputs select:focus,
.two-inputs input:focus,
.two-inputs select:focus {
border: 1px solid #000;
}
.fullname-input-group {
display: flex;
gap: 5px;
}
.fullname-input-group button {
height: 48px;
margin-top: 5px;
}
#tmclist,
#carlist {
list-style-type: none;
padding: 0;
margin: 0;
}
.blocked-alarm {
display: flex;
position: absolute;
left: 25px;
top: 25px;
height: 75px;
width: 350px;
padding: 15px;
align-items: center;
justify-content: space-between;
gap: 10px;
background-color: white;
border-radius: 10px;
}
.blocked-alarm h1 {
margin: 0;
font-size: 20px;
}
.blocked-alarm svg {
height: 50px;
z-index: 100;
}
.dropdown-help {
display: none;
flex-direction: column;
align-items: flex-start;
position: absolute;
background-color: #fff;
width: 212px;
transform: translate(calc(-100% + 212px), 10px);
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 12px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.02),
0px 4px 8px -4px rgba(0, 0, 0, 0.04), 0px 16px 24px -8px rgba(0, 0, 0, 0.06);
padding: 8px;
z-index: 6;
opacity: 0;
transition: opacity 0.2s ease;
}
.dropdown-help.is-visible {
opacity: 1;
transition: none;
}
.dropdown-help a {
font-size: 14px;
height: 40px;
border-radius: 6px;
padding: 0 8px;
width: 100%;
display: flex;
align-items: center;
transition: 0.1s ease;
cursor: pointer;
text-decoration: none;
color: #0f0f10;
}
.dropdown-help a:hover {
background: rgba(0, 0, 0, 0.06);
}
.dropdown-manual {
width: 122px;
transform: translate(calc(-100% + 122px), 10px);
}