File tree Expand file tree Collapse file tree 4 files changed +45
-15
lines changed
Expand file tree Collapse file tree 4 files changed +45
-15
lines changed Original file line number Diff line number Diff line change 11# root > main {
2- margin-left : calc (60 px + 1vw );
2+ margin-left : calc (var ( --base-size-sidebar ) + 1vw );
33}
Original file line number Diff line number Diff line change 99 --bg-blue-8 : # 020d47 ;
1010 --color-warning : # e7c27b ;
1111 --color-dark-red : # 860404 ;
12+ --base-size-sidebar : 40px ;
13+ }
14+
15+ @media (min-width : 400px ) {
16+ : root {
17+ --base-size-sidebar : 60px ;
18+ }
1219}
1320
1421html ,
Original file line number Diff line number Diff line change 11nav .sidebar {
22 background-color : var (--bg-blue-4 );
3- width : 60 px ;
3+ width : var ( --base-size-sidebar ) ;
44 height : 100vh ;
55 position : fixed;
66 left : 0 ;
@@ -19,8 +19,8 @@ nav.sidebar hr {
1919}
2020
2121nav .sidebar .button {
22- width : 59 px ;
23- height : 59 px ;
22+ width : calc ( var ( --base-size-sidebar ) - 1 px ) ;
23+ height : calc ( var ( --base-size-sidebar ) - 1 px ) ;
2424 display : flex;
2525 align-items : center;
2626 justify-content : center;
@@ -37,27 +37,44 @@ nav.sidebar .white {
3737
3838aside .sidebar {
3939 position : fixed;
40- left : 59px ;
41- top : 60px ;
40+ left : calc (var (--base-size-sidebar ) - 1px );
41+ top : var (--base-size-sidebar );
42+ border-top-right-radius : calc (var (--base-size-sidebar ) / 2 );
4243}
4344
4445aside .sidebar > header {
4546 display : flex;
4647 justify-content : space-between;
4748 align-items : center;
48- height : 60 px ;
49+ height : var ( --base-size-sidebar ) ;
4950 margin : 0 1rem ;
5051}
5152
53+ aside .sidebar nav {
54+ border-bottom-width : 1px ;
55+ border-bottom-style : solid;
56+ color : 1px solid rgba (0 , 0 , 0 , 0.5 );
57+ margin : 0 1rem ;
58+ display : flex;
59+ justify-content : space-between;
60+ align-items : end;
61+ }
62+
63+ aside .sidebar .close {
64+ display : flex;
65+ justify-content : space-between;
66+ align-items : center;
67+ }
68+
5269aside .sidebar .warning {
5370 background-color : var (--color-warning );
5471 color : var (--color-dark-red );
55-
56- min- height: 50 vh ;
72+ border-bottom-color : var ( --color-dark-red );
73+ height : calc ( 100 vh - var ( --base-size-sidebar )) ;
5774}
5875
5976@media (min-width : 400px ) {
6077 aside .sidebar .warning {
61- width : 300 px ;
78+ width : calc ( 400 px - var ( --base-size-sidebar )) ;
6279 }
6380}
Original file line number Diff line number Diff line change @@ -19,11 +19,13 @@ export const Sidebar = () => {
1919 < SidebarContent class = "warning" >
2020 < header >
2121 < h1 > Under construction!</ h1 >
22- < a href = "#" >
23- < Close />
24- </ a >
2522 </ header >
26-
23+ < nav >
24+ < span > </ span >
25+ < a href = "#" class = "close" >
26+ < Close size = { 20 } />
27+ </ a >
28+ </ nav >
2729 < div style = { { padding : '1rem' } } >
2830 < p >
2931 This website is under construction and not intended for production
@@ -43,7 +45,11 @@ const SidebarContent = (props: ParentProps<{ class?: string }>) => (
4345const SidebarNav = ( ) => (
4446 < nav class = "sidebar" >
4547 < a href = "#" class = "button white" >
46- < img src = "/assets/logo.svg" class = "logo" alt = "hello.nrfcloud.com logo" />
48+ < img
49+ src = "../assets/logo.svg"
50+ class = "logo"
51+ alt = "hello.nrfcloud.com logo"
52+ />
4753 </ a >
4854 < hr />
4955 < a class = "button warning" href = "#warning" >
You can’t perform that action at this time.
0 commit comments