Project

General

Profile

« Previous | Next » 

Revision 57697

[Monitor Dashboard]: 1. Change inputs to materials. 2. Add fonts. 3. Add uikit.js on index 4. Add reorder functionality on indicators. 5. Fix height of header to 70px

View differences:

dashboard-custom.css
1 1
/*
2 2
  Define the following variables on your project css file.
3 3

  
4
  --sidebar-width: 320px;
5 4
  --sidebar-font-size: 16px;
6

  
7 5
  --header-height: 70px;
8

  
9 6
  --list-card-max-width: 1220px;
10 7
*/
11 8

  
12 9
/* Global css*/
13

  
14 10
html .dashboard {
15 11
  color: black;
16 12
}
......
28 24
  display: block;
29 25
}
30 26

  
31
/* Custom width of sidebar, change var: sidebar-width*/
32
.dashboard .main_logo_top {
33
  min-width: var(--sidebar-width);
34
}
35

  
36
.dashboard #sidebar_main {
37
  width: var(--sidebar-width);
38
  -webkit-transform: translate3d(calc(-1 * var(--sidebar-width)), 0, 0);
39
  transform: translate3d(calc(-1 * var(--sidebar-width)), 0, 0);
40
}
41

  
42
.dashboard .sidebar_main_active #sidebar_main {
43
  -webkit-transform: translate3d(0, 0, 0);
44
  transform: translate3d(0, 0, 0);
45
}
46

  
27
/* Custom height of header, change var: header-height*/
47 28
.dashboard #sidebar_main .sidebar_main_header {
48
  color: #000000;
49 29
  height: auto;
50 30
  min-height: var(--header-height);
51 31
}
......
58 38
  font-weight: 700;
59 39
}
60 40

  
41
.dashboard #sidebar_main .uk-inline {
42
  vertical-align: text-bottom;
43
}
44

  
45
.dashboard #sidebar_main .menu_section > ul li > a > .menu_icon {
46
  width: 30px;
47
}
48

  
61 49
.dashboard #sidebar_main .menu_section > ul li > a {
62 50
  font-size: var(--sidebar-font-size);
63 51
  color: rgba(0, 0, 0, 0.7);
64 52
}
65 53

  
66
@media only screen and (min-width: 1220px) {
67
  .dashboard .sidebar_main_active #header_main,
68
  .dashboard .sidebar_main_active #page_content,
69
  .dashboard .sidebar_main_active #top_bar {
70
    margin-left: var(--sidebar-width);
71
  }
72
}
73

  
74
/* Custom height of header, change var: header-height*/
75 54
body.dashboard {
76 55
  padding-top: var(--header-height);
77 56
}
......
81 60
}
82 61

  
83 62
.dashboard #header_main {
84
  padding: calc((var(--header-height) - 48px) / 2) 25px;
63
  height: var(--header-height);
85 64
}
86 65

  
66
.dashboard #header_main > nav {
67
  height: var(--header-height);
68
  display: table;
69
}
70

  
71
.dashboard #header_main > nav > * {
72
  display: table-cell;
73
  vertical-align: middle;
74
}
75

  
76
.dashboard #header_main > nav > .main_logo_top {
77
  float: none;
78
  line-height: inherit;
79
}
80

  
81
.dashboard #header_main #sidebar_main_toggle {
82
  margin: calc(var(--header-height) - 48px) 0;
83
}
84

  
87 85
/* Custom card*/
88 86
.dashboard .md-card .md-card-content {
89 87
  color: rgba(0, 0, 0, 0.8);
......
104 102
  float: none;
105 103
}
106 104

  
107
.dashboard .list .md-card {
108
  max-width: var(--list-card-max-width);
105
.dashboard .list {
106
  max-width: 1220px;
109 107
}
110 108

  
111 109
/* Breadcrumb*/
......
128 126
}
129 127

  
130 128
/* Notification */
131
/* Remove the second close added by theme because it was used uikit 2*/
132
.dashboard .uk-close::after {
133
  content: '';
134
}
135

  
136 129
/* Change z-index, because of sidebar and header z-index is bigger that default */
137 130
.dashboard .uk-notification {
138 131
  z-index: 2000;
139 132
}
140 133

  
134
.dashboard .uk-notification-message {
135
  border-radius: 3px;
136
  font-size: 14px;
137
}
138

  
139
.dashboard .uk-notification-message.uk-notification-message-success {
140
  background-color: #e0f0d5;
141
  color: #669a59;
142
}
143

  
144
.dashboard .uk-notification-message.uk-notification-message-danger {
145
  background-color: #f2dede;
146
  color: #b25654;
147
}
148

  
149
.dashboard .uk-notification-close.uk-close::after {
150
  font-size: 16px;
151
}
152

  
153

  
154
.dashboard .uk-notification-close.uk-icon.uk-close svg {
155
  display: none;
156
}
157

  
141 158
/* Form */
142 159

  
143 160
.dashboard .uk-form-stacked .uk-form-label {
......
152 169
}
153 170

  
154 171
/* Modal*/
155

  
156 172
.dashboard .uk-modal .large-modal {
157 173
  width: 800px;
158 174
}
159 175

  
176
.dashboard .uk-modal .uk-close::after {
177
  display: none;
178
}
179

  
160 180
/* Sortable*/
161 181
.dashboard .uk-sortable > * {
162 182
  cursor: move;
163 183
}
164 184

  
185
.uk-drag .dashboard .disable-sortable {
186
  pointer-events: none;
187
}
188

  
165 189
.dashboard .uk-sortable .uk-sortable-nodrag {
166 190
  cursor: default;
167 191
}
192

  
193
/* Dropdown*/
194
.dashboard .uk-dropdown {
195
  opacity: 1;
196
  transform: none;
197
  -webkit-transform: none;
198
  padding: 5px 0;
199
}
200

  
201
.dashboard .md-card-dropdown .uk-dropdown {
202
  min-width: 160px;
203
}
204

  
205
.dashboard .uk-dropdown .uk-nav.uk-dropdown-nav > li > a {
206
  padding: 5px 10px;
207
}

Also available in: Unified diff