diff --git a/Layouts/boxes layout/css/main.css b/Layouts/boxes layout/css/main.css index d5b8015..b007d04 100644 --- a/Layouts/boxes layout/css/main.css +++ b/Layouts/boxes layout/css/main.css @@ -1,65 +1,88 @@ -@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap"); * { - -webkit-box-sizing: border-box; - box-sizing: border-box; padding: 0; margin: 0; - font-family: 'Roboto', sans-serif; + box-sizing: border-box; + font-family: "Roboto", sans-serif; } :root { + font-size: clamp(1rem, 1.2vmax, 3rem); +} + +html, body { + height: 100%; scroll-behavior: smooth; } -html { - margin-left: calc(100vw - 100%); -} - body { - --accent-color: #303F9F; - --text-color: 17, 17, 17; - --foreground-color: 255, 255, 255; - background: rgba(var(--foreground-color), 1); color: rgba(var(--text-color), 1); - font-size: 16px; + background: rgba(var(--background-color), 1); +} +body, +body * { + --accent-color: #0D7377; + --text-color: 17, 17, 17; + --background-color: 255, 255, 255; + --danger-color: red; } -body[data-theme="dark"] { - --accent-color: #4a5cd3; - --foreground-color: 20, 20, 20; - --text-color: 238, 238, 238; -} - -h1, h2, h3, h4, h5 { - font-family: 'Poppins', sans-serif; - text-transform: capitalize; -} - -h1 { - font-size: 3rem; -} - -h2 { - font-size: 2rem; -} - -h3 { - font-size: 1.5rem; -} - -h4 { - font-size: 1rem; -} - -h5 { - font-size: 0.8rem; +body[data-theme=dark], +body[data-theme=dark] * { + --accent-color: #32E0C4; + --text-color: 240, 240, 240; + --text-color-light: 170, 170, 170; + --background-color: 10, 10, 10; + --danger-color: rgb(255, 106, 106); } p { - margin: 1.5rem 0; + font-size: 0.8; + max-width: 65ch; line-height: 1.7; + margin-bottom: 1.5rem; color: rgba(var(--text-color), 0.8); } +p:not(:last-of-type) { + margin-bottom: 1rem; +} + +img { + object-fit: cover; +} + +a { + color: inherit; + text-decoration: none; +} +a:focus-visible { + box-shadow: 0 0 0 0.1rem rgba(var(--text-color), 1) inset; +} + +button { + display: inline-flex; + border: none; + background-color: inherit; +} + +a:any-link:focus-visible { + outline: rgba(var(--text-color), 1) 0.1rem solid; +} + +sm-button { + --border-radius: 0.3rem; +} + +ul { + list-style: none; +} + +.flex { + display: flex; +} + +.grid { + display: grid; +} .hide { opacity: 0; @@ -70,102 +93,263 @@ p { display: none !important; } -.icon { - height: 1.2rem; - width: 1.2rem; - fill: none; - stroke: rgba(var(--text-color), 0.8); - stroke-width: 6; - overflow: visible; - stroke-linecap: round; - stroke-linejoin: round; +.no-transformations { + transform: none !important; } -#navbar { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: space-evenly; - -ms-flex-pack: space-evenly; - justify-content: space-evenly; - position: fixed; - left: 0; - right: 0; - bottom: 0; - top: auto; - border-top: solid 1px rgba(var(--text-color), 0.2); - border-right: none; - z-index: 3; - background: rgba(var(--foreground-color), 1); +.overflow-ellipsis { + width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; } -#navbar .navbar-item { - position: relative; - text-align: center; - cursor: pointer; - padding: 0.3em; - margin: 0.3em; - border-radius: 0.4em; - color: rgba(var(--text-color), 0.8); - font-size: 0.9em; +.breakable { + overflow-wrap: break-word; + word-wrap: break-word; + -ms-word-break: break-all; + word-break: break-word; + -ms-hyphens: auto; + -moz-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; +} + +.full-bleed { + grid-column: 1/4; +} + +.h1 { + font-size: 2.5rem; +} + +.h2 { + font-size: 2rem; +} + +.h3 { + font-size: 1.4rem; +} + +.h4 { + font-size: 1rem; +} + +.h5 { + font-size: 0.8rem; +} + +.uppercase { text-transform: uppercase; - width: 100%; - letter-spacing: 0.08em; - -webkit-tap-highlight-color: transparent; } -#navbar .navbar-item h5 { - font-size: 0.6em; - margin-top: 0.4em; - font-weight: 700; -} - -#navbar .active { - color: var(--accent-color); -} - -#navbar .active .icon { - stroke: var(--accent-color); -} - -#main_header { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - padding: 1rem 0; -} - -#logo { - display: -ms-grid; - display: grid; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - width: 100%; - -ms-grid-columns: auto 1fr; - grid-template-columns: auto 1fr; - gap: 0.6rem 0.6rem; - margin-right: 1rem; -} - -#logo h4 { +.capitalize { text-transform: capitalize; - font-size: 1.2rem; - font-weight: 600; } -#logo h5 { - font-family: 'Roboto', sans-serif; +.flex { + display: flex; +} + +.grid { + display: grid; +} + +.grid-3 { + grid-template-columns: 1fr auto auto; +} + +.flow-column { + grid-auto-flow: column; +} + +.gap-0-5 { + gap: 0.5rem; +} + +.gap-1 { + gap: 1rem; +} + +.gap-1-5 { + gap: 1.5rem; +} + +.gap-2 { + gap: 2rem; +} + +.gap-3 { + gap: 3rem; +} + +.text-align-right { + text-align: right; +} + +.align-start { + align-items: flex-start; +} + +.align-center { + align-items: center; +} + +.text-center { + text-align: center; +} + +.justify-start { + justify-content: start; +} + +.justify-center { + justify-content: center; +} + +.justify-right { + margin-left: auto; +} + +.align-self-center { + align-self: center; +} + +.justify-self-center { + justify-self: center; +} + +.justify-self-start { + justify-self: start; +} + +.justify-self-end { + justify-self: end; +} + +.direction-column { + flex-direction: column; +} + +.space-between { + justify-content: space-between; +} + +.w-100 { + width: 100%; +} + +.color-0-8 { + color: rgba(var(--text-color), 0.8); +} + +.weight-400 { font-weight: 400; } +.weight-500 { + font-weight: 500; +} + +.ripple { + position: absolute; + border-radius: 50%; + transform: scale(0); + background: rgba(var(--text-color), 0.16); + pointer-events: none; +} + +.interact { + position: relative; + overflow: hidden; + cursor: pointer; + -webkit-tap-highlight-color: transparent; +} + +.observe-empty-state:empty { + display: none; +} + +.observe-empty-state:not(:empty) ~ .empty-state { + display: none; +} + +.icon { + width: 1.5rem; + height: 1.5rem; + fill: rgba(var(--text-color), 0.9); +} + +.button__icon { + height: 1.2rem; + width: 1.2rem; +} +.button__icon--left { + margin-right: 0.5rem; +} +.button__icon--right { + margin-left: 0.5rem; +} + +#confirmation_popup, +#prompt_popup { + flex-direction: column; +} +#confirmation_popup h4, +#prompt_popup h4 { + font-weight: 500; + margin-bottom: 0.5rem; +} +#confirmation_popup sm-button, +#prompt_popup sm-button { + margin: 0; +} +#confirmation_popup .flex, +#prompt_popup .flex { + padding: 0; + margin-top: 1rem; +} +#confirmation_popup .flex sm-button:first-of-type, +#prompt_popup .flex sm-button:first-of-type { + margin-right: 0.6rem; + margin-left: auto; +} + +h1, h2, h3, h4.h5 { + font-family: "Poppins", sans-serif; +} + +h2 { + margin: 3rem 0 1rem 0; + text-transform: capitalize; +} + +main { + display: grid; + height: 100%; + grid-template-rows: auto 1fr auto; + grid-template-areas: "main-header" "." "side-nav"; +} + +#main_header { + grid-area: main-header; + padding: 1rem 1.5rem; + border-bottom: 1px solid rgba(var(--text-color), 0.1); +} + +#logo { + display: grid; + align-items: center; + width: 100%; + grid-template-columns: auto 1fr; + gap: 0 0.5rem; + margin-right: 1rem; +} +#logo h4 { + text-transform: capitalize; + font-size: 1rem; + font-weight: 600; +} #logo #main_logo { height: 1.4rem; width: 1.4rem; @@ -173,175 +357,126 @@ p { stroke: none; } -.toggle { - position: relative; - cursor: pointer; - z-index: 1; - padding: 0; +.right { + max-height: 100%; + overflow-y: auto; } -.toggle input[type='checkbox'] { - display: none; +#side_nav { + grid-area: side-nav; +} +#side_nav h4 { + font-size: 0.9rem; + letter-spacing: 0.08em; + text-transform: uppercase; + padding: 1.5rem; } -.toggle .switch { - overflow: hidden; - display: -webkit-inline-box; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - justify-items: center; - padding: 0.2rem; - min-height: 1.6rem; - max-height: 1.6rem; - border-radius: 0.5rem; - position: relative; - margin: 0; +.nav-list { + list-style: none; + display: flex; + justify-content: space-evenly; +} +.nav-list li { + width: 100%; } -.toggle .circle { - border-radius: 0.5rem; - -webkit-transition: -webkit-transform 0.3s; - transition: -webkit-transform 0.3s; - transition: transform 0.3s; - transition: transform 0.3s, -webkit-transform 0.3s; - fill: rgba(var(--text-color), 0.8); - overflow: visible; - stroke-linecap: round; - stroke-linejoin: round; - height: 1.2rem; - width: 1.2rem; +.nav-list__item { + display: flex; + padding: 0.8rem 1.5rem; + text-transform: capitalize; +} +.nav-list__item--active { + color: var(--accent-color); +} +.nav-list__item--active .icon { + fill: var(--accent-color); } -.toggle .circle:first-of-type { - margin-bottom: 0.4rem; +.right { + padding: 1.5rem; } - -.toggle .circle line { - stroke: rgba(var(--text-color), 0.8); - stroke-width: 6; -} - -.toggle input:checked ~ .switch .circle { - -webkit-transform: translateY(-1.7rem); - transform: translateY(-1.7rem); +.right h1 { + margin-bottom: 1.5rem; } .page { - padding: 2rem 0; - padding-bottom: 4rem; -} - -.options-tab { - display: -webkit-box; - display: -ms-flexbox; display: flex; - margin-top: 1rem; - margin-bottom: 1rem; - -ms-flex-wrap: wrap; - flex-wrap: wrap; + flex-direction: column; + padding-bottom: 3rem; } -.options-tab .option { - display: -webkit-inline-box; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - border-radius: 0.4rem; - padding: 1.5rem; - margin-right: 1rem; - margin-bottom: 1rem; - width: 9rem; - border: solid 1px rgba(var(--text-color), 0.2); - text-transform: capitalize; - cursor: pointer; - -webkit-tap-highlight-color: transparent; -} +@media screen and (max-width: 640px) { + main { + grid-template-rows: auto 1fr; + grid-template-columns: 1fr; + } -.options-tab .option .icon { - background: rgba(var(--text-color), 0.1); - height: 2.8rem; - width: 2.8rem; - padding: 0.8rem; - border-radius: 2rem; - margin-bottom: 1rem; - stroke: rgba(var(--text-color), 0.4); + .nav-list__item { + flex-direction: column; + justify-content: center; + align-items: center; + padding: 0.4rem; + } + .nav-list__item span { + font-size: 0.8rem; + margin-top: 0.3rem; + } } +@media screen and (min-width: 640px) { + sm-popup { + --width: 32rem; + } -.options-tab .option h4 { - font-weight: 400; - font-size: 0.9rem; -} + main { + grid-template-columns: 14rem minmax(0, 1fr); + grid-template-rows: auto 1fr; + grid-template-areas: "main-header main-header" "side-nav ."; + } -#home_page h1 { - margin-top: 3vw; - font-weight: 600; -} + .nav-list { + flex-direction: column; + } -#home_page p { - margin-bottom: 3rem; -} + .nav-list__item { + align-items: center; + justify-content: start; + } + .nav-list__item--active { + background: rgba(var(--text-color), 0.06); + } + .nav-list__item .icon { + margin-right: 0.5rem; + } -#home_page h2 { - margin-bottom: 1rem; -} + .right { + display: grid; + grid-template-columns: 1fr 90% 1fr; + } + .right > * { + grid-column: 2/3; + } -@media only screen and (min-width: 640px) { - body { - padding: 1rem 6vw; - margin-left: 6rem; - } - p { - max-width: 40rem; - } - #navbar { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-align: stretch; - -ms-flex-align: stretch; - align-items: stretch; - left: 0; - bottom: 0; - top: 0; - right: auto; - width: 6rem; - border-top: none; - border-right: solid 1px rgba(var(--text-color), 0.2); - } - #navbar .navbar-item { - width: auto; - padding: 1.4em 0; - margin: 0.6em; - } - #navbar .navbar-item .icon { - height: 1.4rem; - width: 1.4rem; - } - #navbar .navbar-item h5 { - font-size: 0.8em; - } - #navbar .navbar-item:hover .icon { - stroke: rgba(var(--text-color), 1); - } - #navbar .navbar-item:hover h5 { - color: rgba(var(--text-color), 1); - } - #navbar .navbar-item.active:hover .icon { - stroke: var(--accent-color); - } - #navbar .navbar-item.active:hover h5 { - color: var(--accent-color); + .page__title { + font-size: 2.5rem; } } -/*# sourceMappingURL=main.css.map */ \ No newline at end of file +@media (any-hover: hover) { + ::-webkit-scrollbar { + width: 0.5rem; + height: 0.5rem; + } + + ::-webkit-scrollbar-thumb { + background: rgba(var(--text-color), 0.3); + border-radius: 1rem; + } + ::-webkit-scrollbar-thumb:hover { + background: rgba(var(--text-color), 0.5); + } + + .nav-list__item:hover { + background: rgba(var(--text-color), 0.1); + cursor: pointer; + } +} \ No newline at end of file diff --git a/Layouts/boxes layout/css/main.min.css b/Layouts/boxes layout/css/main.min.css new file mode 100644 index 0000000..5982293 --- /dev/null +++ b/Layouts/boxes layout/css/main.min.css @@ -0,0 +1 @@ +.hide,.ripple{pointer-events:none}.nav-list,ul{list-style:none}*{padding:0;margin:0;box-sizing:border-box;font-family:Roboto,sans-serif}:root{font-size:clamp(1rem,1.2vmax,3rem)}body,html{height:100%;scroll-behavior:smooth}body{color:rgba(var(--text-color),1);background:rgba(var(--background-color),1)}body,body *{--accent-color:#0D7377;--text-color:17,17,17;--background-color:255,255,255;--danger-color:red}body[data-theme=dark],body[data-theme=dark] *{--accent-color:#32E0C4;--text-color:240,240,240;--text-color-light:170,170,170;--background-color:10,10,10;--danger-color:rgb(255, 106, 106)}p{font-size:.8;max-width:65ch;line-height:1.7;margin-bottom:1.5rem;color:rgba(var(--text-color),.8)}p:not(:last-of-type){margin-bottom:1rem}img{object-fit:cover}a{color:inherit;text-decoration:none}a:focus-visible{box-shadow:0 0 0 .1rem rgba(var(--text-color),1) inset}button{display:inline-flex;border:none;background-color:inherit}a:any-link:focus-visible{outline:solid rgba(var(--text-color),1)}sm-button{--border-radius:0.3rem}.hide{opacity:0}.hide-completely{display:none!important}.no-transformations{transform:none!important}.overflow-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.breakable{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-ms-hyphens:auto;-moz-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.full-bleed{grid-column:1/4}.h1{font-size:2.5rem}.h2{font-size:2rem}.h3{font-size:1.4rem}#logo h4,.h4{font-size:1rem}.h5{font-size:.8rem}.uppercase{text-transform:uppercase}#logo h4,.capitalize,h2{text-transform:capitalize}.flex{display:flex}.grid{display:grid}.grid-3{grid-template-columns:1fr auto auto}.flow-column{grid-auto-flow:column}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}.gap-1-5{gap:1.5rem}.gap-2{gap:2rem}.gap-3{gap:3rem}.text-align-right{text-align:right}.align-start{align-items:flex-start}.align-center{align-items:center}.text-center{text-align:center}.justify-start{justify-content:start}.justify-center{justify-content:center}.justify-right{margin-left:auto}.align-self-center{align-self:center}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.direction-column{flex-direction:column}.space-between{justify-content:space-between}.w-100{width:100%}.color-0-8{color:rgba(var(--text-color),.8)}.weight-400{font-weight:400}.weight-500{font-weight:500}.ripple{position:absolute;border-radius:50%;transform:scale(0);background:rgba(var(--text-color),.16)}.interact{position:relative;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent}.observe-empty-state:empty{display:none}.observe-empty-state:not(:empty)~.empty-state{display:none}#logo,main{display:grid}.icon{width:1.5rem;height:1.5rem;fill:rgba(var(--text-color),.9)}.button__icon{height:1.2rem;width:1.2rem}.button__icon--left{margin-right:.5rem}.button__icon--right{margin-left:.5rem}#confirmation_popup,#prompt_popup{flex-direction:column}#confirmation_popup h4,#prompt_popup h4{font-weight:500;margin-bottom:.5rem}#confirmation_popup sm-button,#prompt_popup sm-button{margin:0}#confirmation_popup .flex,#prompt_popup .flex{padding:0;margin-top:1rem}#confirmation_popup .flex sm-button:first-of-type,#prompt_popup .flex sm-button:first-of-type{margin-right:.6rem;margin-left:auto}h1,h2,h3,h4.h5{font-family:Poppins,sans-serif}h2{margin:3rem 0 1rem}main{height:100%;grid-template-rows:auto 1fr auto;grid-template-areas:"main-header" "." "side-nav"}#main_header{grid-area:main-header;padding:1rem 1.5rem;border-bottom:1px solid rgba(var(--text-color),.1)}#logo{align-items:center;width:100%;grid-template-columns:auto 1fr;gap:0 .5rem;margin-right:1rem}#logo h4{font-weight:600}#logo #main_logo{height:1.4rem;width:1.4rem;fill:rgba(var(--text-color),1);stroke:none}#side_nav{grid-area:side-nav}#side_nav h4{font-size:.9rem;letter-spacing:.08em;text-transform:uppercase;padding:1.5rem}.nav-list{display:flex;justify-content:space-evenly}.nav-list li{width:100%}.nav-list__item{display:flex;padding:.8rem 1.5rem;text-transform:capitalize}.nav-list__item--active{color:var(--accent-color)}.nav-list__item--active .icon{fill:var(--accent-color)}.right{max-height:100%;overflow-y:auto;padding:1.5rem}.right h1{margin-bottom:1.5rem}.page{display:flex;flex-direction:column;padding-bottom:3rem}@media screen and (max-width:640px){main{grid-template-rows:auto 1fr;grid-template-columns:1fr}.nav-list__item{flex-direction:column;justify-content:center;align-items:center;padding:.4rem}.nav-list__item span{font-size:.8rem;margin-top:.3rem}}@media screen and (min-width:640px){sm-popup{--width:32rem}main{grid-template-columns:14rem minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"main-header main-header" "side-nav ."}.nav-list{flex-direction:column}.nav-list__item{align-items:center;justify-content:start}.nav-list__item--active{background:rgba(var(--text-color),.06)}.nav-list__item .icon{margin-right:.5rem}.right{display:grid;grid-template-columns:1fr 90% 1fr}.right>*{grid-column:2/3}.page__title{font-size:2.5rem}}@media (any-hover:hover){::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background:rgba(var(--text-color),.3);border-radius:1rem}::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-color),.5)}.nav-list__item:hover{background:rgba(var(--text-color),.1);cursor:pointer}} \ No newline at end of file diff --git a/Layouts/boxes layout/css/main.scss b/Layouts/boxes layout/css/main.scss index cd9d2cd..dacfd5b 100644 --- a/Layouts/boxes layout/css/main.scss +++ b/Layouts/boxes layout/css/main.scss @@ -1,52 +1,79 @@ -@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap'); *{ - box-sizing: border-box; padding: 0; margin: 0; + box-sizing: border-box; font-family: 'Roboto', sans-serif; } :root{ + font-size: clamp(1rem, 1.2vmax, 3rem); +} +html, body{ + height: 100%; scroll-behavior: smooth; } -html{ - margin-left: calc(100vw - 100%); -} -body{ - --accent-color: #303F9F; - --text-color: 17, 17, 17; - --foreground-color: 255, 255, 255; - background: rgba(var(--foreground-color), 1); +body { + &, + *{ + --accent-color: #0D7377; + --text-color: 17, 17, 17; + --background-color: 255, 255, 255; + --danger-color: red; + } color: rgba(var(--text-color), 1); - font-size: 16px; + background: rgba(var(--background-color), 1); } -body[data-theme="dark"]{ - --accent-color: #4a5cd3; - --foreground-color: 20, 20, 20; - --text-color: 238, 238, 238; +body[data-theme='dark']{ + &, + *{ + --accent-color: #32E0C4; + --text-color: 240, 240, 240; + --text-color-light: 170, 170, 170; + --background-color: 10, 10, 10; + --danger-color: rgb(255, 106, 106); + } } -h1, h2, h3, h4, h5{ - font-family: 'Poppins', sans-serif; - text-transform: capitalize; -} -h1{ - font-size: 3rem; -} -h2{ - font-size: 2rem; -} -h3{ - font-size: 1.5rem; -} -h4{ - font-size: 1rem; -} -h5{ - font-size: 0.8rem; -} -p{ - margin: 1.5rem 0; +p { + font-size: 0.8; + max-width: 65ch; line-height: 1.7; + margin-bottom: 1.5rem; color: rgba(var(--text-color), 0.8); + &:not(:last-of-type){ + margin-bottom: 1rem; + } +} +img{ + object-fit: cover; +} + +a{ + color: inherit; + text-decoration: none; + &:focus-visible{ + box-shadow: 0 0 0 0.1rem rgba(var(--text-color), 1) inset; + } +} + +button{ + display: inline-flex; + border: none; + background-color: inherit; +} + +a:any-link:focus-visible{ + outline: rgba(var(--text-color), 1) 0.1rem solid; +} +sm-button{ + --border-radius: 0.3rem; +} +ul{ + list-style: none; +} +.flex{ + display: flex; +} +.grid{ + display: grid; } .hide{ opacity: 0; @@ -55,76 +82,212 @@ p{ .hide-completely{ display: none !important; } +.no-transformations{ + transform: none !important; +} +.overflow-ellipsis{ + width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.breakable{ + overflow-wrap: break-word; + word-wrap: break-word; + -ms-word-break: break-all; + word-break: break-word; + -ms-hyphens: auto; + -moz-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; +} +.full-bleed{ + grid-column: 1/4; +} +.h1{ + font-size: 2.5rem; +} +.h2{ + font-size: 2rem; +} +.h3{ + font-size: 1.4rem; +} +.h4{ + font-size: 1rem; +} +.h5{ + font-size: 0.8rem; +} + +.uppercase{ + text-transform: uppercase; +} +.capitalize{ + text-transform: capitalize; +} +.flex{ + display: flex; +} +.grid{ + display: grid; +} +.grid-3{ + grid-template-columns: 1fr auto auto; +} +.flow-column{ + grid-auto-flow: column; +} +.gap-0-5{ + gap: 0.5rem; +} +.gap-1{ + gap: 1rem; +} +.gap-1-5{ + gap: 1.5rem; +} +.gap-2{ + gap: 2rem; +} +.gap-3{ + gap: 3rem; +} +.text-align-right{ + text-align: right; +} +.align-start{ + align-items: flex-start; +} +.align-center{ + align-items: center; +} +.text-center{ + text-align: center; +} +.justify-start{ + justify-content: start; +} +.justify-center{ + justify-content: center; +} +.justify-right{ + margin-left: auto; +} +.align-self-center{ + align-self: center; +} +.justify-self-center{ + justify-self: center; +} +.justify-self-start{ + justify-self: start; +} +.justify-self-end{ + justify-self: end; +} +.direction-column{ + flex-direction: column; +} +.space-between{ + justify-content: space-between; +} +.w-100{ + width: 100%; +} +.color-0-8{ + color: rgba(var(--text-color), 0.8); +} +.weight-400{ + font-weight: 400; +} +.weight-500{ + font-weight: 500; +} +.ripple{ + position: absolute; + border-radius: 50%; + transform: scale(0); + background: rgba(var(--text-color), 0.16); + pointer-events: none; +} +.interact{ + position: relative; + overflow: hidden; + cursor: pointer; + -webkit-tap-highlight-color: transparent; +} +.observe-empty-state:empty{ + display: none; +} +.observe-empty-state:not(:empty) ~ .empty-state{ + display: none; +} .icon{ + width: 1.5rem; + height: 1.5rem; + fill: rgba(var(--text-color), 0.9); +} +.button__icon{ height: 1.2rem; width: 1.2rem; - fill: none; - stroke: rgba(var(--text-color), 0.8); - stroke-width: 6; - overflow: visible; - stroke-linecap: round; - stroke-linejoin: round; + &--left{ + margin-right: 0.5rem; + } + &--right{ + margin-left: 0.5rem; + } } -#navbar{ - display: flex; - flex-direction: row; - align-items: center; - justify-content: space-evenly; - position: fixed; - left: 0; - right: 0; - bottom: 0; - top: auto; - border-top: solid 1px rgba(var(--text-color), 0.2); - border-right: none; - z-index: 3; - background: rgba(var(--foreground-color), 1); - .navbar-item{ - position: relative; - text-align: center; - cursor: pointer; - padding: 0.3em; - margin: 0.3em; - border-radius: 0.4em; - color: rgba(var(--text-color), 0.8); - font-size: 0.9em; - text-transform: uppercase; - width: 100%; - letter-spacing: 0.08em; - -webkit-tap-highlight-color: transparent; - h5{ - font-size: 0.6em; - margin-top: 0.4em; - font-weight: 700; - } - } - .active{ - color: var(--accent-color); - .icon{ - stroke: var(--accent-color); +#confirmation_popup, +#prompt_popup { + flex-direction: column; + h4 { + font-weight: 500; + margin-bottom: 0.5rem; + } + sm-button{ + margin: 0; + } + .flex { + padding: 0; + margin-top: 1rem; + sm-button:first-of-type { + margin-right: 0.6rem; + margin-left: auto; } } } +h1,h2,h3,h4.h5{ + font-family: 'Poppins', sans-serif; +} +h2{ + margin: 3rem 0 1rem 0; + text-transform: capitalize; +} +main{ + display: grid; + height: 100%; + grid-template-rows: auto 1fr auto; + grid-template-areas: 'main-header' '.' 'side-nav'; + +} #main_header{ - display: flex; - padding: 1rem 0; + grid-area: main-header; + padding: 1rem 1.5rem; + border-bottom: 1px solid rgba(var(--text-color), .1); } #logo{ display: grid; align-items: center; width: 100%; grid-template-columns: auto 1fr; - gap: 0.6rem 0.6rem; + gap: 0 0.5rem; margin-right: 1rem; h4{ text-transform: capitalize; - font-size: 1.2rem; + font-size: 1rem; font-weight: 600; } - h5{ - font-family: 'Roboto', sans-serif; - font-weight: 400; - } #main_logo{ height: 1.4rem; width: 1.4rem; @@ -132,141 +295,113 @@ p{ stroke: none; } } -.toggle{ - position: relative; - cursor: pointer; - z-index: 1; - padding: 0; - input[type='checkbox']{ - display: none; +.right{ + max-height: 100%; + overflow-y: auto; +} +#side_nav{ + grid-area: side-nav; + h4{ + font-size: 0.9rem; + letter-spacing: 0.08em; + text-transform: uppercase; + padding: 1.5rem; } - .switch{ - overflow: hidden; - display: inline-flex; - flex-direction: column; - justify-items: center; - padding: 0.2rem; - min-height: 1.6rem; - max-height: 1.6rem; - border-radius: 0.5rem; - position: relative; - margin: 0; +} +.nav-list{ + list-style: none; + display: flex; + justify-content: space-evenly; + li{ + width: 100%; } - .circle{ - border-radius: 0.5rem; - transition: transform 0.3s; - &:first-of-type{ - margin-bottom: 0.4rem; - } - fill: rgba(var(--text-color), 0.8); - overflow: visible; - stroke-linecap: round; - stroke-linejoin: round; - height: 1.2rem; - width: 1.2rem; - line{ - stroke: rgba(var(--text-color), 0.8); - stroke-width: 6; +} +.nav-list__item{ + display: flex; + padding: 0.8rem 1.5rem; + text-transform: capitalize; + &--active{ + color: var(--accent-color); + .icon{ + fill: var(--accent-color); } } - input:checked ~ .switch .circle{ - transform: translateY(-1.7rem); +} +.right{ + padding: 1.5rem; + h1{ + margin-bottom: 1.5rem; } } .page{ - padding: 2rem 0; - padding-bottom: 4rem; -} -.options-tab{ display: flex; - margin-top: 1rem; - margin-bottom: 1rem; - flex-wrap: wrap; - .option{ - display: inline-flex; + flex-direction: column; + padding-bottom: 3rem; +} +@media screen and (max-width: 640px){ + main{ + grid-template-rows: auto 1fr; + grid-template-columns: 1fr; + } + .nav-list__item{ flex-direction: column; - border-radius: 0.4rem; - padding: 1.5rem; - margin-right: 1rem; - margin-bottom: 1rem; - width: 9rem; - border: solid 1px rgba(var(--text-color), 0.2); - text-transform: capitalize; - cursor: pointer; - -webkit-tap-highlight-color: transparent; - .icon{ - background: rgba(var(--text-color), 0.1); - height: 2.8rem; - width: 2.8rem; - padding: 0.8rem; - border-radius: 2rem; - margin-bottom: 1rem; - stroke: rgba(var(--text-color), 0.4); - } - h4{ - font-weight: 400; - font-size: 0.9rem; - } - } -} -#home_page{ - h1{ - margin-top: 3vw; - font-weight: 600; - } - p{ - margin-bottom: 3rem; - } - h2{ - margin-bottom: 1rem; - } -} -@media only screen and (min-width: 640px){ - body{ - padding: 1rem 6vw; - margin-left: 6rem; - } - p{ - max-width: 40rem; - } - #navbar{ justify-content: center; - flex-direction: column; - align-items: stretch; - left: 0; - bottom: 0; - top: 0; - right: auto; - width: 6rem; - border-top: none; - border-right: solid 1px rgba(var(--text-color), 0.2); - .navbar-item{ - width: auto; - padding: 1.4em 0; - margin: 0.6em; - .icon{ - height: 1.4rem; - width: 1.4rem; - } - h5{ - font-size: 0.8em; - } - &:hover{ - .icon{ - stroke: rgba(var(--text-color), 1); - } - h5{ - color: rgba(var(--text-color), 1); - } - } - &.active:hover{ - .icon{ - stroke: var(--accent-color); - } - h5{ - color: var(--accent-color); - } - } + align-items: center; + padding: 0.4rem; + span{ + font-size: 0.8rem; + margin-top: 0.3rem; } } +} +@media screen and (min-width: 640px){ + sm-popup{ + --width: 32rem; + } + main{ + grid-template-columns: 14rem minmax(0, 1fr); + grid-template-rows: auto 1fr; + grid-template-areas: 'main-header main-header' 'side-nav .'; + } + .nav-list{ + flex-direction: column; + } + .nav-list__item{ + align-items: center; + justify-content: start; + &--active{ + background: rgba(var(--text-color), .06); + } + .icon{ + margin-right: 0.5rem; + } + } + .right{ + display: grid; + grid-template-columns: 1fr 90% 1fr; + & > * { + grid-column: 2/3; + } + } + .page__title{ + font-size: 2.5rem; + } +} +@media (any-hover: hover){ + ::-webkit-scrollbar{ + width: 0.5rem; + height: 0.5rem; + } + + ::-webkit-scrollbar-thumb{ + background: rgba(var(--text-color), 0.3); + border-radius: 1rem; + &:hover{ + background: rgba(var(--text-color), 0.5); + } + } + .nav-list__item:hover{ + background: rgba(var(--text-color), .1); + cursor: pointer; + } } \ No newline at end of file diff --git a/Layouts/boxes layout/index.html b/Layouts/boxes layout/index.html index 682a063..3042abe 100644 --- a/Layouts/boxes layout/index.html +++ b/Layouts/boxes layout/index.html @@ -6,131 +6,82 @@