180 lines
3.4 KiB
CSS
180 lines
3.4 KiB
CSS
|
|
|
|
.currency {
|
|
font-family: 'SaudiRiyalFont', sans-serif;
|
|
}
|
|
|
|
.color-div {
|
|
width: 64px;
|
|
height: 16px;
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
border: 1px outset #CBD0DDFd;
|
|
text-align: center;
|
|
/*vertical-align: middle;*/
|
|
/*line-height: 22px;*/
|
|
}
|
|
.rtl .fa-chevron-left {
|
|
transform: scaleX(-1);
|
|
}
|
|
|
|
.rtl .fa-chevron-right {
|
|
transform: scaleX(-1);
|
|
}
|
|
|
|
.spinner-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
color: #555;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.spinner {
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 3px solid #ccc;
|
|
border-top-color: #333;
|
|
border-radius: 50%;
|
|
animation: spin 0.6s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.form-control, .form-select {
|
|
text-align: center;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
height: 38px; /* Adjust based on your design requirements */
|
|
}
|
|
|
|
/* For vertically centering text input which doesn't naturally use flex */
|
|
.form-control, .form-select {
|
|
line-height: 38px; /* Should match the height */
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
/* Center placeholders in all browsers */
|
|
.form-control::placeholder,
|
|
.form-control::-webkit-input-placeholder,
|
|
.form-control::-moz-placeholder,
|
|
.form-control:-ms-input-placeholder,
|
|
.form-control:-moz-placeholder {
|
|
text-align: center;
|
|
line-height: 38px; /* Match to keep placeholder centered */
|
|
}
|
|
|
|
/* Special handling for form icon containers if needed */
|
|
.form-icon-container .form-control {
|
|
padding-left: 35px; /* Adjust based on your icon width */
|
|
padding-right: 35px; /* For RTL support */
|
|
}
|
|
|
|
.form-icon-container {
|
|
position: relative;
|
|
}
|
|
|
|
.form-icon {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
z-index: 2;
|
|
}
|
|
|
|
/* Left icon (for LTR) */
|
|
html:not([dir="rtl"]) .form-icon {
|
|
left: 10px;
|
|
}
|
|
|
|
/* Right icon (for RTL) */
|
|
html[dir="rtl"] .form-icon {
|
|
right: 10px;
|
|
}
|
|
|
|
/* Adjust padding for the input to account for the icon */
|
|
.form-icon-container .form-control {
|
|
padding-left: 35px;
|
|
padding-right: 10px;
|
|
}
|
|
|
|
html[dir="rtl"] .form-icon-container .form-control {
|
|
padding-right: 35px;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.submitBtn.loading {
|
|
position: relative;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.submitBtn.loading:after {
|
|
content: "";
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 50%;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-top: -8px;
|
|
border: 2px solid #fff;
|
|
border-radius: 50%;
|
|
border-top-color: transparent;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
|
|
#spinner {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 9999;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#spinner-bg {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(255, 255, 255, 0.7);
|
|
opacity: 0;
|
|
transition: opacity 500ms ease-in;
|
|
visibility: hidden;
|
|
z-index: 10000;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#spinner-bg.htmx-request {
|
|
opacity: .8;
|
|
visibility: visible;
|
|
}
|
|
|
|
|
|
/* .fade-me-in.htmx-added {
|
|
opacity: 0;
|
|
}
|
|
.fade-me-in {
|
|
opacity: .9;
|
|
transition: opacity 300ms ease-out;
|
|
} */
|
|
|
|
#main_content.fade-me-in:not(.modal):not(.modal *) {
|
|
opacity: 1;
|
|
transition: opacity 300ms ease-out;
|
|
}
|
|
|
|
#main_content.fade-me-in.htmx-added:not(.modal):not(.modal *) {
|
|
opacity: 0;
|
|
} |