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

825 lines
13 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 {
2026-01-05 15:07:10 +07:00
--text-color: v.$text-p;
2026-01-05 16:15:07 +07:00
/* background: linear-gradient(135deg, v.$p-color 50%, v.$s-color 100%);
2026-01-05 15:07:10 +07:00
color: v.$white; */
color: var(--text-color);
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;
2026-01-05 15:07:10 +07:00
background: v.$white;
box-shadow: 0 4px 20px v.$shadow-1;
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 {
2026-01-05 15:07:10 +07:00
fill: var(--text-color);
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";
2026-01-07 19:38:21 +07:00
height: 270px;
2025-12-11 18:28:35 +07:00
}
}
.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;
2026-01-05 16:15:07 +07:00
border: 1px solid v.$b-color-2;
2025-11-26 17:18:20 +07:00
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 {
2026-01-09 16:12:55 +07:00
display: flex;
justify-content: center;
gap: 0 10px;
.protection-stat-value {
padding-right: 10px;
}
.protection-stat-label {
text-align: start;
2026-01-08 17:21:09 +07:00
&::first-letter {
text-transform: uppercase;
}
}
}
2026-01-09 16:12:55 +07:00
&.total-files {
flex-direction: row;
}
&.total-checks {
flex-direction: column;
div {
width: 110px;
}
}
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;
2026-01-05 16:15:07 +07:00
color: v.$p-color;
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 {
2026-01-07 20:29:27 +07:00
padding: 0px 0 10px;
2025-12-17 12:50:01 +07:00
border-radius: 10;
font-size: 15px;
display: flex;
justify-content: center;
2026-01-05 16:15:07 +07:00
gap: 20px;
2025-12-17 12:50:01 +07:00
}
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;
}
}
2026-01-05 16:15:07 +07:00
}
.stacked-bar-chart-wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
.stacked-bar-chart {
border-radius: 10;
width: 100%;
padding: 0 20px;
display: flex;
justify-content: center;
2026-01-07 19:38:21 +07:00
padding-top: 20px;
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 {
2026-01-05 15:07:10 +07:00
background-color: v.$bg-light;
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;
2026-01-09 16:12:55 +07:00
border-left: 1px solid v.$b-color-1;
;
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
}
2026-01-07 19:38:21 +07:00
&.last-column {
2026-01-09 16:12:55 +07:00
border-right: 1px solid v.$b-color-1;
;
2026-01-07 19:38:21 +07:00
}
&.last-row {
2026-01-09 16:12:55 +07:00
border-bottom: 1px solid v.$b-color-1;
;
2026-01-07 19:38:21 +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
}
}
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 {
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;
2026-01-04 17:43:58 +07:00
/* table-layout: auto; */
2026-01-04 13:27:59 +07:00
@media (max-width: 1200px) {
width: 1200px;
}
>*+* {
border-top: 1px solid v.$b-color-2;
}
> :not(:last-child) {
border-bottom: 1px solid v.$b-color-2;
}
&-head {
2026-01-05 15:07:10 +07:00
background-color: v.$bg-light;
th {
2026-01-04 17:43:58 +07:00
padding-left: 1rem;
padding-right: 1rem;
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;
2026-01-05 15:07:10 +07:00
/* background-color: v.$b-color-1; */
}
}
td {
2026-01-04 17:43:58 +07:00
padding-left: 1rem;
padding-right: 1rem;
padding-top: 1rem;
padding-bottom: 1rem;
white-space: nowrap;
}
2026-01-04 13:27:59 +07:00
.actions {
display: flex;
justify-content: center;
2026-01-04 17:08:28 +07:00
gap: 5px;
2026-01-04 13:27:59 +07:00
flex-wrap: wrap;
2026-01-04 17:08:28 +07:00
&-group {
display: flex;
gap: 5px;
}
2026-01-04 13:27:59 +07:00
button {
padding: 4px 12px;
font-size: 14px;
line-height: 20px;
border-radius: 4px;
color: v.$white;
.icon {}
@media (max-width: 1200px) {
padding: 4px;
}
}
}
}
}
}
2026-01-04 17:08:28 +07:00
.file-stats-container {
padding: 1rem;
@media (min-width: 640px) {
padding: 1.5rem;
}
}
2026-01-04 17:08:28 +07:00
.file-stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
grid-auto-rows: 1fr 1fr;
gap: 1rem;
@media (min-width: 640px) {
grid-template-columns: repeat(1, 1fr);
gap: 1.5rem;
}
2026-01-04 17:08:28 +07:00
@media (min-width: 1280px) {
grid-template-columns: repeat(2, 1fr);
}
}
.file-stat-card {
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 1rem;
border: 1px solid v.$b-color-2;
background-color: v.$white;
padding: 1rem;
@media (min-width: 1280px) {
padding-right: 1.25rem;
}
}
.file-stat-content {
display: flex;
align-items: center;
gap: 1rem;
}
.file-stat-icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
width: 52px;
height: 52px;
border-radius: 0.75rem;
&.image-icon {
color: v.$color-image;
}
&.video-icon {
color: v.$color-video;
}
&.audio-icon {
color: v.$color-audio;
}
&.document-icon {
color: v.$color-document;
}
}
// Icon SVG
.file-stat-icon {
width: 24px;
height: 24px;
}
// Text Info
.file-stat-info {
display: flex;
flex-direction: column;
}
.file-stat-title {
font-size: 0.875rem;
font-weight: 500;
color: v.$text-p;
margin-bottom: 0.25rem;
line-height: 1.25;
}
.file-stat-usage {
font-size: 0.875rem;
color: v.$text-s;
display: block;
line-height: 1.25;
}
// Details (Right Side)
.file-stat-details {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.file-stat-count {
font-size: 0.875rem;
color: v.$text-s;
display: block;
margin-bottom: 0.25rem;
text-align: right;
line-height: 1.25;
}
.file-stat-size {
font-size: 0.875rem;
color: v.$text-s;
display: block;
text-align: right;
line-height: 1.25;
}
@media (max-width: 639px) {
.file-stat-card {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.file-stat-details {
align-items: flex-start;
width: 100%;
padding-left: 68px;
}
.file-stat-count,
.file-stat-size {
text-align: left;
}
}