Files
no-copy-frontend/src/app/styles/pages-styles.scss
T

648 lines
10 KiB
SCSS
Raw Normal View History

2025-12-27 13:47:51 +07:00
@use './variable.scss' as v;
2025-11-26 14:01:35 +07:00
2025-11-26 17:18:20 +07:00
.chart-title {
font-size: 18px;
font-weight: 600;
display: flex;
align-items: center;
2025-12-27 13:47:51 +07:00
color: v.$text-p;
2025-11-26 17:18:20 +07:00
&::before {
content: '';
width: 6px;
height: 6px;
2025-12-27 13:47:51 +07:00
background: v.$p-color;
2025-11-26 17:18:20 +07:00
border-radius: 50%;
margin-right: 10px;
}
}
2025-11-26 14:01:35 +07:00
.protection-overview {
2025-12-27 13:47:51 +07:00
background: linear-gradient(135deg, v.$p-color 50%, v.$s-color 100%);
color: v.$white;
2025-11-26 17:18:20 +07:00
border-radius: 20px;
padding: 25px;
margin-bottom: 30px;
2025-12-11 18:28:35 +07:00
position: relative;
2025-11-26 17:18:20 +07:00
2025-11-26 14:01:35 +07:00
h3 {
margin: 0 0 10px 0;
font-size: 20px;
}
p {
opacity: 0.9;
font-size: 14px;
2025-12-11 18:28:35 +07:00
margin-bottom: 20px;
}
.pie-char-text {
2025-12-27 13:47:51 +07:00
fill: v.$white;
2025-12-11 18:28:35 +07:00
font-size: 20px;
text-anchor: middle;
dominant-baseline: middle;
2025-11-26 14:01:35 +07:00
}
2025-11-26 17:18:20 +07:00
.protection-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
2025-12-11 18:28:35 +07:00
grid-template-areas: "aaa bbb ccc";
transition: all 0.3s;
height: 124px;
&.opened {
grid-template-areas: "aaa ccc ccc" "bbb ccc ccc";
height: 254px;
}
}
.total-files {
grid-area: aaa;
}
.total-checks {
grid-area: bbb;
}
.total-usage {
grid-area: ccc;
2025-11-26 17:18:20 +07:00
}
.protection-stat {
padding: 15px;
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
2025-12-11 18:28:35 +07:00
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&.total-checks,
&.total-files {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 0 10px;
.protection-stat-value {
justify-self: end;
padding-right: 10px;
padding-left: 10px;
}
.protection-stat-label {
text-align: start;
}
}
2025-12-29 16:08:38 +07:00
&.total-files.add-content {
display: flex;
justify-content: center;
.protection-stat-value {
margin-bottom: 0;
}
}
2025-12-11 18:28:35 +07:00
&-row {
display: flex;
align-items: center;
justify-content: center;
2025-12-11 18:28:35 +07:00
gap: 10px;
width: 100%;
}
&-value {
font-size: 28px;
font-weight: 700;
margin-bottom: 5px;
2025-12-18 17:21:18 +07:00
&.btn {
user-select: none;
2025-12-29 16:08:38 +07:00
transition: all 0.3s ease-in;
padding: 5px;
margin-top: 10px;
&:hover {
background: v.$shadow-1;
}
2025-12-18 17:21:18 +07:00
}
2025-12-11 18:28:35 +07:00
}
&-label {
font-size: 14px;
opacity: 0.9;
text-align: center;
2025-12-11 18:28:35 +07:00
}
2025-12-17 12:50:01 +07:00
&-total-info {
position: absolute;
top: 10;
left: 10;
background-color: #1f293718;
padding: 10px;
border-radius: 10;
font-size: 15px;
}
.stacked-bar-chart {
border-radius: 10;
width: 100%;
padding: 0 20px;
display: flex;
justify-content: center;
}
2025-12-18 17:21:18 +07:00
&-drop-down-list {
position: absolute;
left: 80%;
top: 50%;
max-height: 0;
2025-12-27 13:47:51 +07:00
color: v.$white;
2025-12-18 17:21:18 +07:00
font-size: 16px;
border-radius: 20px;
padding: 0;
border: none;
width: 200px;
z-index: 1;
font-weight: 500;
background: #ffffff00;
overflow: hidden;
transition: all 0.5s ease;
transform: translateY(-50%);
&.opened {
max-height: 500px;
padding: 20px;
box-shadow: 0 4px 20px #ffffff34;
background: #7165b6;
}
a:hover {
font-size: 17px;
transition: all 0.3s ease;
}
}
&:has(.stacked-bar-chart) {
height: 100%;
padding-left: 100px;
}
2025-11-26 17:18:20 +07:00
}
2025-12-11 18:28:35 +07:00
&-switch {
position: absolute;
right: 10px;
top: 10px;
2025-11-26 17:18:20 +07:00
}
&:has(.stacked-bar-chart) {
padding: 0;
}
2025-12-11 18:28:35 +07:00
}
2025-11-26 17:18:20 +07:00
2025-12-11 18:28:35 +07:00
.stats-wrapper {
h3 {
font-size: 20px;
margin-bottom: 10px;
2025-11-26 17:18:20 +07:00
}
}
.stats-grid {
display: grid;
2025-12-11 18:28:35 +07:00
grid-template-columns: repeat(5, 1fr);
2025-12-30 14:33:39 +07:00
border-bottom: 1px solid v.$b-color-1;
2025-12-18 17:21:18 +07:00
align-items: center;
2025-11-26 17:18:20 +07:00
2025-12-11 18:28:35 +07:00
.stats-item {
2025-12-30 14:33:39 +07:00
border: 1px solid v.$b-color-1;
2025-12-11 18:28:35 +07:00
border-right: none;
2025-12-12 11:00:23 +07:00
border-left: none;
2025-12-11 18:28:35 +07:00
border-bottom: none;
display: flex;
justify-content: center;
align-items: center;
height: 40px;
background: #ffffff1a;
2025-11-26 17:18:20 +07:00
2025-12-11 18:28:35 +07:00
&.stats-header {
2025-12-12 11:00:23 +07:00
background: #f9fafb;
2025-12-11 18:28:35 +07:00
border-left: none;
2025-12-15 11:24:07 +07:00
font-size: 16px;
font-weight: 500;
2025-11-26 17:18:20 +07:00
}
2025-12-11 18:28:35 +07:00
&.first-column {
2025-12-15 11:24:07 +07:00
font-size: 16px;
2025-12-12 11:00:23 +07:00
justify-content: start;
padding-left: 20px;
2025-12-15 11:24:07 +07:00
font-weight: 500;
2025-12-11 18:28:35 +07:00
.icon {
2025-12-12 11:00:23 +07:00
margin-right: 10px;
2025-12-11 18:28:35 +07:00
}
2025-12-30 14:33:39 +07:00
&.images {
color: v.$color-image;
}
&.videos {
color: v.$color-video;
}
&.audio {
color: v.$color-audio;
}
2025-11-26 17:18:20 +07:00
}
2025-12-18 17:21:18 +07:00
&.second-row {
border-top: none;
2025-12-11 18:28:35 +07:00
}
2025-11-26 17:18:20 +07:00
2025-12-11 18:28:35 +07:00
&.left-top-corner {
border-top-left-radius: 10px;
2025-12-30 14:33:39 +07:00
border-left: 1px solid v.$b-color-1;
2025-12-12 11:00:23 +07:00
justify-content: start;
padding-left: 20px;
2025-12-11 18:28:35 +07:00
}
2025-11-26 17:18:20 +07:00
2025-12-11 18:28:35 +07:00
&.right-top-corner {
border-top-right-radius: 10px;
}
&.left-bottom-corner {
border-bottom-left-radius: 10px;
}
&.right-bottom-corner {
border-bottom-right-radius: 10px;
}
2025-11-26 17:18:20 +07:00
}
}
.block-wrapper {
2025-12-27 13:47:51 +07:00
background: v.$white;
2025-11-26 17:18:20 +07:00
border-radius: 20px;
padding: 25px;
2025-12-27 13:47:51 +07:00
box-shadow: 0 4px 20px v.$shadow-1;
border: 1px solid v.$b-color-1;
2025-11-26 18:21:44 +07:00
margin-bottom: 30px;
2025-11-26 17:18:20 +07:00
}
2025-12-17 12:50:01 +07:00
.upload-section {
2025-12-27 13:47:51 +07:00
background: v.$white;
2025-12-17 12:50:01 +07:00
border-radius: 20px;
padding: 30px;
margin-bottom: 30px;
2025-12-27 13:47:51 +07:00
box-shadow: 0 4px 20px v.$shadow-1;
2025-12-17 12:50:01 +07:00
h3 {
margin-bottom: 20px;
2025-12-27 13:47:51 +07:00
color: v.$text-p;
2025-12-17 12:50:01 +07:00
font-size: 20px;
}
.drag-drop-zone {
2025-12-27 13:47:51 +07:00
border: 3px dashed v.$p-color;
2025-12-17 12:50:01 +07:00
border-radius: 15px;
padding: 40px 20px;
text-align: center;
background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
margin-bottom: 20px;
transition: all 0.3s ease;
.icon {
width: 70px;
height: 70px;
margin: 0 auto;
2025-12-27 13:47:51 +07:00
color: v.$p-color;
2025-12-17 12:50:01 +07:00
}
h4 {
2025-12-27 13:47:51 +07:00
color: v.$p-color;
2025-12-17 12:50:01 +07:00
margin-bottom: 5px;
font-size: 22px;
}
.description {
2025-12-27 13:47:51 +07:00
color: v.$text-s;
2025-12-17 12:50:01 +07:00
margin-bottom: 5px;
text-align: start;
}
.btn-primary {
2025-12-27 13:47:51 +07:00
background: v.$p-color;
2025-12-17 12:50:01 +07:00
margin-bottom: 40px;
}
}
.selected-file {
border-radius: 15px;
2025-12-27 13:47:51 +07:00
background: v.$white;
2025-12-17 12:50:01 +07:00
padding: 10px;
2025-12-25 17:24:59 +07:00
border: 2px solid transparent;
transition: all 0.3s ease-in;
&.done {
border-color: #00a63e;
}
2025-12-17 12:50:01 +07:00
&-file-info {
text-align: left;
2025-12-24 15:41:06 +07:00
display: flex;
justify-content: space-between;
2025-12-17 12:50:01 +07:00
}
.uploaded-image {
border-radius: 0.25rem;
max-height: calc(4px * 40);
margin-inline: auto;
margin-bottom: 20px;
border: 1px solid #d1d5db;
}
.btn-confirm {
2025-12-27 13:47:51 +07:00
background: linear-gradient(45deg, v.$p-color 50%, v.$s-color 100%);
color: v.$white;
2025-12-17 12:50:01 +07:00
border: none;
padding: 5px 15px;
border-radius: 12px;
cursor: pointer;
font-weight: 600;
font-size: 16px;
transition: 0.3s;
min-width: 160px;
transform: translateY(0px);
box-shadow: none;
2025-12-24 21:36:59 +07:00
&.disabled {
opacity: 0.5;
&:hover {
transform: none;
}
}
2025-12-17 12:50:01 +07:00
}
.btn-cancel {
2025-12-27 13:47:51 +07:00
background: v.$white;
color: v.$p-color;
border: 2px solid v.$p-color;
2025-12-17 12:50:01 +07:00
padding: 5px 15px;
border-radius: 12px;
cursor: pointer;
font-weight: 600;
font-size: 16px;
transition: 0.3s;
min-width: 120px;
}
.btn:hover {
transform: translateY(-2px);
2025-12-27 13:47:51 +07:00
box-shadow: 0 8px 25px v.$shadow-1;
2025-12-17 12:50:01 +07:00
}
}
}
2025-12-18 17:21:18 +07:00
.page-row {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
}
.tanstak-table-wrapper {
padding: 1.5rem;
margin: 0 auto;
.btn-modal {
transition: all 0.3ms ease-in-out;
border-radius: 10px;
padding: 5px 20px;
font-weight: 500;
}
:where(.divide-gray-200 > tr:last-child) {
border-bottom: 1px solid var(--color-gray-200);
}
.tanstak-table-filtres {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding-bottom: 1rem;
padding-top: 0;
padding-left: 0;
padding-right: 0;
@media (min-width: 768px) {
flex-direction: row;
align-items: center;
}
.table-filtres-wrapper {
display: flex;
flex-direction: column;
gap: 1rem;
width: 100%;
@media (min-width: 768px) {
flex-direction: row;
width: auto;
}
.table-filtres-item {
display: flex;
flex-direction: column;
width: 12.5rem;
}
.table-filtres-label {
font-size: 0.875rem;
font-weight: 500;
margin-bottom: 0.25rem;
}
}
}
.tanstak-table-pagination {
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: space-between;
margin-top: 1.5rem;
gap: 1rem;
@media (min-width: 768px) {
flex-direction: row;
}
.pagination-info {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
&-pages {
color: v.$text-p;
}
&-files {
color: v.$text-s;
}
}
.pagination-controls {
display: flex;
align-items: center;
gap: 0.5rem;
.arrow {
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
border: 1px solid;
border-radius: 0.375rem;
&:hover {
background-color: v.$bg-light;
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
&-pages {
display: flex;
align-items: center;
gap: 0.25rem;
button {
border: 1px solid v.$p-color;
padding-left: 0.75rem;
padding-right: 0.75rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
border-radius: 0.375rem;
&.current {
background-color: v.$p-color;
color: v.$white;
}
&.other {
&:hover {
background-color: v.$bg-light;
}
}
}
}
}
}
.tanstak-table-block {
width: 100%;
overflow-x: auto;
border-radius: 0.5rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.tanstak-table {
width: 100%;
table-layout: fixed;
>*+* {
border-top: 1px solid v.$b-color-2;
}
> :not(:last-child) {
border-bottom: 1px solid v.$b-color-2;
}
@media (min-width: 768px) {
table-layout: auto;
}
&-head {
background-color: v.$b-color-1;
th {
padding-left: 1.5rem;
padding-right: 1.5rem;
padding-top: 0.75rem;
padding-bottom: 0.75rem;
text-align: left;
font-size: 0.75rem;
font-weight: 500;
color: v.$text-p;
text-transform: uppercase;
letter-spacing: 0.05em;
white-space: nowrap;
}
.column {
display: flex;
align-items: center;
justify-content: center;
&.start {
justify-content: start;
}
.sort-button {
margin-left: 0.5rem;
padding: 0.25rem;
border-radius: 0.25rem;
&:hover {
background-color: #e5e7eb;
}
}
}
}
&-body {
background-color: v.$white;
>*+* {
border-top: 1px solid v.$b-color-2;
}
tr {
transition: background-color 0.2s ease-in-out;
&:hover {
background-color: v.$bg-light;
}
}
td {
padding-left: 1.5rem;
padding-right: 1.5rem;
padding-top: 1rem;
padding-bottom: 1rem;
white-space: nowrap;
}
}
}
}
@media (max-width: 1300px) {
.tanstak-table {
max-width: 800px;
margin: 0 auto;
}
}
@media (max-width: 1200px) {
.tanstak-table {
max-width: 500px;
margin: 0 auto;
}
2025-12-17 12:50:01 +07:00
}