Files
quectel-rgmii-toolkit/www/css/custom.css
2024-10-03 08:33:32 +08:00

263 lines
4.2 KiB
CSS

/* */
/* import Poppins font */
@import url("https://fonts.googleapis.com/css2?family=Euclid+Flex:wght@400;500;600;700&display=swap");
/* use Poppins everywhere */
* {
font-family: "Poppins", sans-serif;
}
html {
visibility: hidden;
}
html.theme-dark,
html.theme-light {
visibility: visible;
}
.body-margin {
margin-left: 1.5rem;
margin-right: 1.5rem;
margin-top: 1rem;
margin-bottom: 1rem;
height: 100vh;
}
.column-margin {
margin-top: 3rem;
margin-bottom: 2rem;
}
.table.is-borderless td,
.table.is-borderless th {
border: 0;
}
.cell {
display: grid;
height: 100%;
}
#handleRefreshClickButton {
cursor: pointer;
}
#handleRefreshClickButton:disabled {
cursor: wait;
opacity: 0.7;
}
.fa-spin {
animation: fa-spin 2s infinite linear;
}
@keyframes fa-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#dataConnState .tag {
transition: all 0.3s ease-in-out;
}
/* Add a bit of roundness on the corner */
.rounded-edge {
border-radius: 1rem;
}
.command-history {
max-height: 300px;
overflow-y: auto;
}
.loading {
opacity: 0.7;
pointer-events: none;
}
.history-item {
position: relative;
padding-right: 2rem;
}
.delete-history {
position: absolute;
top: 0.5rem;
right: 0.5rem;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.2s;
}
.delete-history:hover {
opacity: 1;
}
.command-text {
cursor: pointer;
color: #485fc7;
}
.command-text:hover {
text-decoration: underline;
}
.no-history {
padding: 1rem;
text-align: center;
color: #7a7a7a;
}
@keyframes fadeOut {
to {
opacity: 0;
height: 0;
padding: 0;
margin: 0;
overflow: hidden;
}
}
.fade-out {
animation: fadeOut 0.3s ease-out forwards;
}
#cooldownTimer {
position: absolute;
right: 0.5rem;
top: 50%;
transform: translateY(-50%);
font-size: 0.8rem;
color: #666;
pointer-events: none;
}
.countdown-text {
text-align: center;
margin-top: 1rem;
margin-left: 1.5rem;
font-size: 1.2rem;
font-weight: 600;
}
/* Center content in modal */
.modal-card-body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 200px;
}
.custom-loader {
width:50px;
height:50px;
--c:radial-gradient(farthest-side,#766DF4 92%,#0000);
background:
var(--c) 50% 0,
var(--c) 50% 100%,
var(--c) 100% 50%,
var(--c) 0 50%;
background-size:12px 12px;
background-repeat:no-repeat;
animation:s7 1s infinite;
}
@keyframes s7 {to{transform: rotate(.5turn)}}
/* table responsiveness */
/* Custom table styles */
.cell-table {
width: 100%;
border-collapse: collapse;
}
.cell-table th,
.cell-table td {
padding: 0.75rem;
}
/* Mobile styles */
@media screen and (max-width: 768px) {
.cell-table thead {
display: none;
}
.cell-table tbody {
display: block;
}
.cell-carousel {
position: relative;
overflow: hidden;
padding: 1rem 0;
}
.cell-carousel__container {
display: flex;
transition: transform 0.3s ease;
min-height: 300px; /* Adjust based on your content */
}
.cell-carousel__slide {
flex: 0 0 100%;
padding: 1rem;
box-sizing: border-box;
}
.cell-card {
border: 1px solid #dbdbdb;
border-radius: 4px;
padding: 1rem;
height: 100%;
}
.cell-card__item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0;
border-bottom: 1px solid #dbdbdb;
}
.cell-card__item:last-child {
border-bottom: none;
}
.cell-card__label {
font-weight: bold;
margin-right: 1rem;
}
/* Navigation buttons */
.cell-carousel__nav {
display: flex;
justify-content: center;
margin-top: 1rem;
}
/* .cell-carousel__btn {
background: #3273dc;
color: white;
border: none;
padding: 0.5rem 1rem;
margin: 0 0.5rem;
border-radius: 4px;
cursor: pointer;
} */
.cell-carousel__indicators {
display: flex;
justify-content: center;
margin-top: 0.5rem;
}
.cell-carousel__dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #dbdbdb;
margin: 0 4px;
cursor: pointer;
}
.cell-carousel__dot--active {
background: #3273dc;
}
}