rails_modular_admin 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +71 -0
- data/Rakefile +34 -0
- data/app/assets/config/rails_modular_admin_manifest.js +2 -0
- data/app/assets/javascripts/index.js +87 -0
- data/app/assets/javascripts/rails_modular_admin.js +3 -0
- data/app/assets/javascripts/rails_modular_admin/_common/_helpers/code-helper.js +36 -0
- data/app/assets/javascripts/rails_modular_admin/_common/_helpers/for-helper.js +8 -0
- data/app/assets/javascripts/rails_modular_admin/_common/_helpers/is-helper.js +98 -0
- data/app/assets/javascripts/rails_modular_admin/_common/_helpers/times-helper.js +11 -0
- data/app/assets/javascripts/rails_modular_admin/_common/animations/animations.js +14 -0
- data/app/assets/javascripts/rails_modular_admin/_common/items-list/items-list.js +19 -0
- data/app/assets/javascripts/rails_modular_admin/_common/nprogress/nprogress.js +9 -0
- data/app/assets/javascripts/rails_modular_admin/_common/sameheight-items/sameheight-items.js +44 -0
- data/app/assets/javascripts/rails_modular_admin/app.js +1429 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/editor/editor-helper.js +10 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/editor/editor.js +34 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/header/nav/nav.js +14 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/modals/modal-media/modal-media.js +23 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/sidebar/customize/customize.js +155 -0
- data/app/assets/javascripts/rails_modular_admin/app/_common/sidebar/sidebar.js +38 -0
- data/app/assets/javascripts/rails_modular_admin/app/charts/charts-flot/charts-flot.js +329 -0
- data/app/assets/javascripts/rails_modular_admin/app/charts/charts-morris/charts-morris.js +125 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/history/history.js +145 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/items/items.js +41 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/sales-breakdown/sales-breakdown.js +37 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/sales-by-countries/sales-by-countries.js +50 -0
- data/app/assets/javascripts/rails_modular_admin/app/dashboard/tasks/tasks.js +13 -0
- data/app/assets/javascripts/rails_modular_admin/app/forms/input-groups/input-groups.js +14 -0
- data/app/assets/javascripts/rails_modular_admin/app/items/editor/item-editor.js +34 -0
- data/app/assets/javascripts/rails_modular_admin/app/items/list/items-list.js +44 -0
- data/app/assets/javascripts/rails_modular_admin/app/pages/error.js +18 -0
- data/app/assets/javascripts/rails_modular_admin/auth/login/login.js +35 -0
- data/app/assets/javascripts/rails_modular_admin/auth/reset/reset.js +31 -0
- data/app/assets/javascripts/rails_modular_admin/auth/signup/signup.js +88 -0
- data/app/assets/javascripts/rails_modular_admin/config.js +51 -0
- data/app/assets/javascripts/rails_modular_admin/main.js +16 -0
- data/app/assets/javascripts/rails_modular_admin/vendor.js +60485 -0
- data/app/assets/stylesheets/rails_modular_admin.scss +1 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/_styles/_mixins.scss +103 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/_styles/layout.scss +74 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/_styles/misc.scss +115 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/_styles/typography.scss +60 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/alert/alert.scss +27 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/animations/animations.scss +4 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/button/button.scss +117 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/card/card.scss +200 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/chart/chart.scss +9 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/dropdown/dropdown.scss +28 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/flex/flex.scss +14 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/form/form.scss +235 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/images-container/images-container.scss +129 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/items-list/items-list.scss +388 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/logo/logo.scss +46 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/modal/modal-tabs.scss +27 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/navigation/navigation.scss +114 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/nprogress/nprogress.scss +22 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/pagination/pagination.scss +20 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/sameheight-items/sameheight-items.scss +5 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/scrollbar/scrollbar.scss +24 -0
- data/app/assets/stylesheets/rails_modular_admin/_common/table/table.scss +12 -0
- data/app/assets/stylesheets/rails_modular_admin/_main.scss +41 -0
- data/app/assets/stylesheets/rails_modular_admin/_themes/blue-theme.scss +1 -0
- data/app/assets/stylesheets/rails_modular_admin/_themes/custom-theme.scss +0 -0
- data/app/assets/stylesheets/rails_modular_admin/_themes/green-theme.scss +10 -0
- data/app/assets/stylesheets/rails_modular_admin/_themes/orange-theme.scss +12 -0
- data/app/assets/stylesheets/rails_modular_admin/_themes/purple-theme.scss +6 -0
- data/app/assets/stylesheets/rails_modular_admin/_themes/red-theme.scss +11 -0
- data/app/assets/stylesheets/rails_modular_admin/_themes/seagreen-theme.scss +9 -0
- data/app/assets/stylesheets/rails_modular_admin/_variables.scss +109 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/editor/editor.scss +28 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/footer/footer.scss +68 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/buttons/buttons.scss +30 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/collapse/collapse.scss +23 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/header.scss +33 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/nav.scss +64 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/notifications/notifications.scss +126 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/nav/profile/profile.scss +93 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/header/search/search.scss +68 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/modals/modal-media/modal-media.scss +56 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/modals/modals.scss +19 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/customize/customize.scss +157 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/header/header.scss +14 -0
- data/app/assets/stylesheets/rails_modular_admin/app/_common/sidebar/sidebar.scss +240 -0
- data/app/assets/stylesheets/rails_modular_admin/app/app.scss +72 -0
- data/app/assets/stylesheets/rails_modular_admin/app/charts/charts-flot/charts-flot.scss +18 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/dashboard.scss +7 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/history/history.scss +6 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/items/items-header.scss +81 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/items/items-list.scss +102 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/sales-breakdown/sales-breakdown.scss +7 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/sales-by-countries/sales-by-countries.scss +14 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/stats/stats.scss +70 -0
- data/app/assets/stylesheets/rails_modular_admin/app/dashboard/tasks/tasks.scss +47 -0
- data/app/assets/stylesheets/rails_modular_admin/app/items/editor/item-editor.scss +3 -0
- data/app/assets/stylesheets/rails_modular_admin/app/items/list/items-list.scss +330 -0
- data/app/assets/stylesheets/rails_modular_admin/app/pages/error.scss +73 -0
- data/app/assets/stylesheets/rails_modular_admin/app/pages/screenful/screenful.scss +101 -0
- data/app/assets/stylesheets/rails_modular_admin/app/tables/responsive-tables/responsive-tables.scss +77 -0
- data/app/assets/stylesheets/rails_modular_admin/application.scss +26 -0
- data/app/assets/stylesheets/rails_modular_admin/auth/auth.scss +72 -0
- data/app/controllers/rails_modular_admin/application_controller.rb +5 -0
- data/app/helpers/rails_modular_admin/application_helper.rb +4 -0
- data/app/jobs/rails_modular_admin/application_job.rb +4 -0
- data/app/mailers/rails_modular_admin/application_mailer.rb +6 -0
- data/app/models/rails_modular_admin/application_record.rb +5 -0
- data/app/views/layouts/rails_modular_admin/application.html.erb +16 -0
- data/config/initializers/assets.rb +1 -0
- data/config/routes.rb +2 -0
- data/lib/generators/rails_modular_admin/USAGE +8 -0
- data/lib/generators/rails_modular_admin/install_generator.rb +12 -0
- data/lib/generators/rails_modular_admin/templates/custom-theme.scss +14 -0
- data/lib/rails_modular_admin.rb +11 -0
- data/lib/rails_modular_admin/engine.rb +5 -0
- data/lib/rails_modular_admin/version.rb +3 -0
- data/lib/tasks/rails_modular_admin_tasks.rake +47 -0
- metadata +205 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
.header .header-block-search {
|
2
|
+
$line-height: $header-height - 30px;
|
3
|
+
margin-right: auto;
|
4
|
+
|
5
|
+
// float: left;
|
6
|
+
padding-left: $content-padding-x-md;
|
7
|
+
|
8
|
+
@include media-down(sm) {
|
9
|
+
padding-left: $content-padding-x-xs;
|
10
|
+
display: none;
|
11
|
+
}
|
12
|
+
|
13
|
+
@include media(md) {
|
14
|
+
padding-left: $content-padding-x-sm;
|
15
|
+
}
|
16
|
+
|
17
|
+
@include media(lg) {
|
18
|
+
padding-left: $content-padding-x-md;
|
19
|
+
}
|
20
|
+
|
21
|
+
@include media-up(xl) {
|
22
|
+
padding-left: $content-padding-x-lg;
|
23
|
+
}
|
24
|
+
|
25
|
+
& > form {
|
26
|
+
float: right;
|
27
|
+
|
28
|
+
@include media-down(sm) {
|
29
|
+
padding-left: 0;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.input-container {
|
34
|
+
position: relative;
|
35
|
+
color: $color-text-light;
|
36
|
+
|
37
|
+
i {
|
38
|
+
position: absolute;
|
39
|
+
pointer-events: none;
|
40
|
+
display: block;
|
41
|
+
height: $line-height;
|
42
|
+
line-height: $line-height;
|
43
|
+
left: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
input {
|
47
|
+
background-color: transparent;
|
48
|
+
border: none;
|
49
|
+
padding-left: 25px;
|
50
|
+
height: 40px;
|
51
|
+
max-width: 150px;
|
52
|
+
|
53
|
+
@include media-down(sm) {
|
54
|
+
max-width: 140px;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
// .underline {
|
59
|
+
// &:extend(.underline-animation);
|
60
|
+
// }
|
61
|
+
|
62
|
+
|
63
|
+
input:focus + .underline {
|
64
|
+
transform: scaleX(1);
|
65
|
+
}
|
66
|
+
|
67
|
+
}
|
68
|
+
}
|
data/app/assets/stylesheets/rails_modular_admin/app/_common/modals/modal-media/modal-media.scss
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
#modal-media {
|
2
|
+
.modal-body {
|
3
|
+
min-height: 250px;
|
4
|
+
|
5
|
+
}
|
6
|
+
|
7
|
+
.modal-tab-content {
|
8
|
+
min-height: 300px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.images-container {
|
12
|
+
padding: 15px;
|
13
|
+
text-align: center;
|
14
|
+
|
15
|
+
.image-container {
|
16
|
+
margin: 0 auto 10px auto;
|
17
|
+
cursor: pointer;
|
18
|
+
transition: all 0.3s ease;
|
19
|
+
display: inline-block;
|
20
|
+
float: none;
|
21
|
+
|
22
|
+
&:hover {
|
23
|
+
border-color: fade-out($color-primary, 0.5);
|
24
|
+
}
|
25
|
+
|
26
|
+
&.active {
|
27
|
+
border-color: fade-out($color-primary, 0.5);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.upload-container {
|
33
|
+
padding: 15px;
|
34
|
+
|
35
|
+
.dropzone {
|
36
|
+
position: relative;
|
37
|
+
border: 2px dashed $color-primary;
|
38
|
+
height: 270px;
|
39
|
+
|
40
|
+
.dz-message-block {
|
41
|
+
position: absolute;
|
42
|
+
top: 50%;
|
43
|
+
left: 50%;
|
44
|
+
transform: translateY(-50%) translateX(-50%);
|
45
|
+
|
46
|
+
.dz-message {
|
47
|
+
margin: 0;
|
48
|
+
font-size: 24px;
|
49
|
+
color: $color-primary;
|
50
|
+
width: 230px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.modal {
|
2
|
+
|
3
|
+
.modal-content {
|
4
|
+
border-radius: 0;
|
5
|
+
}
|
6
|
+
|
7
|
+
// MOdal tabs are defined in _common/modal/modal.scss
|
8
|
+
|
9
|
+
.modal-header {
|
10
|
+
background-color: $color-primary;
|
11
|
+
color: #ffffff;
|
12
|
+
}
|
13
|
+
|
14
|
+
.modal-footer {
|
15
|
+
.btn {
|
16
|
+
margin-bottom: 0;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,157 @@
|
|
1
|
+
.customize {
|
2
|
+
// height: 200px;
|
3
|
+
width: 100%;
|
4
|
+
color: rgba(255, 255, 255, 0.5);
|
5
|
+
padding: 5px 15px;
|
6
|
+
text-align: center;
|
7
|
+
|
8
|
+
.customize-header{
|
9
|
+
margin-bottom: 10px;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
#customize-menu {
|
14
|
+
position: fixed;
|
15
|
+
bottom: 0;
|
16
|
+
left: 0;
|
17
|
+
width: $sidebar-width;
|
18
|
+
|
19
|
+
@include media-down(sm) {
|
20
|
+
|
21
|
+
}
|
22
|
+
|
23
|
+
.sidebar-open & {
|
24
|
+
@include media-down(md) {
|
25
|
+
left: 0;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@include media-down(md) {
|
30
|
+
// position: absolute;
|
31
|
+
transition: left 0.3s ease;
|
32
|
+
left: -$sidebar-width;
|
33
|
+
}
|
34
|
+
|
35
|
+
& > li {
|
36
|
+
& > a {
|
37
|
+
background-color: $sidebar-color-primary;
|
38
|
+
border-top: 1px solid fade-out($sidebar-color-secondary, 0.5);
|
39
|
+
}
|
40
|
+
|
41
|
+
& > a:hover,
|
42
|
+
&.open > a {
|
43
|
+
background-color: $sidebar-color-secondary;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.customize {
|
48
|
+
width: $sidebar-width;
|
49
|
+
color: fade-out($color-text-inverse, 0.5);
|
50
|
+
background-color: $sidebar-color-secondary;
|
51
|
+
text-align: center;
|
52
|
+
padding: 10px 15px;
|
53
|
+
border-top: 2px solid $color-primary;
|
54
|
+
|
55
|
+
.customize-item {
|
56
|
+
margin-bottom: 15px;
|
57
|
+
|
58
|
+
.customize-header {
|
59
|
+
margin-bottom: 10px;
|
60
|
+
}
|
61
|
+
|
62
|
+
label {
|
63
|
+
font-weight: 400;
|
64
|
+
|
65
|
+
|
66
|
+
&.title {
|
67
|
+
font-size: 14px;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.radio {
|
72
|
+
|
73
|
+
& + span {
|
74
|
+
padding: 0;
|
75
|
+
padding-left: 5px
|
76
|
+
}
|
77
|
+
|
78
|
+
& + span:before {
|
79
|
+
font-size: 17px;
|
80
|
+
color: #546273;
|
81
|
+
cursor: pointer;
|
82
|
+
}
|
83
|
+
|
84
|
+
&:checked + span:before{
|
85
|
+
color: $color-primary;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.customize-colors {
|
90
|
+
list-style: none;
|
91
|
+
|
92
|
+
li {
|
93
|
+
display: inline-block;
|
94
|
+
margin-left: 5px;
|
95
|
+
margin-right: 5px;
|
96
|
+
|
97
|
+
.color-item {
|
98
|
+
display: block;
|
99
|
+
height: 20px;
|
100
|
+
width: 20px;
|
101
|
+
border: 1px solid;
|
102
|
+
cursor: pointer;
|
103
|
+
|
104
|
+
&.color-red {
|
105
|
+
background-color: #FB494D;
|
106
|
+
border-color: #FB494D;
|
107
|
+
}
|
108
|
+
|
109
|
+
&.color-orange {
|
110
|
+
background-color: #FE7A0E;
|
111
|
+
border-color: #FE7A0E;
|
112
|
+
}
|
113
|
+
|
114
|
+
&.color-green {
|
115
|
+
background-color: #8CDE33;
|
116
|
+
border-color: #8CDE33;
|
117
|
+
}
|
118
|
+
|
119
|
+
&.color-seagreen {
|
120
|
+
background-color: #4bcf99;
|
121
|
+
border-color: #4bcf99;
|
122
|
+
}
|
123
|
+
|
124
|
+
&.color-blue {
|
125
|
+
background-color: #52BCD3;
|
126
|
+
border-color: #52BCD3;
|
127
|
+
}
|
128
|
+
|
129
|
+
&.color-purple {
|
130
|
+
background-color: #7867A7;
|
131
|
+
border-color: #7867A7;
|
132
|
+
}
|
133
|
+
|
134
|
+
&.active {
|
135
|
+
position: relative;
|
136
|
+
font-family: FontAwesome;
|
137
|
+
font-size: 17px;
|
138
|
+
line-height: 17px;
|
139
|
+
|
140
|
+
&:before {
|
141
|
+
content: "\f00c";
|
142
|
+
position: absolute;
|
143
|
+
top: 0;
|
144
|
+
left: 0;
|
145
|
+
color: #fff;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
}
|
@@ -0,0 +1,240 @@
|
|
1
|
+
.sidebar {
|
2
|
+
background-color: $sidebar-color-primary;
|
3
|
+
width: $sidebar-width;
|
4
|
+
padding-bottom: 60px;
|
5
|
+
position: absolute;
|
6
|
+
top: 0;
|
7
|
+
left: 0;
|
8
|
+
bottom: 0;
|
9
|
+
transition: left 0.3s ease;
|
10
|
+
z-index: 20;
|
11
|
+
|
12
|
+
|
13
|
+
@include media-down(md) {
|
14
|
+
position: fixed;
|
15
|
+
left: -$sidebar-width;
|
16
|
+
}
|
17
|
+
|
18
|
+
.sidebar-fixed & {
|
19
|
+
position: fixed;
|
20
|
+
}
|
21
|
+
|
22
|
+
.sidebar-open & {
|
23
|
+
left: 0;
|
24
|
+
|
25
|
+
}
|
26
|
+
|
27
|
+
.sidebar-container {
|
28
|
+
position: absolute;
|
29
|
+
top: 0;
|
30
|
+
bottom: 51px;
|
31
|
+
width: 100%;
|
32
|
+
left: 0;
|
33
|
+
overflow-y: auto;
|
34
|
+
overflow-x: hidden;
|
35
|
+
|
36
|
+
&::-webkit-scrollbar-track {
|
37
|
+
background-color: darken($sidebar-color-primary, 6.5%);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
.label {
|
42
|
+
font-size: .75em;
|
43
|
+
display: inline-block;
|
44
|
+
border-radius: .2em;
|
45
|
+
padding: 2px 5px;
|
46
|
+
background-color: #ccc;
|
47
|
+
color: #000;
|
48
|
+
margin: 0 3px;
|
49
|
+
}
|
50
|
+
|
51
|
+
.label-screenful {
|
52
|
+
color: #fff;
|
53
|
+
background-color: #6769d4;
|
54
|
+
}
|
55
|
+
|
56
|
+
.sidebar-menu {
|
57
|
+
|
58
|
+
font-size: 14px;
|
59
|
+
list-style: none;
|
60
|
+
margin: 0;
|
61
|
+
padding: 0;
|
62
|
+
|
63
|
+
// Common styles
|
64
|
+
li {
|
65
|
+
a:focus,
|
66
|
+
.open & a:focus {
|
67
|
+
background-color: inherit;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
// Second + menu items
|
72
|
+
ul {
|
73
|
+
padding: 0;
|
74
|
+
height: 0px;
|
75
|
+
overflow: hidden;
|
76
|
+
|
77
|
+
.loaded & {
|
78
|
+
height: auto;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
li.active ul {
|
83
|
+
height: auto;
|
84
|
+
}
|
85
|
+
|
86
|
+
|
87
|
+
// All links which are not active
|
88
|
+
// have subdued color
|
89
|
+
li a {
|
90
|
+
color: $sidebar-color-text;
|
91
|
+
text-decoration: none;
|
92
|
+
display: block;
|
93
|
+
}
|
94
|
+
|
95
|
+
// All links which are not active
|
96
|
+
// On hover bg become darker
|
97
|
+
// Their color become lighter
|
98
|
+
li a:hover,
|
99
|
+
li.open > a,
|
100
|
+
li.open a:hover {
|
101
|
+
color: $sidebar-color-text-active;
|
102
|
+
background-color: $sidebar-color-secondary;
|
103
|
+
}
|
104
|
+
|
105
|
+
.arrow {
|
106
|
+
float: right;
|
107
|
+
font-size: 18px;
|
108
|
+
line-height: initial;
|
109
|
+
transition: all 0.3s ease;
|
110
|
+
margin-right: 0;
|
111
|
+
|
112
|
+
&:before {
|
113
|
+
content: "\f105" !important;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
li.open > a {
|
118
|
+
.arrow {
|
119
|
+
transform: rotate(90deg);
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
// First level items
|
125
|
+
&> li {
|
126
|
+
|
127
|
+
// First level items links
|
128
|
+
& > a {
|
129
|
+
padding-top: 15px;
|
130
|
+
padding-bottom: 15px;
|
131
|
+
padding-left: 20px;
|
132
|
+
padding-right: 15px;
|
133
|
+
}
|
134
|
+
|
135
|
+
// First level active links have primary background
|
136
|
+
&.active > a,
|
137
|
+
&.active > a:hover {
|
138
|
+
background-color: $color-primary !important;
|
139
|
+
color: $color-text-inverse !important;
|
140
|
+
}
|
141
|
+
|
142
|
+
// First level active links have bit darker background
|
143
|
+
&.open > a {
|
144
|
+
background-color: darken($sidebar-color-primary, 3%);
|
145
|
+
}
|
146
|
+
|
147
|
+
// First level item links arrow
|
148
|
+
& > a {
|
149
|
+
i {
|
150
|
+
margin-right: 5px;
|
151
|
+
font-size: 16px;
|
152
|
+
|
153
|
+
&.arrow {
|
154
|
+
font-size: 20px;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
// Second level items
|
162
|
+
& > li > .sidebar-nav> li {
|
163
|
+
|
164
|
+
// Second level and deeper items links
|
165
|
+
// Have bit darker background and more padding
|
166
|
+
// from left side
|
167
|
+
a {
|
168
|
+
padding-top: 10px;
|
169
|
+
padding-bottom: 10px;
|
170
|
+
padding-left: 50px;
|
171
|
+
padding-right: 15px;
|
172
|
+
background-color: darken($sidebar-color-primary, 3%);
|
173
|
+
}
|
174
|
+
|
175
|
+
// Second level active items links
|
176
|
+
// Have brighter color
|
177
|
+
&.active a {
|
178
|
+
color: $sidebar-color-text-active;
|
179
|
+
}
|
180
|
+
|
181
|
+
// Third level items
|
182
|
+
& > .sidebar-nav > li {
|
183
|
+
a {
|
184
|
+
padding-left: 60px;
|
185
|
+
padding-right: 15px;
|
186
|
+
}
|
187
|
+
|
188
|
+
& > .sidebar-nav > li {
|
189
|
+
a {
|
190
|
+
padding-left: 70px;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
.sidebar-overlay {
|
200
|
+
position: absolute;
|
201
|
+
display: none;
|
202
|
+
left: 200vw;
|
203
|
+
right: 0;
|
204
|
+
top: 0;
|
205
|
+
bottom: 0;
|
206
|
+
z-index: 5;
|
207
|
+
opacity: 0;
|
208
|
+
transition: opacity 0.3s ease;
|
209
|
+
z-index: 15;
|
210
|
+
|
211
|
+
@include media-down(md) {
|
212
|
+
display: block;
|
213
|
+
}
|
214
|
+
|
215
|
+
@include media-down(sm) {
|
216
|
+
background-color: fade-out(#000, 0.3);
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
.sidebar-open & {
|
221
|
+
@include media-down(md) {
|
222
|
+
left: 0;
|
223
|
+
opacity: 1;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
.sidebar-mobile-menu-handle {
|
229
|
+
display: none;
|
230
|
+
position: absolute;
|
231
|
+
top: $header-height-xs;
|
232
|
+
background-color: transparent;
|
233
|
+
width: 30px;
|
234
|
+
bottom: 0;
|
235
|
+
z-index: 10;
|
236
|
+
|
237
|
+
@include media-down(md) {
|
238
|
+
display: block;
|
239
|
+
}
|
240
|
+
}
|