mirror of https://github.com/Requarks/wiki.git
NGPixel
7 years ago
8 changed files with 242 additions and 1 deletions
Split View
Diff Options
-
7CHANGELOG.md
-
1client/scss/app.scss
-
100client/scss/components/collapsable-nav.scss
-
33client/scss/components/sidebar.scss
-
21controllers/pages.js
-
10libs/entries.js
-
67views/pages/all.pug
-
4views/pages/view.pug
@ -0,0 +1,100 @@ |
|||
.has-collapsable-nav { |
|||
background-color: mc('blue-grey', '50'); |
|||
} |
|||
|
|||
.collapsable-nav { |
|||
width: 300px; |
|||
background-color: mc($primary, '500'); |
|||
color: #FFF; |
|||
min-height: 80vh; |
|||
transition: all .6s ease; |
|||
|
|||
&.has-children { |
|||
width: 50px; |
|||
|
|||
li { |
|||
display: none; |
|||
} |
|||
} |
|||
|
|||
li { |
|||
display: flex; |
|||
border-top: 1px solid mc($primary, '700'); |
|||
|
|||
&.is-active { |
|||
display: flex; |
|||
height: 50px; |
|||
width: 300px; |
|||
min-width: 80vh; |
|||
@include prefix(transform, rotate(90deg) translate(0, -50px)); |
|||
transform-origin: 0 0; |
|||
|
|||
a { |
|||
height: 50px; |
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
a { |
|||
display: flex; |
|||
height: 40px; |
|||
width: 100%; |
|||
align-items: center; |
|||
padding: 0 15px; |
|||
color: #FFF; |
|||
cursor: pointer; |
|||
transition: all .4s ease; |
|||
background-color: rgba(0,0,0,0); |
|||
|
|||
i { |
|||
font-size: 14px; |
|||
margin-right: 10px; |
|||
} |
|||
|
|||
&:hover { |
|||
background-color: rgba(0,0,0,.1); |
|||
text-decoration: none; |
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
.collapsable-nav-sub { |
|||
width: 300px; |
|||
background-color: mc('blue-grey', '800'); |
|||
border-left: 1px solid mc('blue-grey', '900'); |
|||
color: #FFF; |
|||
min-height: 80vh; |
|||
|
|||
li { |
|||
display: flex; |
|||
border-top: 1px solid mc('blue-grey', '900'); |
|||
} |
|||
|
|||
a { |
|||
display: flex; |
|||
height: 40px; |
|||
width: 100%; |
|||
align-items: center; |
|||
padding: 0 15px; |
|||
color: #FFF; |
|||
cursor: pointer; |
|||
transition: all .4s ease; |
|||
background-color: rgba(0,0,0,0); |
|||
|
|||
i { |
|||
font-size: 14px; |
|||
margin-right: 10px; |
|||
} |
|||
|
|||
&:hover { |
|||
background-color: rgba(0,0,0,.1); |
|||
text-decoration: none; |
|||
} |
|||
|
|||
} |
|||
|
|||
} |
@ -0,0 +1,67 @@ |
|||
extends ../layout.pug |
|||
|
|||
block rootNavRight |
|||
i.nav-item#notifload |
|||
|
|||
block content |
|||
|
|||
#page-type-all |
|||
.container.is-fluid.has-collapsable-nav |
|||
.columns.is-gapless |
|||
|
|||
.column.is-narrow.is-hidden-touch.sidebar.is-collapsed |
|||
|
|||
aside |
|||
.sidebar-label |
|||
span NAV |
|||
ul.sidebar-menu |
|||
li |
|||
a(href='/') |
|||
i.icon-home |
|||
span Home |
|||
if !isGuest |
|||
li |
|||
a(href='/admin') |
|||
i.icon-head |
|||
span Account |
|||
else |
|||
li |
|||
a(href='/login') |
|||
i.icon-unlock |
|||
span Login |
|||
|
|||
.column.is-narrow |
|||
ul.collapsable-nav.has-children |
|||
li: a |
|||
i.icon-file |
|||
span Page 1 |
|||
li: a |
|||
i.icon-file |
|||
span Page 2 |
|||
li: a |
|||
i.icon-file |
|||
span Page 3 |
|||
li.is-active: a |
|||
i.icon-folder2 |
|||
span Page 4 |
|||
li: a |
|||
i.icon-file |
|||
span Page 5 |
|||
.column.is-narrow |
|||
ul.collapsable-nav-sub |
|||
li: a |
|||
i.icon-file |
|||
span Page 1 |
|||
li: a |
|||
i.icon-file |
|||
span Page 2 |
|||
li: a |
|||
i.icon-file |
|||
span Page 3 |
|||
li: a |
|||
i.icon-file |
|||
span Page 4 |
|||
li: a |
|||
i.icon-file |
|||
span Page 5 |
|||
|
Write
Preview
Loading…
Cancel
Save