add template
This commit is contained in:
103
src/assets/sass/layout/_config.scss
Normal file
103
src/assets/sass/layout/_config.scss
Normal file
@@ -0,0 +1,103 @@
|
||||
.layout-config {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
padding: 0;
|
||||
right: 0;
|
||||
width: 20rem;
|
||||
z-index: 999;
|
||||
height: 100vh;
|
||||
transform: translateX(100%);
|
||||
transition: transform $transitionDuration;
|
||||
backface-visibility: hidden;
|
||||
box-shadow: 0px 3px 5px rgba(0,0,0,.02), 0px 0px 2px rgba(0,0,0,.05), 0px 1px 4px rgba(0,0,0,.08) !important;
|
||||
color: var(--text-color);
|
||||
background-color: var(--surface-overlay);
|
||||
border-top-left-radius: 12px;
|
||||
border-bottom-left-radius: 12px;
|
||||
|
||||
&.layout-config-active {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.layout-config-button {
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
line-height: 52px;
|
||||
background-color: var(--primary-color);
|
||||
color: var(--primary-color-text);
|
||||
text-align: center;
|
||||
top: 230px;
|
||||
left: -52px;
|
||||
z-index: -1;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
border-top-left-radius: $borderRadius;
|
||||
border-bottom-left-radius: $borderRadius;
|
||||
border-bottom-right-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
transition: background-color $transitionDuration;
|
||||
|
||||
i {
|
||||
font-size: 32px;
|
||||
line-height: inherit;
|
||||
cursor: pointer;
|
||||
transform: rotate(0deg);
|
||||
transition: color $transitionDuration, transform 1s;
|
||||
}
|
||||
}
|
||||
|
||||
.layout-config-close {
|
||||
position: absolute;
|
||||
right: 1rem;
|
||||
top: 1rem;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.layout-config-content {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
height: calc(100vh - 5rem);
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.config-scale {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 1rem 0 2rem 0;
|
||||
|
||||
.p-button {
|
||||
margin-right: .5rem;
|
||||
}
|
||||
|
||||
i {
|
||||
margin-right: .5rem;
|
||||
font-size: .75rem;
|
||||
color: var(--text-color-secondary);
|
||||
|
||||
&.scale-active {
|
||||
font-size: 1.25rem;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.free-themes {
|
||||
img {
|
||||
width: 2rem;
|
||||
border-radius: 4px;
|
||||
transition: transform .2s;
|
||||
display: block;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: .75rem;
|
||||
margin-top: .25rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
src/assets/sass/layout/_content.scss
Normal file
12
src/assets/sass/layout/_content.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
.layout-main-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
justify-content: space-between;
|
||||
padding: 7rem 2rem 2rem 4rem;
|
||||
transition: margin-left $transitionDuration;
|
||||
}
|
||||
|
||||
.layout-main {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
8
src/assets/sass/layout/_footer.scss
Normal file
8
src/assets/sass/layout/_footer.scss
Normal file
@@ -0,0 +1,8 @@
|
||||
.layout-footer {
|
||||
transition: margin-left $transitionDuration;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--surface-border);
|
||||
}
|
||||
11
src/assets/sass/layout/_layout.scss
Normal file
11
src/assets/sass/layout/_layout.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
@import "./_mixins";
|
||||
@import "./_splash";
|
||||
@import "./_main";
|
||||
@import "./_topbar";
|
||||
@import "./_menu";
|
||||
@import "./_config";
|
||||
@import "./_content";
|
||||
@import "./_footer";
|
||||
@import "./_responsive";
|
||||
@import "./_utils";
|
||||
@import "./_typography";
|
||||
28
src/assets/sass/layout/_main.scss
Normal file
28
src/assets/sass/layout/_main.scss
Normal file
@@ -0,0 +1,28 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
font-size: $fontSize;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-family);
|
||||
color: var(--text-color);
|
||||
background-color: var(--surface-ground);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100%;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
.layout-theme-light {
|
||||
background-color: #edf1f5;
|
||||
}
|
||||
116
src/assets/sass/layout/_menu.scss
Normal file
116
src/assets/sass/layout/_menu.scss
Normal file
@@ -0,0 +1,116 @@
|
||||
.layout-sidebar {
|
||||
position: fixed;
|
||||
width: 300px;
|
||||
height: calc(100vh - 9rem);
|
||||
z-index: 999;
|
||||
overflow-y: auto;
|
||||
user-select: none;
|
||||
top: 7rem;
|
||||
left: 2rem;
|
||||
transition: transform $transitionDuration, left $transitionDuration;
|
||||
background-color: var(--surface-overlay);
|
||||
border-radius: 12px;
|
||||
padding: 1.5rem;
|
||||
box-shadow: 0px 3px 5px rgba(0,0,0,.02), 0px 0px 2px rgba(0,0,0,.05), 0px 1px 4px rgba(0,0,0,.08)
|
||||
}
|
||||
|
||||
.layout-menu {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
li {
|
||||
&.layout-menuitem-category {
|
||||
margin-top: .75rem;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.layout-menuitem-root-text {
|
||||
text-transform: uppercase;
|
||||
color:var(--text-color-secondary);
|
||||
font-weight: 600;
|
||||
margin-bottom: .5rem;
|
||||
font-size: .875rem;
|
||||
}
|
||||
|
||||
a {
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color:var(--text-color);
|
||||
transition: color $transitionDuration;
|
||||
border-radius: $borderRadius;
|
||||
padding: .75rem 1rem;
|
||||
transition: background-color .15s;
|
||||
|
||||
span {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.menuitem-toggle-icon {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
@include focused-inset();
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: var(--surface-hover);
|
||||
}
|
||||
|
||||
&.router-link-exact-active {
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
&.active-menuitem {
|
||||
> a {
|
||||
.menuitem-toggle-icon {
|
||||
&:before {
|
||||
content: '\e933';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
|
||||
&.layout-submenu-wrapper-enter {
|
||||
max-height: 0;
|
||||
}
|
||||
|
||||
&.layout-submenu-wrapper-enter-active {
|
||||
overflow: hidden;
|
||||
max-height: 1000px;
|
||||
transition: max-height 1s ease-in-out;
|
||||
}
|
||||
|
||||
&.layout-submenu-wrapper-enter-done {
|
||||
transform: none;
|
||||
}
|
||||
|
||||
&.layout-submenu-wrapper-exit {
|
||||
max-height: 1000px;
|
||||
}
|
||||
|
||||
&.layout-submenu-wrapper-exit-active {
|
||||
overflow: hidden;
|
||||
max-height: 0;
|
||||
transition: max-height 0.45s cubic-bezier(0.86, 0, 0.07, 1);
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
13
src/assets/sass/layout/_mixins.scss
Normal file
13
src/assets/sass/layout/_mixins.scss
Normal file
@@ -0,0 +1,13 @@
|
||||
@mixin focused() {
|
||||
outline: 0 none;
|
||||
outline-offset: 0;
|
||||
transition: box-shadow .2s;
|
||||
box-shadow: var(--focus-ring);
|
||||
}
|
||||
|
||||
@mixin focused-inset() {
|
||||
outline: 0 none;
|
||||
outline-offset: 0;
|
||||
transition: box-shadow .2s;
|
||||
box-shadow: inset var(--focus-ring);
|
||||
}
|
||||
89
src/assets/sass/layout/_responsive.scss
Normal file
89
src/assets/sass/layout/_responsive.scss
Normal file
@@ -0,0 +1,89 @@
|
||||
@media (min-width: 992px) {
|
||||
.layout-wrapper {
|
||||
&.layout-overlay {
|
||||
.layout-main-container {
|
||||
margin-left: 0;
|
||||
padding-left: 2rem;
|
||||
}
|
||||
|
||||
.layout-sidebar {
|
||||
transform: translateX(-100%);
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
&.layout-overlay-sidebar-active {
|
||||
.layout-sidebar {
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.layout-static {
|
||||
.layout-main-container {
|
||||
margin-left: 300px;
|
||||
}
|
||||
|
||||
&.layout-static-sidebar-inactive {
|
||||
.layout-sidebar {
|
||||
transform: translateX(-100%);
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.layout-main-container {
|
||||
margin-left: 0;
|
||||
padding-left: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.layout-mask {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.layout-wrapper {
|
||||
.layout-main-container {
|
||||
margin-left: 0;
|
||||
padding-left: 2rem;
|
||||
}
|
||||
|
||||
.layout-sidebar {
|
||||
transform: translateX(-100%);
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
|
||||
.layout-mask {
|
||||
z-index: 998;
|
||||
background-color: $maskBg;
|
||||
|
||||
&.layout-mask-enter-from,
|
||||
&.layout-mask-leave-to {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
&.layout-mobile-sidebar-active {
|
||||
.layout-sidebar {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.layout-mask {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.body-overflow-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
47
src/assets/sass/layout/_splash.scss
Normal file
47
src/assets/sass/layout/_splash.scss
Normal file
@@ -0,0 +1,47 @@
|
||||
.preloader {
|
||||
position: fixed;
|
||||
z-index: 999999;
|
||||
background: #edf1f5;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.preloader-content {
|
||||
border: 0 solid transparent;
|
||||
border-radius: 50%;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
position: absolute;
|
||||
top: calc(50vh - 75px);
|
||||
left: calc(50vw - 75px);
|
||||
}
|
||||
|
||||
.preloader-content:before, .preloader-content:after{
|
||||
content: '';
|
||||
border: 1em solid var(--primary-color);
|
||||
border-radius: 50%;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
animation: loader 2s linear infinite;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.preloader-content:before{
|
||||
animation-delay: 0.5s;
|
||||
}
|
||||
|
||||
@keyframes loader{
|
||||
0%{
|
||||
transform: scale(0);
|
||||
opacity: 0;
|
||||
}
|
||||
50%{
|
||||
opacity: 1;
|
||||
}
|
||||
100%{
|
||||
transform: scale(1);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
149
src/assets/sass/layout/_topbar.scss
Normal file
149
src/assets/sass/layout/_topbar.scss
Normal file
@@ -0,0 +1,149 @@
|
||||
.layout-topbar {
|
||||
position: fixed;
|
||||
height: 5rem;
|
||||
z-index: 997;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
padding: 0 2rem;
|
||||
background-color: var(--surface-card);
|
||||
transition: left $transitionDuration;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: 0px 3px 5px rgba(0,0,0,.02), 0px 0px 2px rgba(0,0,0,.05), 0px 1px 4px rgba(0,0,0,.08);
|
||||
|
||||
.layout-topbar-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--surface-900);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 500;
|
||||
width: 300px;
|
||||
border-radius: 12px;
|
||||
|
||||
img {
|
||||
height: 2.5rem;
|
||||
margin-right: .5rem;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
@include focused();
|
||||
}
|
||||
}
|
||||
|
||||
.layout-topbar-button {
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
color: var(--text-color-secondary);
|
||||
border-radius: 50%;
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
cursor: pointer;
|
||||
transition: background-color $transitionDuration;
|
||||
|
||||
&:hover {
|
||||
color: var(--text-color);
|
||||
background-color: var(--surface-hover);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
@include focused();
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 1rem;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.layout-menu-button {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
.layout-topbar-menu-button {
|
||||
display: none;
|
||||
|
||||
i {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.layout-topbar-menu {
|
||||
margin: 0 0 0 auto;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
|
||||
.layout-topbar-button {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.layout-topbar {
|
||||
justify-content: space-between;
|
||||
|
||||
.layout-topbar-logo {
|
||||
width: auto;
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.layout-menu-button {
|
||||
margin-left: 0;
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.layout-topbar-menu-button {
|
||||
display: inline-flex;
|
||||
margin-left: 0;
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.layout-topbar-menu {
|
||||
margin-left: 0;
|
||||
position: absolute;
|
||||
flex-direction: column;
|
||||
background-color: var(--surface-overlay);
|
||||
box-shadow: 0px 3px 5px rgba(0,0,0,.02), 0px 0px 2px rgba(0,0,0,.05), 0px 1px 4px rgba(0,0,0,.08);
|
||||
border-radius: 12px;
|
||||
padding: 1rem;
|
||||
right: 2rem;
|
||||
top: 5rem;
|
||||
min-width: 15rem;
|
||||
display: none;
|
||||
-webkit-animation: scalein 0.15s linear;
|
||||
animation: scalein 0.15s linear;
|
||||
|
||||
&.layout-topbar-menu-mobile-active {
|
||||
display: block
|
||||
}
|
||||
|
||||
.layout-topbar-button {
|
||||
margin-left: 0;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
justify-content: flex-start;
|
||||
border-radius: 12px;
|
||||
padding: 1rem;
|
||||
|
||||
i {
|
||||
font-size: 1rem;
|
||||
margin-right: .5rem;
|
||||
}
|
||||
|
||||
span {
|
||||
font-weight: medium;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
63
src/assets/sass/layout/_typography.scss
Normal file
63
src/assets/sass/layout/_typography.scss
Normal file
@@ -0,0 +1,63 @@
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 1.5rem 0 1rem 0;
|
||||
font-family: inherit;
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
color: inherit;
|
||||
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
mark {
|
||||
background: #FFF8E1;
|
||||
padding: .25rem .4rem;
|
||||
border-radius: $borderRadius;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 1rem 0;
|
||||
padding: 0 2rem;
|
||||
border-left: 4px solid #90A4AE;
|
||||
}
|
||||
|
||||
hr {
|
||||
border-top: solid var(--surface-border);
|
||||
border-width: 1px 0 0 0;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 1rem 0;
|
||||
line-height: 1.5;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
11
src/assets/sass/layout/_utils.scss
Normal file
11
src/assets/sass/layout/_utils.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
.card {
|
||||
background-color: var(--surface-card);
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
border-radius: $borderRadius;
|
||||
box-shadow: 0px 3px 5px rgba(0,0,0,.02), 0px 0px 2px rgba(0,0,0,.05), 0px 1px 4px rgba(0,0,0,.08) !important;
|
||||
|
||||
&.card-w-title {
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
}
|
||||
5
src/assets/sass/layout/_variables.scss
Normal file
5
src/assets/sass/layout/_variables.scss
Normal file
@@ -0,0 +1,5 @@
|
||||
/* General */
|
||||
$fontSize:10px;
|
||||
$borderRadius:12px;
|
||||
$transitionDuration:.2s;
|
||||
$maskBg:rgba(0, 0, 0, 0.4);
|
||||
1
src/assets/sass/overrides/_layout_styles.scss
Normal file
1
src/assets/sass/overrides/_layout_styles.scss
Normal file
@@ -0,0 +1 @@
|
||||
/* Add your customizations of the layout styles here */
|
||||
1
src/assets/sass/overrides/_layout_variables.scss
Normal file
1
src/assets/sass/overrides/_layout_variables.scss
Normal file
@@ -0,0 +1 @@
|
||||
/* Add your customizations of the layout variables here */
|
||||
Reference in New Issue
Block a user