- Aggiornate tutte le categorie ottimizzandole.
- Migrazione delle vecchie categ. con quelle nuove. - Create le Categorie e sottocategorie degli Eventi (a parte). - Aggiornato la card dell'Ospitalità
This commit is contained in:
@@ -1,80 +1,72 @@
|
||||
// ========================================
|
||||
// CMyChipList - SCSS Moderno con Gradienti
|
||||
// CMyChipList - RISO Design System
|
||||
// ========================================
|
||||
|
||||
$primary-color: #1976d2;
|
||||
$primary-light: #42a5f5;
|
||||
$secondary-color: #26a69a;
|
||||
$positive-color: #21ba45;
|
||||
$negative-color: #c10015;
|
||||
$info-color: #31ccec;
|
||||
$warning-color: #f2c037;
|
||||
.c-chiplist {
|
||||
margin-bottom: $s-sm;
|
||||
|
||||
@use 'sass:color';
|
||||
|
||||
$border-radius-sm: 8px;
|
||||
$border-radius: 10px;
|
||||
$transition-speed: 0.3s;
|
||||
$shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
|
||||
$shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
|
||||
$mobile-breakpoint: 768px;
|
||||
|
||||
// ========================================
|
||||
// CONTAINER
|
||||
// ========================================
|
||||
.q-mb-sm {
|
||||
// Padding e margini ottimizzati
|
||||
@media (max-width: $mobile-breakpoint) {
|
||||
margin-bottom: 10px !important;
|
||||
@media (max-width: $mobile) {
|
||||
margin-bottom: $s-xs;
|
||||
}
|
||||
}
|
||||
|
||||
// ========================================
|
||||
// LABEL/TITLE (con gradiente sottile)
|
||||
// LABEL
|
||||
// ========================================
|
||||
.text-subtitle2 {
|
||||
&.text-primary {
|
||||
background: linear-gradient(135deg, $primary-color, color.adjust($primary-color, $lightness: 15%));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
margin-bottom: 8px;
|
||||
.c-chiplist__label {
|
||||
font-size: 0.9125rem;
|
||||
font-weight: 600;
|
||||
color: $mainColor;
|
||||
margin-bottom: $s-xs;
|
||||
letter-spacing: 0.02em;
|
||||
background: linear-gradient(135deg, $mainColor, lighten($mainColor, 12%));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
|
||||
@media (max-width: $mobile-breakpoint) {
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
@media (max-width: $mobile) {
|
||||
font-size: 0.85rem;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
// ========================================
|
||||
// CHIPS CONTAINER
|
||||
// ========================================
|
||||
.q-gutter-sm {
|
||||
&.row.wrap {
|
||||
gap: 8px;
|
||||
.c-chiplist__chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
|
||||
@media (max-width: $mobile-breakpoint) {
|
||||
gap: 6px;
|
||||
}
|
||||
@media (max-width: $mobile) {
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
// ========================================
|
||||
// SINGLE CHIP (con gradienti bellissimi!)
|
||||
// SINGLE CHIP - RISO Style
|
||||
// ========================================
|
||||
.q-chip {
|
||||
.c-chip {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: all $transition-speed cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border-radius: $border-radius !important;
|
||||
border-radius: 20px !important;
|
||||
font-size: 0.9125rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.01em;
|
||||
padding: 4px 10px !important;
|
||||
height: auto !important;
|
||||
min-height: 26px;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
|
||||
|
||||
@media (max-width: $mobile) {
|
||||
font-size: 0.85rem;
|
||||
padding: 2px 4px !important;
|
||||
min-height: 24px;
|
||||
border-radius: 16px !important;
|
||||
}
|
||||
|
||||
// Effetto luce scorrevole
|
||||
// Gradiente di luce animato
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
@@ -82,171 +74,255 @@ $mobile-breakpoint: 768px;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
|
||||
background: linear-gradient(90deg,
|
||||
transparent,
|
||||
rgba(255, 255, 255, 0.25),
|
||||
transparent
|
||||
);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
|
||||
// Shadow con gradiente
|
||||
&.shadow-1 {
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
|
||||
// Testo con ombra per leggibilità
|
||||
&::v-deep(.q-chip__content) {
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
|
||||
white-space: nowrap;
|
||||
|
||||
@media (max-width: $mobile) {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
// Padding compatto
|
||||
&.q-px-sm {
|
||||
padding-left: 10px !important;
|
||||
padding-right: 10px !important;
|
||||
|
||||
@media (max-width: $mobile-breakpoint) {
|
||||
padding-left: 8px !important;
|
||||
padding-right: 8px !important;
|
||||
font-size: 0.8125rem !important;
|
||||
// Icona
|
||||
&::v-deep(.q-icon) {
|
||||
font-size: 1rem;
|
||||
margin-right: 4px;
|
||||
transition: transform 0.25s ease;
|
||||
|
||||
@media (max-width: $mobile) {
|
||||
font-size: 0.875rem;
|
||||
margin-right: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
// Hover effect
|
||||
&:hover {
|
||||
transform: translateY(-2px) scale(1.02);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
|
||||
transform: translateY(-1px) scale(1.02);
|
||||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.12);
|
||||
|
||||
&::before {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// Colori con gradienti
|
||||
&[class*='bg-primary'],
|
||||
&[class*='bg-blue'] {
|
||||
background: linear-gradient(135deg, $primary-color, color.adjust($primary-color, $lightness: 10%)) !important;
|
||||
box-shadow: 0 2px 8px rgba($primary-color, 0.3);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, color.adjust($primary-color, $lightness: -5%), $primary-color) !important;
|
||||
box-shadow: 0 4px 12px rgba($primary-color, 0.4);
|
||||
&::v-deep(.q-icon) {
|
||||
transform: scale(1.1) rotate(5deg);
|
||||
}
|
||||
}
|
||||
|
||||
&[class*='bg-secondary'],
|
||||
&[class*='bg-teal'] {
|
||||
background: linear-gradient(135deg, $secondary-color, color.adjust($secondary-color, $lightness: 10%)) !important;
|
||||
box-shadow: 0 2px 8px rgba($secondary-color, 0.3);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, color.adjust($secondary-color, $lightness: -5%), $secondary-color) !important;
|
||||
box-shadow: 0 4px 12px rgba($secondary-color, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&[class*='bg-positive'],
|
||||
&[class*='bg-green'] {
|
||||
background: linear-gradient(135deg, $positive-color, color.adjust($positive-color, $lightness: 10%)) !important;
|
||||
box-shadow: 0 2px 8px rgba($positive-color, 0.3);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, color.adjust($positive-color, $lightness: -5%), $positive-color) !important;
|
||||
box-shadow: 0 4px 12px rgba($positive-color, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&[class*='bg-negative'],
|
||||
&[class*='bg-red'] {
|
||||
background: linear-gradient(135deg, $negative-color, color.adjust($negative-color, $lightness: 10%)) !important;
|
||||
box-shadow: 0 2px 8px rgba($negative-color, 0.3);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, color.adjust($negative-color, $lightness: -5%), $negative-color) !important;
|
||||
box-shadow: 0 4px 12px rgba($negative-color, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&[class*='bg-warning'],
|
||||
&[class*='bg-orange'],
|
||||
&[class*='bg-amber'] {
|
||||
background: linear-gradient(135deg, $warning-color, color.adjust($warning-color, $lightness: 10%)) !important;
|
||||
box-shadow: 0 2px 8px rgba($warning-color, 0.3);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, color.adjust($warning-color, $lightness: -5%), $warning-color) !important;
|
||||
box-shadow: 0 4px 12px rgba($warning-color, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&[class*='bg-info'],
|
||||
&[class*='bg-cyan'] {
|
||||
background: linear-gradient(135deg, $info-color, color.adjust($info-color, $lightness: 10%)) !important;
|
||||
box-shadow: 0 2px 8px rgba($info-color, 0.3);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, color.adjust($info-color, $lightness: -5%), $info-color) !important;
|
||||
box-shadow: 0 4px 12px rgba($info-color, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&[class*='bg-purple'] {
|
||||
background: linear-gradient(135deg, #9c27b0, color.adjust(#9c27b0, $lightness: 10%)) !important;
|
||||
box-shadow: 0 2px 8px rgba(#9c27b0, 0.3);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, color.adjust(#9c27b0, $lightness: -5%), #9c27b0) !important;
|
||||
box-shadow: 0 4px 12px rgba(#9c27b0, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&[class*='bg-pink'] {
|
||||
background: linear-gradient(135deg, #e91e63, color.adjust(#e91e63, $lightness: 10%)) !important;
|
||||
box-shadow: 0 2px 8px rgba(#e91e63, 0.3);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, color.adjust(#e91e63, $lightness: -5%), #e91e63) !important;
|
||||
box-shadow: 0 4px 12px rgba(#e91e63, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&[class*='bg-grey'],
|
||||
&[class*='bg-gray'] {
|
||||
background: linear-gradient(135deg, #757575, color.adjust(#757575, $lightness: 10%)) !important;
|
||||
box-shadow: 0 2px 8px rgba(#757575, 0.3);
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, color.adjust(#757575, $lightness: -5%), #757575) !important;
|
||||
box-shadow: 0 4px 12px rgba(#757575, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
// Icon dentro il chip
|
||||
.q-icon {
|
||||
transition: transform $transition-speed ease;
|
||||
}
|
||||
|
||||
&:hover .q-icon {
|
||||
transform: scale(1.1) rotate(5deg);
|
||||
}
|
||||
|
||||
// Text color bianco con ombra sottile per leggibilità
|
||||
&[class*='text-white'] {
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
}
|
||||
|
||||
// ========================================
|
||||
// DENSE VARIANT
|
||||
// ========================================
|
||||
.q-chip--dense {
|
||||
padding: 3px 8px !important;
|
||||
font-size: 0.8125rem;
|
||||
|
||||
@media (max-width: $mobile-breakpoint) {
|
||||
padding: 2px 6px !important;
|
||||
// Dense variant
|
||||
&.q-chip--dense {
|
||||
padding: 3px 8px !important;
|
||||
min-height: 24px;
|
||||
font-size: 0.75rem;
|
||||
|
||||
@media (max-width: $mobile) {
|
||||
padding: 2px 6px !important;
|
||||
min-height: 22px;
|
||||
font-size: 0.6875rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ========================================
|
||||
// ANIMATION
|
||||
// SIZE VARIANTS
|
||||
// ========================================
|
||||
@keyframes chipAppear {
|
||||
|
||||
// Medium size
|
||||
.c-chip--md {
|
||||
font-size: 0.9375rem !important;
|
||||
padding: 6px 14px !important;
|
||||
min-height: 34px !important;
|
||||
border-radius: 24px !important;
|
||||
|
||||
&::v-deep(.q-chip__content) {
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
|
||||
&::v-deep(.q-icon) {
|
||||
font-size: 1.25rem !important;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
@media (max-width: $mobile) {
|
||||
font-size: 0.875rem !important;
|
||||
padding: 5px 12px !important;
|
||||
min-height: 32px !important;
|
||||
border-radius: 20px !important;
|
||||
|
||||
&::v-deep(.q-chip__content) {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
&::v-deep(.q-icon) {
|
||||
font-size: 1.125rem !important;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Large size
|
||||
.c-chip--lg {
|
||||
font-size: 1.0625rem !important;
|
||||
padding: 8px 18px !important;
|
||||
min-height: 42px !important;
|
||||
border-radius: 28px !important;
|
||||
font-weight: 600;
|
||||
|
||||
&::v-deep(.q-chip__content) {
|
||||
font-size: 1.0625rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&::v-deep(.q-icon) {
|
||||
font-size: 1.5rem !important;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
@media (max-width: $mobile) {
|
||||
font-size: 1rem !important;
|
||||
padding: 7px 16px !important;
|
||||
min-height: 38px !important;
|
||||
border-radius: 24px !important;
|
||||
|
||||
&::v-deep(.q-chip__content) {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
&::v-deep(.q-icon) {
|
||||
font-size: 1.375rem !important;
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ========================================
|
||||
// GRADIENTI PER COLORI - RISO Style
|
||||
// ========================================
|
||||
|
||||
// Blue/Primary
|
||||
.c-chip.bg-blue,
|
||||
.c-chip.bg-primary,
|
||||
.c-chip.bg-indigo,
|
||||
.c-chip.bg-light-blue {
|
||||
background: linear-gradient(135deg, #1976d2, #42a5f5) !important;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #1565c0, #1976d2) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Teal/Cyan
|
||||
.c-chip.bg-teal,
|
||||
.c-chip.bg-cyan {
|
||||
background: linear-gradient(135deg, #00897b, #26a69a) !important;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #00796b, #00897b) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Green
|
||||
.c-chip.bg-green,
|
||||
.c-chip.bg-light-green {
|
||||
background: linear-gradient(135deg, #388e3c, #66bb6a) !important;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #2e7d32, #388e3c) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Purple/Deep Purple
|
||||
.c-chip.bg-purple,
|
||||
.c-chip.bg-deep-purple {
|
||||
background: linear-gradient(135deg, #7b1fa2, #9c27b0) !important;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #6a1b9a, #7b1fa2) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Pink
|
||||
.c-chip.bg-pink {
|
||||
background: linear-gradient(135deg, #c2185b, #e91e63) !important;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #ad1457, #c2185b) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Orange/Amber
|
||||
.c-chip.bg-orange,
|
||||
.c-chip.bg-amber,
|
||||
.c-chip.bg-deep-orange {
|
||||
background: linear-gradient(135deg, #f57c00, #ff9800) !important;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #ef6c00, #f57c00) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Yellow/Lime
|
||||
.c-chip.bg-yellow,
|
||||
.c-chip.bg-lime {
|
||||
background: linear-gradient(135deg, #f9a825, #fdd835) !important;
|
||||
color: rgba(0, 0, 0, 0.87) !important;
|
||||
|
||||
&::v-deep(.q-chip__content) {
|
||||
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
|
||||
color: rgba(0, 0, 0, 0.87) !important;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #f57f17, #f9a825) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Red/Negative
|
||||
.c-chip.bg-red,
|
||||
.c-chip.bg-negative {
|
||||
background: linear-gradient(135deg, #c62828, #e53935) !important;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #b71c1c, #c62828) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Brown
|
||||
.c-chip.bg-brown {
|
||||
background: linear-gradient(135deg, #5d4037, #6d4c41) !important;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #4e342e, #5d4037) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// Grey/Blue Grey
|
||||
.c-chip.bg-grey,
|
||||
.c-chip.bg-gray,
|
||||
.c-chip.bg-blue-grey {
|
||||
background: linear-gradient(135deg, #546e7a, #78909c) !important;
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(135deg, #455a64, #546e7a) !important;
|
||||
}
|
||||
}
|
||||
|
||||
// ========================================
|
||||
// ANIMAZIONE INGRESSO
|
||||
// ========================================
|
||||
@keyframes chipFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.8) translateY(10px);
|
||||
transform: scale(0.92) translateY(4px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
@@ -254,29 +330,28 @@ $mobile-breakpoint: 768px;
|
||||
}
|
||||
}
|
||||
|
||||
.q-chip {
|
||||
animation: chipAppear 0.3s ease-out;
|
||||
animation-fill-mode: both;
|
||||
.c-chip {
|
||||
animation: chipFadeIn 0.25s ease-out backwards;
|
||||
|
||||
// Stagger animation per chip multipli
|
||||
@for $i from 1 through 20 {
|
||||
// Stagger per chip multipli
|
||||
@for $i from 1 through 25 {
|
||||
&:nth-child(#{$i}) {
|
||||
animation-delay: #{$i * 0.05}s;
|
||||
animation-delay: #{$i * 0.04}s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ========================================
|
||||
// GLASSMORPHISM VARIANT (opzionale)
|
||||
// RESPONSIVE TOUCH OPTIMIZATION
|
||||
// ========================================
|
||||
.q-chip.glass-effect {
|
||||
background: rgba(255, 255, 255, 0.2) !important;
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.3) !important;
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
|
||||
@media (max-width: $mobile) {
|
||||
.c-chip {
|
||||
// Touch target più grande su mobile
|
||||
min-height: 28px;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.96);
|
||||
transition-duration: 0.1s;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user