Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2015-08-16 00:50:27 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
ca2a3ba0e87f6f4a07888a5606e6da71bdb14b5f
ca2a3ba0
1 parent
e5a372ff
Made sidebar hierachy clearer
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
resources/assets/sass/styles.scss
resources/views/pages/sidebar-tree-list.blade.php
resources/assets/sass/styles.scss
View file @
ca2a3ba
...
...
@@ -270,11 +270,14 @@ h1, h2, h3, h4, h5, h6 {
.book-tree
.sidebar-page-list
{
list-style
:
none
;
margin
:
0
;
border-left
:
1
px
solid
#7BD06E
;
border-left
:
5
px
solid
#7BD06E
;
li
a
{
display
:
block
;
border-bottom
:
1px
solid
#3A3939
;
}
li
,
a
{
display
:
block
;
}
a
.bold
{
color
:
#EEE
!
important
;
}
...
...
@@ -291,8 +294,15 @@ h1, h2, h3, h4, h5, h6 {
.chapter
{
color
:
#D2A64B
!
important
;
}
.list-item-chapter
{
border-left
:
5px
solid
#D2A64B
;
margin
:
10px
10px
;
display
:
block
;
}
.page
{
color
:
#4599DC
!
important
;
border-left
:
5px
solid
#4599DC
;
margin
:
10px
10px
;
}
}
...
...
@@ -364,7 +374,7 @@ body.dragging, body.dragging * {
width
:
100%
;
height
:
100%
;
z-index
:
-1
;
background-color
:
rgba
(
0
,
0
,
0
,
0
.
7
);
background-color
:
rgba
(
0
,
0
,
0
,
0
.
85
);
display
:
block
;
}
}
...
...
resources/views/pages/sidebar-tree-list.blade.php
View file @
ca2a3ba
...
...
@@ -2,8 +2,8 @@
<ul
class=
"sidebar-page-list menu"
>
<li
class=
"book-header"
><a
href=
"{{$book->getUrl()}}"
class=
"book"
><i
class=
"zmdi zmdi-book"
></i>
{{$book->name}}
</a></li>
@foreach($book->children() as $bookChild)
<li>
<a
href=
"{{$bookChild->getUrl()}}"
class=
"
@if(is_a($bookChild, 'Oxbow\Chapter')) chapter @else page @endif
"
>
<li
class=
"list-item-{{is_a($bookChild, 'Oxbow\Chapter') ? 'chapter' : 'page' }}"
>
<a
href=
"{{$bookChild->getUrl()}}"
class=
"
{{is_a($bookChild, 'Oxbow\Chapter') ? 'chapter' : 'page' }}
"
>
@if(is_a($bookChild, 'Oxbow\Chapter'))
<i
class=
"zmdi zmdi-collection-bookmark chapter-toggle"
></i>
@else
...
...
@@ -15,14 +15,9 @@
@if(is_a($bookChild, 'Oxbow\Chapter')
&&
count($bookChild->pages) > 0)
<ul
class=
"menu"
>
@foreach($bookChild->pages as $page)
<li>
<a
href=
"{{$page->getUrl()}}"
class=
"@if(is_a($page, 'Oxbow\Chapter')) chapter @else page @endif"
>
@if(is_a($page, 'Oxbow\Chapter'))
<i
class=
"zmdi zmdi-collection-bookmark chapter-toggle"
></i>
@else
<i
class=
"zmdi zmdi-file-text"
></i>
@endif
{{ $page->name }}
<li
class=
"list-item-page"
>
<a
href=
"{{$page->getUrl()}}"
class=
"page"
>
<i
class=
"zmdi zmdi-file-text"
></i>
{{ $page->name }}
</a>
</li>
@endforeach
...
...
Please
register
or
sign in
to post a comment