Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
70bf9c58
Commit
70bf9c58
authored
Oct 22, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Collapse-Menu-Improvement'
parents
59805ca7
7a24c3bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
5 deletions
+31
-5
app.css
app/app.css
+20
-2
directives.js
app/shared/directives.js
+8
-2
sidebar.html
app/shared/templates/directives/sidebar.html
+3
-1
No files found.
app/app.css
View file @
70bf9c58
...
@@ -413,6 +413,20 @@ select {
...
@@ -413,6 +413,20 @@ select {
.sidebar
{
.sidebar
{
background-color
:
#fff
;
background-color
:
#fff
;
border-right
:
1px
solid
#ccc
;
border-right
:
1px
solid
#ccc
;
-webkit-transition
:
all
.2s
;
-moz-transition
:
all
.2s
;
-ms-transition
:
all
.2s
;
-o-transition
:
all
.2s
;
transition
:
all
.2s
;
}
.sidebar
.fa
{
font-size
:
18px
;
margin-right
:
10px
;
}
.sidebar
span
.menu-text
{
display
:
inline-block
;
}
}
.sidebar
.sidebar-nav.navbar-collapse
{
.sidebar
.sidebar-nav.navbar-collapse
{
...
@@ -430,6 +444,11 @@ select {
...
@@ -430,6 +444,11 @@ select {
border-bottom
:
1px
solid
#DCDCDC
;
border-bottom
:
1px
solid
#DCDCDC
;
}
}
.sidebar
ul
li
a
{
height
:
40px
;
overflow
:
hidden
;
}
.sidebar
ul
li
a
.active
{
.sidebar
ul
li
a
.active
{
background-color
:
#eee
;
background-color
:
#eee
;
}
}
...
@@ -1395,11 +1414,10 @@ table.dataTable thead .sorting:after {
...
@@ -1395,11 +1414,10 @@ table.dataTable thead .sorting:after {
.sidebar
.sidebar-nav.navbar-collapse
{
.sidebar
.sidebar-nav.navbar-collapse
{
overflow-x
:
visible
;
overflow-x
:
visible
;
overflow-y
:
scroll
;
overflow-y
:
auto
;
position
:
absolute
;
position
:
absolute
;
width
:
100%
;
width
:
100%
;
max-height
:
calc
(
85%
-
139px
);
max-height
:
calc
(
85%
-
139px
);
border-bottom
:
2px
solid
#ccc
;
}
}
footer
{
footer
{
...
...
app/shared/directives.js
View file @
70bf9c58
...
@@ -56,10 +56,16 @@ app.directive('collapseMenu', function () {
...
@@ -56,10 +56,16 @@ app.directive('collapseMenu', function () {
$scope
.
collapsed
=
false
;
$scope
.
collapsed
=
false
;
$scope
.
collapseToggle
=
function
()
{
$scope
.
collapseToggle
=
function
()
{
if
(
$scope
.
collapsed
===
false
)
{
if
(
$scope
.
collapsed
===
false
)
{
jQuery
(
".manager-view"
).
css
(
"z-index"
,
"9999"
).
css
(
"width"
,
"100%"
);
jQuery
(
"span.menu-text"
).
css
(
"display"
,
"none"
);
jQuery
(
".sidebar"
).
css
(
"width"
,
"62px"
);
jQuery
(
".manager-view"
).
css
(
"z-index"
,
"9999"
).
css
(
"width"
,
"calc(100% - 62px)"
);
jQuery
(
".sidebar footer"
).
css
(
"display"
,
"none"
);
$scope
.
collapsed
=
true
;
$scope
.
collapsed
=
true
;
}
else
{
}
else
{
jQuery
(
".manager-view"
).
css
(
"z-index"
,
"0"
).
css
(
"width"
,
"calc(100% - 250px)"
);
jQuery
(
"span.menu-text"
).
fadeIn
(
400
);
jQuery
(
".sidebar"
).
css
(
"z-index"
,
"0"
).
css
(
"width"
,
"250px"
);
jQuery
(
".manager-view"
).
css
(
"width"
,
"calc(100% - 250px)"
);
jQuery
(
".sidebar footer"
).
fadeIn
(
400
);
$scope
.
collapsed
=
false
;
$scope
.
collapsed
=
false
;
}
}
};
};
...
...
app/shared/templates/directives/sidebar.html
View file @
70bf9c58
...
@@ -7,8 +7,10 @@
...
@@ -7,8 +7,10 @@
<!--<sidebar-search></sidebar-search>-->
<!--<sidebar-search></sidebar-search>-->
<li
ui-sref-active=
"active"
>
<li
ui-sref-active=
"active"
>
<a
href=
"#/dashboard"
ng-click=
"breadcrumb(['Panel'])"
><i
class=
"fa fa-dashboard fa-fw"
></i>
<a
href=
"#/dashboard"
ng-click=
"breadcrumb(['Panel'])"
><i
class=
"fa fa-dashboard fa-fw"
></i>
Panel
</a>
<span
class=
"menu-text"
>
Panel
</span>
</a>
</li>
</li>
<li
ng-repeat=
"(key, item) in menuItems"
ng-class=
"{active: collapseVar == $index+1}"
>
{{dropDown}}
<li
ng-repeat=
"(key, item) in menuItems"
ng-class=
"{active: collapseVar == $index+1}"
>
{{dropDown}}
<a
href=
""
ng-click=
"check($index+1)"
><i
class=
"fa fa-wrench fa-fw"
></i>
{{ item[0] }}
<span
<a
href=
""
ng-click=
"check($index+1)"
><i
class=
"fa fa-wrench fa-fw"
></i>
{{ item[0] }}
<span
class=
"fa arrow"
></span></a>
class=
"fa arrow"
></span></a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment