diff --git a/app.vue b/app.vue index 720b16f9dd..d1525c4c72 100644 --- a/app.vue +++ b/app.vue @@ -1,5 +1,5 @@ @@ -12,23 +12,6 @@ export default { themeChangeListener: null, newsActivate: null, newsService: null, - data() { - return { - layout: 'custom' - }; - }, - watch: { - $route: { - immediate: true, - handler(to) { - if (to.name === 'index') { - this.layout = 'custom'; - } else { - this.layout = 'default'; - } - } - } - }, mounted() { this.newsActivate = () => { this.$appState.announcement = News; diff --git a/assets/styles/layout/_code.scss b/assets/styles/layout/_code.scss index 15278ca49b..b191fc868d 100644 --- a/assets/styles/layout/_code.scss +++ b/assets/styles/layout/_code.scss @@ -1,411 +1,177 @@ code[class*="language-"], pre[class*="language-"] { - color: black; background: none; font-family: ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,Liberation Mono,monospace; - font-size: 1em; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; word-wrap: normal; line-height: 1.5; - -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; - -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } - /* Code blocks */ -pre[class*="language-"] { - position: relative; - margin: .5em 0; - overflow: visible; - padding: 0; -} - -pre[class*="language-"] > code { - position: relative; - border-left: 10px solid #358ccb; - box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf; - background-color: #fdfdfd; - background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%); - background-size: 3em 3em; - background-origin: content-box; - background-attachment: local; +div.code-toolbar > .toolbar { + display: none; } -code[class*="language-"] { - max-height: inherit; - height: inherit; - padding: 0 1em; - display: block; - overflow: auto; -} -/* Margin bottom to accommodate shadow */ -:not(pre) > code[class*="language-"], pre[class*="language-"] { - background-color: #fdfdfd; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - margin-bottom: 1em; -} - -/* Inline code */ -:not(pre) > code[class*="language-"] { position: relative; - padding: .2em; - border-radius: 0.3em; - color: #c92c2c; - border: 1px solid rgba(0, 0, 0, 0.1); - display: inline; - white-space: normal; -} - -pre[class*="language-"]:before, -pre[class*="language-"]:after { - content: ''; - display: block; - position: absolute; - bottom: 0.75em; - left: 0.18em; - width: 40%; - height: 20%; - max-height: 13em; - box-shadow: 0px 13px 8px #979797; - -webkit-transform: rotate(-2deg); - -moz-transform: rotate(-2deg); - -ms-transform: rotate(-2deg); - -o-transform: rotate(-2deg); - transform: rotate(-2deg); -} - -pre[class*="language-"]:after { - right: 0.75em; - left: auto; - -webkit-transform: rotate(2deg); - -moz-transform: rotate(2deg); - -ms-transform: rotate(2deg); - -o-transform: rotate(2deg); - transform: rotate(2deg); -} - -.token.comment, -.token.block-comment, -.token.prolog, -.token.doctype, -.token.cdata { - color: #7D8B99; -} - -.token.punctuation { - color: #5F6364; -} - -.token.property, -.token.tag, -.token.boolean, -.token.number, -.token.function-name, -.token.constant, -.token.symbol, -.token.deleted { - color: #c92c2c; -} - -.token.selector, -.token.attr-name, -.token.string, -.token.char, -.token.function, -.token.builtin, -.token.inserted { - color: #2f9c0a; -} - -.token.operator, -.token.entity, -.token.url, -.token.variable { - color: #a67f59; - background: rgba(255, 255, 255, 0.5); -} - -.token.atrule, -.token.attr-value, -.token.keyword, -.token.class-name { - color: #1990b8; -} - -.token.regex, -.token.important { - color: #e90; -} - -.language-css .token.string, -.style .token.string { - color: #a67f59; - background: rgba(255, 255, 255, 0.5); -} - -.token.important { - font-weight: normal; -} - -.token.bold { - font-weight: bold; -} -.token.italic { - font-style: italic; -} - -.token.entity { - cursor: help; -} - -.token.namespace { - opacity: .7; -} + background: transparent; + margin: 0; + overflow: visible; + padding: 0; -@media screen and (max-width: 767px) { - pre[class*="language-"]:before, - pre[class*="language-"]:after { - bottom: 14px; - box-shadow: none; + &:before, &:after { + display: none !important; } -} - -/* Plugin styles: Line Numbers */ -pre[class*="language-"].line-numbers.line-numbers { - padding-left: 0; -} + code { + border-left: 1rem solid transparent; + box-shadow: none; + margin: 0; + font-size: 14px; + border-radius: 10px; + color: #ffffff; + max-height: inherit; + height: inherit; + padding: 0 1rem; + display: block; + overflow: auto; + + .token.comment, + .token.block-comment, + .token.prolog, + .token.doctype, + .token.cdata { + color: #bbf7d0; + } -pre[class*="language-"].line-numbers.line-numbers code { - padding-left: 3.8em; -} + .token.punctuation { + color: #bfdbfe; + } -pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows { - left: 0; -} + .token.property, + .token.tag, + .token.boolean, + .token.number, + .token.function-name, + .token.constant, + .token.symbol, + .token.deleted { + color: #93c5fd; + } -/* Plugin styles: Line Highlight */ -pre[class*="language-"][data-line] { - padding-top: 0; - padding-bottom: 0; - padding-left: 0; -} -pre[data-line] code { - position: relative; - padding-left: 4em; -} -pre .line-highlight { - margin-top: 0; -} + .token.selector, + .token.attr-name, + .token.string, + .token.char, + .token.function, + .token.builtin, + .token.inserted { + color: #eff6ff; + } -div.code-toolbar { - position: relative; -} + .token.operator, + .token.entity, + .token.url, + .token.variable { + color: #ffffff; + } -div.code-toolbar > .toolbar { - position: absolute; - z-index: 10; - top: .3em; - right: .2em; - transition: opacity 0.3s ease-in-out; - opacity: 0; -} + .token.atrule, + .token.attr-value, + .token.keyword, + .token.class-name { + color: #bbf7d0; + } -div.code-toolbar:hover > .toolbar { - opacity: 1; -} + .token.regex, + .token.important { + color: #fde68a; + } -/* Separate line b/c rules are thrown out if selector is invalid. -IE11 and old Edge versions don't support :focus-within. */ -div.code-toolbar:focus-within > .toolbar { - opacity: 1; -} + .language-css .token.string, + .style .token.string { + color: #fde68a; + } -div.code-toolbar > .toolbar > .toolbar-item { - display: inline-block; -} + .token.important { + font-weight: normal; + } -div.code-toolbar > .toolbar > .toolbar-item > a { - cursor: pointer; -} + .token.bold { + font-weight: bold; + } + .token.italic { + font-style: italic; + } -div.code-toolbar > .toolbar > .toolbar-item > button { - background: none; - border: 0; - color: inherit; - font: inherit; - line-height: normal; - overflow: visible; - padding: 0; - -webkit-user-select: none; /* for button */ - -moz-user-select: none; - -ms-user-select: none; -} + .token.entity { + cursor: help; + } -div.code-toolbar > .toolbar > .toolbar-item > a, -div.code-toolbar > .toolbar > .toolbar-item > button, -div.code-toolbar > .toolbar > .toolbar-item > span { - color: #bbb; - font-size: .8em; - padding: 0 .5em; - background: #f5f2f0; - background: rgba(224, 224, 224, 0.2); - box-shadow: 0 2px 0 0 rgba(0,0,0,0.2); - border-radius: .5em; + .token.namespace { + opacity: .7; + } + } } -div.code-toolbar > .toolbar > .toolbar-item > a:hover, -div.code-toolbar > .toolbar > .toolbar-item > a:focus, -div.code-toolbar > .toolbar > .toolbar-item > button:hover, -div.code-toolbar > .toolbar > .toolbar-item > button:focus, -div.code-toolbar > .toolbar > .toolbar-item > span:hover, -div.code-toolbar > .toolbar > .toolbar-item > span:focus { - color: inherit; - text-decoration: none; +.copy-to-clipboard-button { + display: none; } -.layout-wrapper-dark { - pre[class*="language-"] { - code { - color: var(--text-color) !important; - - .token { - &.tag { - color: rgb(141,219,140) !important; - } - &.keyword { - color: rgb(244,112,103) !important; - } - - &.property { - color: rgb(150,208,255) !important; - } - - &.attr-name, - &.attr-string { - color: rgb(108,182,255) !important; - } - - &.string { - color: var(--text-color) !important; - } - - &.attr-value { - color: var(--text-color) !important; - - .punctuation { - color: rgb(108,182,255) !important; - } - } - - &.punctuation { - color: var(--text-color) !important; - } - - &.operator, - &.string { - background: transparent; - } - - &.function { - color: rgb(220,189,251) !important; - } - - &.operator { - color: rgb(150,208,255) !important; - } +.layout-dark { + .doc-section-code-buttons { + button { + outline: 0 none; + outline-offset: 0; + background-color: transparent; + transition: background-color .2s, box-shadow .2s; + border: 0 none; + color: var(--surface-400); + cursor: pointer; + + &:hover { + background-color: rgba(255,255,255,.1); + color: var(--surface-500); } } } -} - -.layout-wrapper-light { - pre[class*="language-"] { + pre[class*="language-"] { code { - color: rgb(10,48,105) !important; - - .token { - &.tag { - color: rgb(17,99,41) !important; - } - &.keyword { - color: rgb(207,34,46) !important; - } - - &.property { - color: rgb(5,80,174) !important; - } - - &.attr-name, - &.attr-string { - color: rgb(5,80,174) !important; - } - - &.string { - color: rgb(10,48,105) !important; - } - - &.attr-value { - color: rgb(10,48,105) !important; - - .punctuation { - color: rgb(10,48,105) !important; - } - } - - &.punctuation { - color: rgb(5,80,174) !important; - } - - &.operator, - &.string { - background: transparent; - } - - &.function { - color: rgb(130,80,223) !important; - } - - &.operator { - color: rgb(5,80,174) !important; - } - } + background: var(--surface-card) !important; } } } -pre[class*="language-"] { - position: relative; - background: transparent !important; - - &:before, &:after { - display: none !important; - } - - code { - border-left: 1rem solid transparent !important; - box-shadow: none !important; - background: var(--surface-card) !important; - margin: 0; - color: var(--surface-900); - font-size: 14px; - border-radius: 10px; +.layout-light { + .doc-section-code-buttons { + button { + outline: 0 none; + outline-offset: 0; + background-color: transparent; + transition: background-color .2s, box-shadow .2s; + border: 0 none; + color: var(--surface-400); + cursor: pointer; + + &:hover { + background-color: rgba(255,255,255,.1); + color: var(--surface-300); + } + } } + pre[class*="language-"] { + code { + background: var(--surface-700) !important; + } } - -.copy-to-clipboard-button { - display: none; } \ No newline at end of file diff --git a/assets/styles/layout/_content.scss b/assets/styles/layout/_content.scss index 7a5202c0db..b9858eeffe 100644 --- a/assets/styles/layout/_content.scss +++ b/assets/styles/layout/_content.scss @@ -1,12 +1,29 @@ .layout-content { - margin-left: 250px; - padding-top: 5rem; + padding: 6rem 4rem 0 4rem; + display: flex; - .layout-content-inner { - padding: 2rem 4rem; + .layout-content-slot { + flex: 1 1 auto; + width: 1%; } +} + +.layout-light { + .card { + background: var(--surface-card); + border: 1px solid var(--surface-border); + padding: 2rem; + border-radius: 10px; + margin-bottom: 1rem; + } +} +.layout-dark { .card { - @include card; + background: var(--surface-card); + border: 0 none; + padding: 2rem; + border-radius: 10px; + margin-bottom: 1rem; } } diff --git a/assets/styles/layout/_core.scss b/assets/styles/layout/_core.scss index e1d5a62946..d1c33e4f72 100644 --- a/assets/styles/layout/_core.scss +++ b/assets/styles/layout/_core.scss @@ -31,7 +31,7 @@ h1, h2, h3, h4, h5, h6 { } h1 { - font-size: 2.25rem; + font-size: 2rem; } h2 { @@ -55,7 +55,7 @@ h6 { } p { - line-height: 1.5; + line-height: 1.75; margin: 0 0 1rem 0; } @@ -97,6 +97,6 @@ input[type="number"] { } button { - font-family: inherit; - font-feature-settings: inherit; + font-family: var(--font-family); + font-feature-settings: var(--font-feature-settings); } \ No newline at end of file diff --git a/assets/styles/layout/_doc.scss b/assets/styles/layout/_doc.scss index 594883d5f8..01ab72f1a6 100644 --- a/assets/styles/layout/_doc.scss +++ b/assets/styles/layout/_doc.scss @@ -104,7 +104,7 @@ i { border-radius: 6px; padding: 2px 6px; - font-size: 0.875rem; + font-size: 1rem; font-weight: 600; font-style: normal; } @@ -120,7 +120,7 @@ } } -.layout-wrapper-light { +.layout-light { .doc-section-description { > p { i { @@ -131,7 +131,7 @@ } } -.layout-wrapper-dark { +.layout-dark { .doc-section-description { > p { i { @@ -144,7 +144,7 @@ .doc-section-nav { position: sticky; - top: 7rem; + top: 6rem; right: 0; width: 14rem; max-height: calc(100vh - 15rem); @@ -175,6 +175,7 @@ .px-link { padding: 0.25rem 1rem 0.25rem 1rem; color: var(--surface-800); + font-weight: 400; white-space: nowrap; min-width: 0; overflow: hidden; @@ -229,17 +230,13 @@ font-size: 11px; } -.doc-section-code { +.doc-section-code { div { &::-webkit-scrollbar { width: 5px; } } - pre { - margin: 0; - } - &:not(:last-child) { margin-bottom: 1rem; } @@ -247,14 +244,12 @@ .doc-tablewrapper { overflow: auto; - @include card; } .doc-table { border-collapse: collapse; width: 100%; min-width: 960px; - background-color: var(--surface-card); margin-bottom: 1.5rem; th { diff --git a/assets/styles/layout/_docsearch.scss b/assets/styles/layout/_docsearch.scss index 31615cc486..ccc2d075f4 100644 --- a/assets/styles/layout/_docsearch.scss +++ b/assets/styles/layout/_docsearch.scss @@ -4,7 +4,7 @@ width: 14rem; margin: 0; transition: border-color .3s; - height: 3rem; + height: 2.5rem; padding: 0 .75rem; &:hover { diff --git a/assets/styles/layout/_mixins.scss b/assets/styles/layout/_mixins.scss deleted file mode 100644 index 6b1dc55796..0000000000 --- a/assets/styles/layout/_mixins.scss +++ /dev/null @@ -1,6 +0,0 @@ -@mixin card { - background: var(--surface-card); - padding: 2rem; - border-radius: 10px; - margin-bottom: 1rem; -} \ No newline at end of file diff --git a/assets/styles/layout/_news.scss b/assets/styles/layout/_news.scss index f96b193fc4..1be508628b 100644 --- a/assets/styles/layout/_news.scss +++ b/assets/styles/layout/_news.scss @@ -66,21 +66,19 @@ } } -.landing-news-active { - .landing-header { + +.layout-news-active { + .layout-topbar { top: 2rem; } -} -.layout-news-active { .layout-sidebar, - .layout-topbar, - .layout-config { - top: 2rem; + .doc-section-nav { + top: 8rem; } .layout-content { - padding-top: 7rem; + padding-top: 8rem; } .doc-section-label, diff --git a/assets/styles/layout/_responsive.scss b/assets/styles/layout/_responsive.scss index 82d84e78d5..5282904849 100644 --- a/assets/styles/layout/_responsive.scss +++ b/assets/styles/layout/_responsive.scss @@ -1,5 +1,5 @@ @media screen and (min-width: 1729px) { - .layout-content-inner { + .layout-content { max-width: 1478px; margin: 0 auto; } @@ -8,97 +8,115 @@ max-width: 1478px; margin: 0 auto; } + + .layout-sidebar { + left: 200px; + } } @media screen and (max-width: 991px) { - .layout-wrapper { - .layout-topbar { - left: 0; - width: 100%; - - .menu-button { - display: flex; - } + .layout-topbar-inner { + padding-left: 2rem; + padding-right: 2rem; - #docsearch { - margin-left: auto; - margin-right: .5rem; - } - - .DocSearch-Button { - width: 2rem; - height: 2rem; - overflow: hidden; - padding: 0; - justify-content: center; - align-items: center; - - .DocSearch-Search-Icon { - width: 1rem; - height: 1rem; - } - - .DocSearch-Button-Placeholder, - .DocSearch-Button-Keys { - display: none; - } - } + .menu-button { + display: block; } - - .layout-sidebar { - top: 0; - z-index: 1102; - height: 100%; - transform: translateX(-100%); - - &.active { - transform: translateX(0); - } + + .layout-topbar-logo-container { + width: auto; + margin-right: 0; } - - .layout-content { - margin-left: 0; + + #docsearch { + margin-left: auto; + margin-right: .5rem; } - - .layout-mask { - background-color: rgba(0, 0, 0, 0.1); - - &.layout-mask-active { - z-index: 1101; - width: 100%; - height: 100%; - position: fixed; - top: 0; - left: 0; - background-color: rgba(0, 0, 0, 0.4); - transition: background-color .5s; + + .DocSearch-Button { + width: 2rem; + height: 2rem; + overflow: hidden; + padding: 0; + justify-content: center; + align-items: center; + + .DocSearch-Search-Icon { + width: 1rem; + height: 1rem; + } + + .DocSearch-Button-Placeholder, + .DocSearch-Button-Keys { + display: none; } } + } - .doc-section-nav { - display: none; + .layout-sidebar { + top: 0; + left: 0; + position: fixed; + z-index: 1102; + height: 100%; + transform: translateX(-100%); + background-color: var(--surface-overlay); + width: 300px; + opacity: 0; + + nav { + padding: 1rem 1rem; } - .doc-tabmenu { - margin-right: 0; + &.active { + opacity: 1; + transform: translateX(0); } + } - .video-container { - position: relative; + .layout-mask { + background-color: rgba(0, 0, 0, 0.1); + + &.layout-mask-active { + z-index: 1101; width: 100%; - height: 0; - padding-bottom: 56.25%; + height: 100%; + position: fixed; + top: 0; + left: 0; + background-color: rgba(0, 0, 0, 0.4); + transition: background-color .5s; + } + } - iframe { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - } + .doc-section-nav { + display: none; + } + + .doc-tabmenu { + margin-right: 0; + } + + .video-container { + position: relative; + width: 100%; + height: 0; + padding-bottom: 56.25%; + + iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; } } + .layout-content { + padding-left: 2rem; + padding-right: 2rem; + } + .blocked-scroll { overflow: hidden; padding-right: var(--scrollbar-width); @@ -106,32 +124,36 @@ } @media screen and (max-width: 575px) { - .layout-wrapper { - .layout-topbar-inner { - padding-left: 1rem; - padding-right: 1rem; - } + .layout-topbar-inner { + padding-left: 1rem; + padding-right: 1rem; - .layout-content { - .layout-content-inner { - padding-left: 1rem; - padding-right: 1rem; - } + .layout-topbar-logo { + display: none; } - .layout-footer { - padding-left: 1rem; - padding-right: 1rem; + .layout-topbar-icon { + display: block; } + } + + .layout-content { + padding-left: 1rem; + padding-right: 1rem; + } - .doc-tabmenu { - li { - flex: 1 1 0; + .layout-footer { + padding-left: 1rem; + padding-right: 1rem; + } + + .doc-tabmenu { + li { + flex: 1 1 0; - button { - width: 100%; - min-width: auto; - } + button { + width: 100%; + min-width: auto; } } } diff --git a/assets/styles/layout/_sidebar.scss b/assets/styles/layout/_sidebar.scss index 315f39f9ad..fd7e492337 100644 --- a/assets/styles/layout/_sidebar.scss +++ b/assets/styles/layout/_sidebar.scss @@ -1,15 +1,16 @@ .layout-sidebar { - position: fixed; + position: sticky; left: 0; - top: 0; - height: 100%; - background-color: var(--surface-overlay); - width: 250px; + top: 6rem; + height: calc(100vh - 9rem); user-select: none; - transition: transform .4s cubic-bezier(.05,.74,.2,.99); + transition: transform .4s cubic-bezier(.05,.74,.2,.99), opacity .3s; display: flex; flex-direction: column; - padding: 1rem 0; + padding: 0 0 0 0; + flex: 0 0 250px; + margin-right: 4rem; + overflow: auto; .logo { display: flex; @@ -17,10 +18,9 @@ } nav { - padding: .5rem 1rem 2rem 1rem; - margin-top: 2rem; + padding: 0; + margin: -.5rem 0 0 0; flex-grow: 1; - overflow-y: auto; } .layout-menu { @@ -35,7 +35,7 @@ display: flex; width: 100%; align-items: center; - padding: .5rem; + padding: .5rem 0; color: var(--surface-900); font-weight: 600; transition: all .2s; @@ -96,7 +96,7 @@ color: var(--surface-700); border-left: 1px solid var(--surface-border); transition: all .2s; - font-weight: 400; + font-weight: 450; display: flex; padding: .5rem .5rem .5rem 1rem; color: var(--surface-700); diff --git a/assets/styles/layout/_topbar.scss b/assets/styles/layout/_topbar.scss index f4675160c6..fd5755f1a2 100644 --- a/assets/styles/layout/_topbar.scss +++ b/assets/styles/layout/_topbar.scss @@ -1,50 +1,53 @@ .layout-topbar { - padding: 0; - height: 5rem; position: fixed; top: 0; - left: 250px; - width: calc(100% - 250px); + left: 0; + width: 100%; z-index: 1100; transition: background-color 1s; + border-bottom: 1px solid var(--surface-border); + + &.layout-topbar-sticky { + backdrop-filter: blur(8px); + } +} + +.layout-topbar-inner { + height: 4rem; + padding: 0 4rem; + display: flex; + align-items: center; + justify-content: space-between; - .layout-topbar-inner { - display: flex; - align-items: center; - justify-content: space-between; - padding: 0 4rem; - height: 100%; - width: calc(100% - var(--scrollbar-width, 0px)); + .layout-topbar-logo-container { + width: 250px; + margin-right: 4rem; } - &.layout-topbar-sticky { - backdrop-filter: blur(8px); + .layout-topbar-logo { + svg { + width: 120px; + } } - .menu-button { + .layout-topbar-icon { display: none; - color: var(--text-color); - width: 3rem; - height: 3rem; - background-color: var(--surface-card); - border: 1px solid var(--surface-border); - align-items: center; - justify-content: center; - transition: border-color .3s; - cursor: pointer; - - &:hover { - border-color: var(--primary-color); - } - i { - font-size: 1.5rem; + svg { + width: 25px; } } -} + #docsearch { + margin-right: auto; + } + + .menu-button { + display: none; + } +} -.layout-wrapper-light { +.layout-light { .layout-topbar { &.layout-topbar-sticky { background-color: rgba(255,255,255,.7); @@ -52,7 +55,7 @@ } } -.layout-wrapper-dark { +.layout-dark { .layout-topbar { &.layout-topbar-sticky { background-color: rgba(0,0,0,.3); diff --git a/assets/styles/layout/landing/_components.scss b/assets/styles/layout/landing/_components.scss deleted file mode 100644 index 470fc868a1..0000000000 --- a/assets/styles/layout/landing/_components.scss +++ /dev/null @@ -1,33 +0,0 @@ -.landing-components { - .components-main { - .components-strip-top { - background: var(--home-components-strip-bg); - transform: matrix(-1, 0, 0, 1, 0, 0); - } - - .components-strip-bottom { - background: var(--home-components-strip-bg); - } - } - - .p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link { - background: transparent; - } - - .box { - box-shadow: var(--home-card-shadow); - } - - .p-datepicker, .p-datepicker-header { - background: transparent; - border-color: transparent; - } -} - -@media screen and (min-width: 1660px) { - .components-main-container { - width: 1504px !important; - margin-left: auto !important; - margin-right: auto !important; - } -} \ No newline at end of file diff --git a/assets/styles/layout/landing/_dark.scss b/assets/styles/layout/landing/_dark.scss index e73d04193e..70194e6790 100644 --- a/assets/styles/layout/landing/_dark.scss +++ b/assets/styles/layout/landing/_dark.scss @@ -1,62 +1,52 @@ -.landing-dark { - --home-highlight-color:#3B82F6; - --home-highlight-darker-color:#3575dd; +.layout-dark { + --home-highlight-color:#10b981; + --home-highlight-darker-color:#059669; --home-highlight-fore-color:#ffffff; - --home-bg:#030B17; - --home-intro-bg:linear-gradient(180deg, #061730 0%, #030B17 100%); - --home-border-color:#183E71; + --home-bg:#111827; + --home-border-color:#424b57; --home-primary-text-color:#ffffff; - --home-secondary-text-color:#B6C4D6; + --home-secondary-text-color:rgba(255,255,255,.6); --home-card-shadow:0px 50px 100px rgba(0, 0, 0, 0.25); - --home-box-bg:rgba(11, 33, 63, 0.55); - --home-linkbox-bg:rgba(11, 33, 63, 0.55); - --home-linkbox-border:1px solid #183E71; + --home-box-bg:#1f2937; + --home-linkbox-bg:rgba(255, 255, 255, .1); + --home-linkbox-border:1px solid rgba(255, 255, 255, .2); --home-linkbox-text-color:#ffffff; - --home-linkbox-hover-bg:rgba(11, 33, 63, 0.9); - --home-header-bg:rgba(11, 33, 63, 0.65); - --home-menu-link-text-color:#ffffff; - --home-menu-link-hover-bg:rgba(11, 33, 63, 0.9); - --home-herobox-bg:#0B213F; - --home-herobox-shadow:0px 50px 100px rgba(0, 0, 0, 0.25); - --home-herobox-strip-top-bg:linear-gradient(360deg, rgba(3, 11, 23, 0) 0%, rgba(11, 37, 73, 0.913125) 53.83%, rgba(7, 24, 48, 0) 101.32%); - --home-herobox-strip-bottom-bg:linear-gradient(90deg, rgba(3, 11, 23, 0) 0%, #0C284E 50%, rgba(3, 11, 23, 0) 100%); - --home-herobox-logo-shadow:0px 50px 100px 0px #000000; - --home-components-strip-bg:linear-gradient(90deg, rgba(3, 11, 23, 0) 0%, #071934 100%); - --home-blocks-bg:linear-gradient(180deg, #040B17 0%, #061B38 58.33%, #030B17 100%); - --home-blocks-block-bg:#0B213F8C; + --home-linkbox-hover-bg:rgba(255, 255, 255, .2); + --home-blocks-bg:transparent; + --home-blocks-block-bg:#111827; --home-blocks-block-shadow:0px 4.787564754486084px 10px 0px #0000001A , 0px 4px 25px rgba(0, 0, 0, 0.288); - --home-blocks-border-left:5px solid #0E294D; - --home-blocks-border-bottom:7px solid #0E294D; - --home-blocks-border:1px solid #183E71; - --home-blocks-sidebar-bg:#0D264A; - --home-blocks-list-bg:#0C2242; - --home-blocks-main-bg:#0B213F8C; - --home-blocks-main-border:1px solid #183E71; - --home-blocks-item-bg:#0D264A; - --home-blocks-image-bg:#102F5B; - --home-blocks-text-color:#133667; + --home-blocks-border-left:5px solid #424b57; + --home-blocks-border-bottom:7px solid #424b57; + --home-blocks-border:1px solid #424b57; + --home-blocks-sidebar-bg:#1f2937; + --home-blocks-list-bg:#28323f; + --home-blocks-main-bg:#111827; + --home-blocks-main-border:1px solid #424b57; + --home-blocks-item-bg:#1f2937; + --home-blocks-image-bg:#28323f; + --home-blocks-text-color:rgba(255,255,255,.87); --home-blocks-active-shadow:0px 30px 50px 0px #00000049; - --home-blocks-active-border-top:1px solid #183E71; - --home-blocks-active-border-right:1px solid #183E71; - --home-blocks-active-border-bottom:6px solid #112d52; - --home-blocks-active-border-left:4px solid #183E71; + --home-blocks-active-border-top:1px solid #424b57; + --home-blocks-active-border-right:1px solid #424b57; + --home-blocks-active-border-bottom:6px solid #424b57; + --home-blocks-active-border-left:4px solid #424b57; --home-blocks-animation-shadow:0px 30px 50px 20px #00000059; - --home-blocks-tablebar-bg:#194686; - --home-blocks-bar-bg:#15386B; - --home-blocks-bar-button-bg:#0C2E56; - --home-blocks-circle-bg:#15386B; - --home-templates-bg:linear-gradient(180deg,#040b17 0%,#061b38 58.33%,#030b17 100%); + --home-blocks-tablebar-bg:#424b57; + --home-blocks-bar-bg:#0D9488; + --home-blocks-bar-button-bg:#0D9488; + --home-blocks-circle-bg:#0D9488; + --home-templates-bg:transparent; --home-templates-block-shadow:0px 4.787564754486084px 10px 0px #0000001a; - --home-templates-block-border-left:5px solid rgb(13, 35, 65); - --home-templates-block-border-bottom:7px solid #09182d; - --home-templates-line:linear-gradient(rgba(10, 35, 70, 0),#0e3163 50%,rgba(10, 35, 70, 0)); - --home-templates-block-hover-bg:rgba(11, 33, 63, 0.699); - --home-templates-btn-bg:rgb(11, 33, 63); + --home-templates-block-border-left:5px solid #424b57; + --home-templates-block-border-bottom:7px solid #424b57; + --home-templates-line:rgba(255,255,255,.1); + --home-templates-block-hover-bg:rgba(255,255,255,.09); + --home-templates-btn-bg:#1f2937; --home-templates-btn-text-color:#ffffff; --home-templates-btn-shadow:0px 10px 15px 0px #00000040; - --home-templates-btn-border-top:1px solid rgb(13, 40, 78); - --home-templates-btn-border-right:1px solid rgb(13, 40, 78); - --home-templates-btn-border-bottom:4px solid rgb(13, 40, 78); - --home-templates-btn-border-left:3px solid rgb(13, 40, 78); + --home-templates-btn-border-top:1px solid #424b57; + --home-templates-btn-border-right:1px solid #424b57; + --home-templates-btn-border-bottom:4px solid #424b57; + --home-templates-btn-border-left:3px solid #424b57; --home-features-card-shadow: none; } \ No newline at end of file diff --git a/assets/styles/layout/landing/_designer.scss b/assets/styles/layout/landing/_designer.scss deleted file mode 100644 index 4046b7380a..0000000000 --- a/assets/styles/layout/landing/_designer.scss +++ /dev/null @@ -1,151 +0,0 @@ -.landing-designer { - .designer-demo { - --dd-primary:#4f8ff7; - --dd-primary-darker:#3575dd; - --dd-font: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; - - .p-component { - font-family: var(--dd-font); - } - - .p-slider { - .p-slider-range { - background-color: var(--dd-primary); - } - - .p-slider-handle { - border-color: var(--dd-primary); - - &:hover { - background-color: var(--dd-primary); - border-color: var(--dd-primary); - } - } - } - - .p-inputtext { - &:enabled:hover { - border-color: var(--dd-primary); - } - - &:focus { - box-shadow: none; - border-color: var(--dd-primary); - } - } - - .p-checkbox { - &:not(.p-checkbox-disabled) .p-checkbox-box { - &:hover, &.p-focus { - border-color: var(--dd-primary); - } - - &.p-focus { - box-shadow: 0 0 0 2px var(--surface-ground), 0 0 0 4px var(--dd-primary), 0 1px 2px 0 rgba(0, 0, 0, 1.0); - } - } - - .p-checkbox-box { - &.p-highlight { - background-color: var(--dd-primary); - border-color: var(--dd-primary); - - &:hover { - background-color: var(--dd-primary); - border-color: var(--dd-primary); - } - } - } - } - - .p-button { - background-color: var(--dd-primary); - border-color: var(--dd-primary); - - &.p-button-outlined { - background-color: transparent; - - .p-button-icon, .p-button-label { - color: var(--dd-primary); - } - - &:enabled:hover, - &:enabled:active { - background-color: transparent; - } - } - - &:enabled:hover, - &:enabled:active { - background-color: var(--dd-primary-darker); - border-color: var(--dd-primary-darker); - } - - &:focus { - box-shadow: 0 0 0 2px var(--surface-ground), 0 0 0 4px var(--dd-primary), 0 1px 2px 0 rgba(0, 0, 0, 1.0); - } - } - - .p-listbox { - .p-listbox-list .p-listbox-item.p-highlight { - background-color: transparent; - box-shadow: inset 0 0 0 0.15rem var(--dd-primary); - color: var(--text-color); - } - } - - .p-inputtext, .p-button, .p-listbox-item, .p-slider { - transition: all .5s; - } - - .p-slider, .p-checkbox { - transition: transform .5s; - } - - &.demo-size-small { - .p-inputtext, .p-button { - padding: .5rem; - } - - .p-listbox-item { - padding: .5rem 1rem; - } - - .p-slider, .p-checkbox { - transform: scale(0.9); - } - } - - &.demo-size-large { - .p-inputtext, .p-button { - padding: 1rem; - } - - .p-listbox-item { - padding: 1rem 1.5rem; - } - - .p-slider, .p-checkbox { - transform: scale(1.1); - } - } - } - - .formgrid > .field { - padding: 1rem 2rem 1rem; - } - - .designer-editor { - backdrop-filter: blur(1rem); - box-shadow: var(--home-card-shadow); - max-width: 1250px !important; - margin-left: auto !important; - margin-right: auto !important; - } - - .designer-controls { - border-radius: 0 !important; - background: transparent; - } - -} \ No newline at end of file diff --git a/assets/styles/layout/landing/_header.scss b/assets/styles/layout/landing/_header.scss deleted file mode 100644 index 0e2d685d84..0000000000 --- a/assets/styles/layout/landing/_header.scss +++ /dev/null @@ -1,111 +0,0 @@ -.landing-header { - background-color: transparent; - position: fixed; - top: 0; - left: 0; - width: 100%; - padding-top: 1rem; - padding-bottom: 1rem; - z-index: 100; - - .landing-header-container { - width: 100%; - max-width: 1250px !important; - margin-left: auto !important; - margin-right: auto !important; - display: flex; - align-items: center; - justify-content: space-between; - } - - .landing-header-logo { - height: 2.5rem; - } - - &.landing-header-sticky { - background-color: var(--home-header-bg); - backdrop-filter: blur(12px); - } - - ol { - a { - display: block; - padding: .5rem 1.5rem; - text-align: center; - transition: background-color .3s; - border-radius: 10px; - color: var(--home-menu-link-text-color); - white-space: nowrap; - - img { - display: none; - } - - &:hover { - background: var(--home-menu-link-hover-bg); - } - } - } - - .header-button { - width: 2.5rem; - height: 2.5rem; - } -} - -@media screen and (max-width: $landingBreakpointLG) { - .landing-header { - align-items: flex-start; - - nav { - display: none; - } - - .landing-header-logo { - height: 2rem; - } - - &.landing-header-active { - background-color: var(--home-header-bg); - backdrop-filter: blur(12px); - height: 100vh; - - nav { - display: block; - position: fixed; - left: 100px; - top: 100px; - width: 100%; - padding: 4rem 2rem; - top: 5rem; - left: 0; - } - - .menu-button { - i:before { - content: "\e90b"; - } - } - } - - ol { - a { - border: 1px solid var(--home-border-color); - background-color: var(--home-herobox-bg); - margin-bottom: 1rem; - color: var(--home-linkbox-text-color); - cursor: pointer; - font-size: 1.5rem; - text-align: left; - display: flex; - align-items: center; - padding: 1.5rem; - - img { - display: block; - margin-right: 1.5rem; - } - } - } - } -} diff --git a/assets/styles/layout/landing/_hero.scss b/assets/styles/layout/landing/_hero.scss index c6f064b4c9..60a6db5fbc 100644 --- a/assets/styles/layout/landing/_hero.scss +++ b/assets/styles/layout/landing/_hero.scss @@ -1,200 +1,22 @@ .landing-hero { - flex: 1 1 auto; - - .hero-inner { - .hero-box { - position: relative; - z-index: 1; - - .name { - text-align: center; - margin-top: 20px; - opacity: 0; - transition: 1s; - transition-delay: 1.8s; - } - - img { - transform: scale(0); - opacity: 0; - transition: 0.5s; - transition-delay: 1.8s; - } - - b { - color: var(--home-primary-text-color); - display: block; - font-weight: 600; - font-size: 13px; - } - - span { - color: var(--home-secondary-text-color); - font-weight: 500; - font-size: 12px; - } - - &:before { - content: ''; - background: var(--home-herobox-bg); - border: 1px solid var(--home-border-color); - box-shadow: 0px 50px 100px var(--home-herobox-shadow); - border-radius: 9px; - z-index: -1; - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 0%; - opacity: 0; - transform: translate(-50%, -50%); - transition: height 1s 1.4s, opacity 1s 1.4s, border-color .3s; - } - - &:hover { - &:before { - border-color: var(--home-highlight-color); - } - } - } - - .hero-border-top { - opacity: 0; - border: 1px solid transparent; - width: 380px; - height: 0; - position: absolute; - top: 50%; - left: 50%; - z-index: -1; - transition: height 1.5s, opacity 1.5s; - transition-delay: 0.6s; - border-radius: 9px; - transform: translate(-50%, -50%); - } - - .hero-border-left { - border: 1px solid var(--home-border-color); - border-right: transparent; - width: 0%; - border-radius: 9px 0 0 9px; - height: 35%; - position: absolute; - top: 50%; - left: -3%; - z-index: -1; - opacity: 0; - transition: width 1s, opacity 1s, transform 1s; - transition-delay: 1s; - transform: translate(108px, -50%); - } - - .hero-border-right { - border: 1px solid var(--home-border-color); - border-left: transparent; - width: 0%; - border-radius: 0 9px 9px 0; - height: 35%; - position: absolute; - top: 50%; - right: -3%; - z-index: -1; - opacity: 0; - transition: width 1s, opacity 1s, transform 1s; - transition-delay: 1s; - transform: translate(-108px, -50%); - } + .p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link { + background: transparent; } - .hero-bg { - transition-delay: 1.4s; - - .hero-strip-top { - transition: 1.6s; - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - width: 114px; - height: 0%; - opacity: 0; - background: var(--home-herobox-strip-top-bg); - } - - .hero-strip-left { - transition: 1.6s; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - width: 0%; - height: 114px; - opacity: 0; - background: var(--home-herobox-strip-bottom-bg); - } + .box { + box-shadow: var(--home-card-shadow); } - &.hero-animation { - .hero-bg { - .hero-strip-top { - opacity: 1; - height: 100%; - } - - .hero-strip-left { - width: 100%; - opacity: 1; - } - } - - .hero-inner { - .hero-box { - cursor: pointer; - - img { - opacity: 1; - transform: scale(1); - } - - &.logo { - &::before { - box-shadow: var(--home-herobox-logo-shadow); - } - } - - .name { - opacity: 1; - } - - &:before { - height: 100%; - opacity: 1; - } - } - - .hero-border-top { - height: 70%; - opacity: 1; - border-color: var(--home-border-color); - } - - .hero-border-left { - opacity: 1; - width: 19%; - transform: translate(0, -50%); - } - - .hero-border-right { - opacity: 1; - width: 19%; - transform: translate(0, -50%); - } - } + .p-datepicker, .p-datepicker-header { + background: transparent; + border-color: transparent; } } -@media screen and (max-width: $landingBreakpointLG) { +@media screen and (min-width: 1660px) { .landing-hero { - padding: 0 2rem; + width: 1504px !important; + margin-left: auto !important; + margin-right: auto !important; } } \ No newline at end of file diff --git a/assets/styles/layout/landing/_landing.scss b/assets/styles/layout/landing/_landing.scss index be90e10bdf..b155a338f9 100644 --- a/assets/styles/layout/landing/_landing.scss +++ b/assets/styles/layout/landing/_landing.scss @@ -5,12 +5,10 @@ $landingBreakpointXL: 1199px; @import './_main'; @import './_light'; @import './_dark'; -@import './_header'; @import './_hero'; +@import './_users'; @import './_getstarted'; -@import './_components'; @import './_themes'; @import './_blocks'; -@import './_designer'; @import './_templates'; @import './_features'; diff --git a/assets/styles/layout/landing/_light.scss b/assets/styles/layout/landing/_light.scss index 3186a10fe5..7857f96c54 100644 --- a/assets/styles/layout/landing/_light.scss +++ b/assets/styles/layout/landing/_light.scss @@ -1,62 +1,52 @@ -.landing-light { - --home-highlight-color:#4f8ff7; - --home-highlight-darker-color:#3575dd; +.layout-light { + --home-highlight-color:#10b981; + --home-highlight-darker-color:#059669; --home-highlight-fore-color:#ffffff; - --home-bg:#EDF5FF; - --home-intro-bg:#EDF5FF; - --home-border-color:#C7E0FF; + --home-bg:#F9FAFB; + --home-border-color:rgba(0,0,0,.1); --home-primary-text-color:#191919; --home-secondary-text-color:#73879E; - --home-card-shadow:0px 30px 50px #D4E0EE; + --home-card-shadow:0px 7px 15px 0px rgba(0, 0, 0, 0.02), 0px 28px 28px 0px rgba(0, 0, 0, 0.02), 0px 63px 38px 0px rgba(0, 0, 0, 0.01), 0px 111px 44px 0px rgba(0, 0, 0, 0.00), 0px 174px 49px 0px rgba(0, 0, 0, 0.00); --home-box-bg:#ffffff; --home-linkbox-bg:#ffffff; - --home-linkbox-border:1px solid #C7E0FF; + --home-linkbox-border:1px solid rgba(0,0,0,.1); --home-linkbox-text-color:#191919; - --home-linkbox-hover-bg:#e3f0ff; - --home-header-bg:rgba(255, 255, 255, 0.85); - --home-menu-link-text-color:#191919; - --home-menu-link-hover-bg:#e3f0ff; - --home-herobox-bg:#ffffff; - --home-herobox-shadow:0px 50px 100px rgba(212, 224, 238, 0.25); - --home-herobox-strip-top-bg:linear-gradient(0deg, #EDF5FF 1.9%, #D9EAFF 50.44%, #EDF5FF 100%); - --home-herobox-strip-bottom-bg:linear-gradient(90deg, #F2F8FF 0%, #EDF5FF 0.01%, #D9EAFF 50%, #EDF5FF 100%); - --home-herobox-logo-shadow:00px 50px 100px #BACCE2; - --home-components-strip-bg:linear-gradient(90deg, #EDF5FF 0.01%, #D9EAFF 100%); - --home-blocks-bg:linear-gradient(180deg, rgba(237, 245, 255, 0) 0%, #D4E8FE 49.48%, #EDF5FF 100%); - --home-blocks-block-bg:#FFFFFF8C; - --home-blocks-block-shadow:-10px 4px 10px 0px #c5d3e782, -10px 4px 25px #a1c0eb91; - --home-blocks-border-left:5px solid #D0E5FF; - --home-blocks-border-bottom:7px solid #D0E5FF; - --home-blocks-border:1px solid #D0E5FF; - --home-blocks-sidebar-bg:#E4F0FF; - --home-blocks-list-bg:#ECF5FF; - --home-blocks-main-bg:none; - --home-blocks-main-border:1px solid #D0E5FF; - --home-blocks-item-bg:#E4F0FF; - --home-blocks-image-bg:#C1DFFF; - --home-blocks-text-color:#C1DFFF; - --home-blocks-active-shadow:0px 30px 50px 0px #D9EAFF; - --home-blocks-active-border-top:1px solid #D7E9FF; - --home-blocks-active-border-right:1px solid #D7E9FF; - --home-blocks-active-border-bottom:6px solid #D7E9FF; - --home-blocks-active-border-left:4px solid #D7E9FF; - --home-blocks-animation-shadow:0px 30px 50px 10px #2E7BBC61; - --home-blocks-tablebar-bg:#C1DFFF; - --home-blocks-bar-bg:#C1DFFF; + --home-linkbox-hover-bg:#e5e7eb; + --home-blocks-bg:transparent; + --home-blocks-block-bg:#ffffff; + --home-blocks-block-shadow:-10px 4px 10px 0px rgba(0, 0, 0, .1), -10px 4px 25px rgba(0, 0, 0, .1); + --home-blocks-border-left:5px solid rgba(0,0,0,.1); + --home-blocks-border-bottom:7px solid rgba(0,0,0,.1); + --home-blocks-border:1px solid rgba(0,0,0,.1); + --home-blocks-sidebar-bg:#f9fafb; + --home-blocks-list-bg:#f2f3f3; + --home-blocks-main-bg:#ffffff; + --home-blocks-main-border:1px solid rgba(0,0,0,.1); + --home-blocks-item-bg:#f2f3f3; + --home-blocks-image-bg:#a1e3db; + --home-blocks-text-color:#b3b4b5; + --home-blocks-active-shadow:0px 30px 50px 0px rgba(0, 0, 0, .1); + --home-blocks-active-border-top:1px solid rgba(0,0,0,.1); + --home-blocks-active-border-right:1px solid rgba(0,0,0,.1); + --home-blocks-active-border-bottom:6px solid rgba(0,0,0,.1); + --home-blocks-active-border-left:4px solid rgba(0,0,0,.1); + --home-blocks-animation-shadow:0px 30px 50px 10px rgba(0, 0, 0, .2); + --home-blocks-tablebar-bg:#a1e3db; + --home-blocks-bar-bg:#a1e3db; --home-blocks-bar-button-bg:#ffffff; - --home-blocks-circle-bg:#C1DFFF; - --home-templates-bg:linear-gradient(180deg,#edf5ff 0%,#d4e8fe 49.48%,#edf5ff 100%); - --home-templates-block-shadow:0px 4.787564754486084px 10px 0px #b9d2f0; - --home-templates-block-border-left:5px solid #e9f3ff; - --home-templates-block-border-bottom:7px solid #e9f3ff; - --home-templates-line:linear-gradient(rgba(10, 35, 70, 0),#89b8f1 50%,rgba(10, 35, 70, 0)); - --home-templates-block-hover-bg:rgba(11, 33, 63, 0.699); - --home-templates-btn-bg:rgb(11, 33, 63); + --home-blocks-circle-bg:#a1e3db; + --home-templates-bg:transparent; + --home-templates-block-shadow:0px 4.787564754486084px 10px 0px rgba(0,0,0,.1); + --home-templates-block-border-left:5px solid #edf0f3; + --home-templates-block-border-bottom:7px solid#edf0f3; + --home-templates-line:rgba(0,0,0,.1); + --home-templates-block-hover-bg:rgba(0, 0, 0, 0.2); + --home-templates-btn-bg:rgba(0, 0, 0, 0.5); --home-templates-btn-text-color:#ffffff; - --home-templates-btn-shadow:0px 10px 15px 0px #00000040; - --home-templates-btn-border-top:1px solid rgb(13, 40, 78); - --home-templates-btn-border-right:1px solid rgb(13, 40, 78); - --home-templates-btn-border-bottom:4px solid rgb(13, 40, 78); - --home-templates-btn-border-left:3px solid rgb(13, 40, 78); - --home-features-card-shadow: 0px 50px 100px rgba(212, 224, 238, 0.25); + --home-templates-btn-shadow:0px 10px 15px 0px rgba(0, 0, 0, 0.5); + --home-templates-btn-border-top:1px solid rgba(0,0,0,.1); + --home-templates-btn-border-right:1px solid rgba(0,0,0,.1); + --home-templates-btn-border-bottom:4px solid rgba(0,0,0,.1); + --home-templates-btn-border-left:3px solid rgba(0,0,0,.1); + --home-features-card-shadow: 0px 7px 15px 0px rgba(0, 0, 0, 0.02), 0px 28px 28px 0px rgba(0, 0, 0, 0.02), 0px 63px 38px 0px rgba(0, 0, 0, 0.01), 0px 111px 44px 0px rgba(0, 0, 0, 0.00), 0px 174px 49px 0px rgba(0, 0, 0, 0.00); } \ No newline at end of file diff --git a/assets/styles/layout/landing/_main.scss b/assets/styles/layout/landing/_main.scss index fdf5b21466..c08a0a5a97 100644 --- a/assets/styles/layout/landing/_main.scss +++ b/assets/styles/layout/landing/_main.scss @@ -1,14 +1,7 @@ .landing { background: var(--home-bg); scroll-behavior: smooth; - - .landing-intro { - background: var(--home-intro-bg); - display: flex; - flex-direction: column; - padding-top: 5rem; - min-height: 100vh; - } + padding-top: 4rem; .box { border: 1px solid var(--home-border-color); @@ -134,54 +127,4 @@ 100% { transform: translateX(calc(-100% - 3rem)); } -} - -.landing-users { - .fade-right { - background: linear-gradient(to left, var(--home-bg), transparent); - } - .fade-left { - background: linear-gradient(to right, var(--home-bg), transparent); - } - .section-detail { - max-width: 1250px !important; - margin-left: auto !important; - margin-right: auto !important; - } - .users-container { - max-width: 1250px !important; - margin-left: auto !important; - margin-right: auto !important; - - .marquee-wrapper { - user-select: none; - gap: 3rem; - justify-content: center; - align-items: center; - flex-shrink: 0; - } - .marquee { - flex-shrink: 0; - display: flex; - align-items: center; - justify-content: space-around; - gap: 3rem; - min-width: 100%; - animation: scroll 30s linear infinite; - - > div { - max-width: clamp(10rem, 1rem + 28vmin, 20rem); - aspect-ratio: 1; - display: flex; - justify-content: center; - align-items: center; - height: 8rem; - } - - &.marquee-reverse{ - animation-direction: reverse; - animation-delay: calc(30s / -2); - } - } - } } \ No newline at end of file diff --git a/assets/styles/layout/landing/_users.scss b/assets/styles/layout/landing/_users.scss new file mode 100644 index 0000000000..5ebda5eafe --- /dev/null +++ b/assets/styles/layout/landing/_users.scss @@ -0,0 +1,49 @@ +.landing-users { + .fade-right { + background: linear-gradient(to left, var(--home-bg), transparent); + } + .fade-left { + background: linear-gradient(to right, var(--home-bg), transparent); + } + .section-detail { + max-width: 1250px !important; + margin-left: auto !important; + margin-right: auto !important; + } + .users-container { + max-width: 1250px !important; + margin-left: auto !important; + margin-right: auto !important; + + .marquee-wrapper { + user-select: none; + gap: 3rem; + justify-content: center; + align-items: center; + flex-shrink: 0; + } + .marquee { + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: space-around; + gap: 3rem; + min-width: 100%; + animation: scroll 30s linear infinite; + + > div { + max-width: clamp(10rem, 1rem + 28vmin, 20rem); + aspect-ratio: 1; + display: flex; + justify-content: center; + align-items: center; + height: 8rem; + } + + &.marquee-reverse{ + animation-direction: reverse; + animation-delay: calc(30s / -2); + } + } + } +} \ No newline at end of file diff --git a/assets/styles/layout/layout.scss b/assets/styles/layout/layout.scss index 165b05693c..bd30e62376 100644 --- a/assets/styles/layout/layout.scss +++ b/assets/styles/layout/layout.scss @@ -1,6 +1,5 @@ @charset 'UTF-8'; -@import './_mixins'; @import './_core'; @import './_topbar'; @import './_sidebar'; diff --git a/components/doc/DocSectionCode.vue b/components/doc/DocSectionCode.vue index 0dabcb0a5e..33f88909b9 100644 --- a/components/doc/DocSectionCode.vue +++ b/components/doc/DocSectionCode.vue @@ -1,86 +1,56 @@