From ea02762fbd71e10282e1f6e8c5763515a016a220 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 21 May 2024 10:57:47 +0300 Subject: [PATCH] Refactored landing css --- assets/styles/layout/landing/_main.scss | 56 +++++++++++++------------ components/landing/BlockSection.vue | 10 ++--- components/landing/FeaturesSection.vue | 16 +++---- components/landing/FooterSection.vue | 40 +++++++++--------- components/landing/HeroSection.vue | 22 +++++----- components/landing/TemplateSection.vue | 2 +- doc/dataview/BasicDoc.vue | 8 ++-- doc/dataview/LayoutDoc.vue | 16 +++---- doc/dataview/PaginationDoc.vue | 8 ++-- doc/dataview/SortingDoc.vue | 8 ++-- doc/metergroup/TemplateDoc.vue | 8 ++-- doc/orderlist/TemplateDoc.vue | 16 +++---- doc/picklist/TemplateDoc.vue | 16 +++---- doc/theming/styled/ColorsDoc.vue | 2 +- doc/virtualscroller/BasicDoc.vue | 8 ++-- doc/virtualscroller/DelayDoc.vue | 24 +++++------ doc/virtualscroller/GridDoc.vue | 8 ++-- doc/virtualscroller/HorizontalDoc.vue | 8 ++-- doc/virtualscroller/LazyDoc.vue | 8 ++-- doc/virtualscroller/LoadingDoc.vue | 24 +++++------ pages/support/index.vue | 17 +++----- 21 files changed, 162 insertions(+), 163 deletions(-) diff --git a/assets/styles/layout/landing/_main.scss b/assets/styles/layout/landing/_main.scss index 7fb29f301..be28cb087 100644 --- a/assets/styles/layout/landing/_main.scss +++ b/assets/styles/layout/landing/_main.scss @@ -38,40 +38,25 @@ } } - @keyframes clippath { - 0%, - 100% { - clip-path: inset(0 0 98% 0); - } - - 25% { - clip-path: inset(0 98% 0 0); - } - 50% { - clip-path: inset(98% 0 0 0); - } - 75% { - clip-path: inset(0 0 0 98%); - } - } - .linkbox { - transition: background-color .2s, border-color .2s; + transition: background-color .2s, border-color .2s, outline-color .2s; display: inline-flex; align-items: center; color: var(--text-color); border: 1px solid var(--border-color); background-color: var(--card-background); border-radius: 10px; - cursor: pointer; + font-weight: 600; + padding: 1rem 1.5rem; + cursor: pointer; @include focus-visible(); &:hover { background: var(--hover-background); } - &.active { + &.linkbox-primary { background: var(--primary-color); color: var(--primary-contrast-color); @@ -79,6 +64,12 @@ background: var(--primary-hover-color); } } + + &.linkbox-icon { + width: 3rem; + height: 3rem; + justify-content: center; + } } .section-header { @@ -103,6 +94,7 @@ height: 1px; border-bottom: 0 none; overflow: hidden; + margin-top: 5rem; } &.layout-news-active { @@ -110,13 +102,6 @@ } } -.text-secondary { - color: var(--text-secondary-color); -} - -.hover\:surface-hover:hover { - background-color: var(--hover-background); -} .landing-footer-container { max-width: 1250px !important; @@ -176,4 +161,21 @@ 100% { transform: translateX(calc(-100% - 3rem)); } +} + +@keyframes clippath { + 0%, + 100% { + clip-path: inset(0 0 98% 0); + } + + 25% { + clip-path: inset(0 98% 0 0); + } + 50% { + clip-path: inset(98% 0 0 0); + } + 75% { + clip-path: inset(0 0 0 98%); + } } \ No newline at end of file diff --git a/components/landing/BlockSection.vue b/components/landing/BlockSection.vue index 7e54a12df..6afe715cb 100644 --- a/components/landing/BlockSection.vue +++ b/components/landing/BlockSection.vue @@ -1,14 +1,14 @@