Productos view

This commit is contained in:
2024-09-22 01:31:21 -03:00
parent 39379b67c3
commit 9dff07dc0a
13 changed files with 1602 additions and 103 deletions

662
src/styles/digitalpower.css Normal file
View File

@@ -0,0 +1,662 @@
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
box-sizing: border-box;
font-family: "Poppins", sans-serif;
/* Esto afectará a cualquier scrollbar en tu página web */
::-webkit-scrollbar {
width: 3px;
height: 5px;
}
/* Track */
::-webkit-scrollbar-track {
background: var(--gray-light);
}
/* Handle */
::-webkit-scrollbar-thumb {
background: var(--primary);
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: var(--secondary);
}
}
:root {
--gray: rgba(0, 0, 0, 0.3);
--gray-light: rgba(0, 0, 0, 0.1);
--gray-very-light: rgba(0, 0, 0, 0.08);
--primary-blue: #3a7ca5;
--primary: dodgerblue;
--primary-active-item: #efefef;
--secondary: #0887a1;
--red: #d14c4c;
--back-color: white;
--text-color: rgba(62, 62, 62, 0.7);
--sidebar-color: dodgerblue;
--sidebar-color-hover: white;
--input-bg: white;
--input-button: #efefef;
--input-bg-hover: #dbdbdb;
--shadow: 0px 0px 5px 0px var(--gray);
--admin-title-height: 67px;
--duration: 0.3s;
--header-height: 50px;
}
body {
margin: 0;
overflow-x: hidden;
background: var(--back-color);
}
#app-layout {
max-width: 100%;
}
#notification-container {
position: fixed;
top: calc(var(--header-height) + 1.5em);
right: 0;
margin-right: 1em;
z-index: 1000;
}
h1 {
font-weight: bold;
font-size: 2em;
}
h1, h2, h3, h4, h5, p, b {
width: fit-content;
}
pre {
background: lightgray;
}
.page-enter-active,
.page-leave-active {
transition: all 0.2s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
}
.custom-modal-html {
width: 80vw;
height: fit-content;
max-height: 100vh;
max-width: 100vh;
position: fixed;
top: 50%;
left: 50%;
z-index: 200000;
color: var(--text-color);
background: var(--back-color);
overflow-y: auto;
transform: translate(-50%, -50%);
.title {
padding: 0.5em;
border-bottom: 1px solid var(--gray);
h5,
h1 {
text-align: center;
margin: 0;
}
}
.content {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
padding: 2em;
p {
margin-bottom: 2em;
}
.actions {
gap: 1em;
}
}
}
a {
color: dodgerblue;
text-decoration: none;
cursor: pointer;
}
p {
font-size: 1em;
}
.active-item {
background: var(--secondary);
color: var(--sidebar-color-hover) !important;
.icon {
fill: var(--sidebar-color-hover) !important;
}
}
.notification {
padding: 1em;
background: var(--primary);
color: white;
margin: 1em 0;
min-width: 200px;
pointer-events: none;
user-select: none;
z-index: 1000;
}
.notification-enter {
animation-name: notificationAnimationEnter;
animation-duration: 0.25s;
}
.notification-exit {
animation-name: notificationAnimationExit;
animation-duration: 0.25s;
}
.ck-editor {
display: block;
width: 100% !important;
}
.ck {
color: var(--text-color) !important;
background: var(--input-bg) !important;
border: none !important;
}
.red {
background: var(--red) !important;
}
[limited-text] {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
text-wrap: nowrap;
}
[flex] {
display: flex !important;
}
[flex-wrap] {
flex-wrap: wrap;
}
[nopointer] {
pointer-events: none;
}
[subitem] {
padding-left: 1em;
}
[groupitem] {
border-bottom: 1px solid var(--gray);
}
[grouplabel] {
background: var(--gray-light);
color: white;
}
[menuitem] {
border-bottom: 1px solid var(--gray);
}
[menuitem],
[subitem] {
transition: 0.2s;
&:hover {
background: var(--secondary);
color: white;
}
}
[shadow] {
box-shadow: var(--shadow);
}
[borderbottom] {
border-bottom: 1px solid var(--gray);
}
[bordered] {
border: 1px solid var(--gray);
}
[radius-border] {
border-radius: 5px;
}
[bound] {
background: var(--gray-light);
background-image: linear-gradient(
to right,
transparent 20%,
var(--gray-very-light) 60%
);
background-size: 200% 100%;
transition: background-position 0.2s ease-out;
animation: boundAnimation 2s ease infinite alternate;
}
[custominput] {
border: 1px solid var(--gray-light);
border-radius: 5px;
&:focus {
outline: none;
border: 1px solid var(--gray);
box-shadow: 0px 0px 5px 0px var(--gray);
}
}
[customselect] {
width: 100%;
select {
padding: 0.6em 1em;
width: 100%;
appearance: none;
background: white;
}
}
.select-wrapper {
position: relative;
&::after {
content: "â–¼";
font-size: 1rem;
top: 50%;
right: 1em;
position: absolute;
color: var(--gray);
transform: translateY(-50%);
z-index: 100000;
}
}
.custom-button-html {
padding: 0.6em 1.5em;
border-radius: 5px;
border: none;
cursor: pointer;
font-size: 1em;
display: block;
width: fit-content;
transition: 0.2s;
color: white;
background: var(--primary);
margin-bottom: 0.5em;
&:hover {
filter: brightness(0.8);
}
&:focus {
outline: none;
}
}
[flex-center] {
display: flex !important;
align-items: center;
justify-content: center;
}
[flex-start] {
display: flex !important;
align-items: start;
justify-content: start;
}
[flex-column] {
flex-direction: column;
}
[block-center] {
display: block;
margin: auto;
width: fit-content;
}
[overlay] {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 15;
background: var(--gray);
}
[inside-verlay] {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: none;
transition: var(--duration);
z-index: 15;
background: rgba(0, 0, 0, 0.4);
}
[fade] {
animation-name: fadeAnim;
animation-duration: 0.2s;
}
[delayedfade] {
animation: fadeAnim 0.2s forwards;
}
[absolute-centered] {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
[list] {
list-style: none;
margin: 0;
padding: 0;
}
[gapped] {
gap: 1em;
}
[noselect] {
user-select: none;
}
[underline] {
/*
border-bottom: 1px solid var(--primary);
*/
padding-bottom: 10px;
margin-bottom: 1em;
position: relative;
&::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background: var(--primary);
animation-name: underlineAnim;
animation-duration: var(--duration);
}
}
[nowrap] {
text-wrap: nowrap;
}
[pointer] {
pointer-events: all;
}
[select] {
user-select: all;
}
[slide] {
animation: slide;
animation-duration: var(--duration);
}
[slideRight] {
animation: slideRight;
animation-duration: var(--duration);
}
[slideUp] {
animation: slideUp;
animation-duration: var(--duration);
}
[slideDown] {
animation: slideDown;
animation-duration: var(--duration);
}
[fixed] {
position: fixed;
top: 0;
left: 0;
z-index: 100;
height: 100%;
}
.loader {
width: 48px;
height: 48px;
border-radius: 50%;
display: inline-block;
position: relative;
border: 3px solid;
border-color: #fff #fff transparent transparent;
box-sizing: border-box;
animation: rotation 1s linear infinite;
}
.loader::after,
.loader::before {
content: "";
box-sizing: border-box;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
border: 3px solid;
border-color: transparent transparent var(--primary-blue) var(--primary-blue);
width: 40px;
height: 40px;
border-radius: 50%;
box-sizing: border-box;
animation: rotationBack 0.5s linear infinite;
transform-origin: center center;
}
.loader::before {
width: 32px;
height: 32px;
border-color: #fff #fff transparent transparent;
animation: rotation 1.5s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes rotationBack {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(-360deg);
}
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes prixClipFix {
0% {
clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
}
50% {
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
}
75%,
100% {
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
}
}
@keyframes boundAnimation {
0% {
background-position: 0 0;
}
100% {
background-position: 100% 0;
}
}
@keyframes notificationAnimationEnter {
0% {
transform: translateX(150%);
}
100% {
transform: translateX(0%);
}
}
@keyframes notificationAnimationExit {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(150%);
}
}
@keyframes fadeAnim {
0% {
opacity: 0%;
}
100% {
opacity: 100%;
}
}
@keyframes underlineAnim {
0% {
width: 0%;
}
100% {
width: 100%;
}
}
@keyframes slide {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(0%);
}
}
@keyframes slideRight {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(0%);
}
}
@keyframes slideUp {
0% {
transform: translateY(100%);
}
100% {
transform: translateY(0%);
}
}
@keyframes slideDown {
0% {
transform: translateY(-100%);
}
100% {
transform: translateY(0%);
}
}
@media screen and (max-width: 1000px) {
.dp-container {
h1 {
text-align: center;
font-size: 1.5em;
}
}
.custom-modal-html {
height: 60vh;
.actions {
flex-direction: column;
gap: 0.5em !important;
}
}
}