Mercurial > gemma
annotate client/src/components/Sidebar.vue @ 543:b111b765b6cd
client: add hardwired WFS layer to map
* As prototype add a getfeature WFS layer asking our own server
for the fairways_dimensions. It has deactivate filter code.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 30 Aug 2018 17:07:35 +0200 |
parents | 505656a9947f |
children | 06907c875077 |
rev | line source |
---|---|
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1 <template> |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
2 <div :class="sidebarStyle"> |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
3 <nav :class="menuStyle"> |
523
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
4 <router-link to="/" class="d-flex nav-link">Riverbed Morphology</router-link> |
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
5 <a class="d-flex nav-link" href="#">Link</a> |
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
6 <a class="d-flex nav-link" href="#">Link</a> |
285
8e22d1f16f81
refactor: better variable naming
Thomas Junk <thomas.junk@intevation.de>
parents:
284
diff
changeset
|
7 <div v-if="isSysAdmin"> |
494
ab5d2cf65f3c
fix: A visual diference of the admin section
Thomas Junk <thomas.junk@intevation.de>
parents:
389
diff
changeset
|
8 <hr/> |
523
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
9 <div class="d-flex menupadding text-muted">Administration</div> |
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
10 <router-link class="d-flex nav-link" to="users">Users</router-link> |
278
9c1dfadb53aa
feat: usermanagement - route established and secured
Thomas Junk <thomas.junk@intevation.de>
parents:
277
diff
changeset
|
11 </div> |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
12 </nav> |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
13 <div :class="userinfoStyle"> |
523
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
14 <div class="menupadding userinfo"> |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
15 <img class="userpic" src="../assets/user.png"> |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
16 <span class="username">{{ userinfo }}</span> |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
17 </div> |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
18 <div> |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
19 <span class="logout" @click="logoff"> |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
20 <i class="fa fa-power-off"></i> |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
21 </span> |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
22 </div> |
160
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
23 </div> |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
24 </div> |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
25 </template> |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
26 |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
27 <script> |
158
992e17912405
feat: Improve login against real db
Thomas Junk <thomas.junk@intevation.de>
parents:
117
diff
changeset
|
28 import { mapGetters } from "vuex"; |
992e17912405
feat: Improve login against real db
Thomas Junk <thomas.junk@intevation.de>
parents:
117
diff
changeset
|
29 |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
30 export default { |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
31 name: "sidebar", |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
32 computed: { |
285
8e22d1f16f81
refactor: better variable naming
Thomas Junk <thomas.junk@intevation.de>
parents:
284
diff
changeset
|
33 ...mapGetters("user", ["userinfo", "isSysAdmin"]), |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
34 ...mapGetters("application", ["sidebarCollapsed"]), |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
35 menuStyle() { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
36 return { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
37 menu: true, |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
38 nav: true, |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
39 "flex-column": true, |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
40 "visibility-extended": !this.sidebarCollapsed, |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
41 "visibility-collapsed": this.sidebarCollapsed |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
42 }; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
43 }, |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
44 userinfoStyle() { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
45 return { |
170
9f1b84b712a8
fix: updated API spec
Thomas Junk <thomas.junk@intevation.de>
parents:
161
diff
changeset
|
46 user: true, |
523
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
47 "d-flex": true, |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
48 "visibility-extended": !this.sidebarCollapsed, |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
49 "visibility-collapsed": this.sidebarCollapsed |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
50 }; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
51 }, |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
52 collapseStyle() { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
53 return { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
54 collapser: true, |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
55 collapserextended: !this.sidebarCollapsed, |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
56 collapsercollapsed: this.sidebarCollapsed |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
57 }; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
58 }, |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
59 sidebarStyle() { |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
60 return { |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
61 sidebar: true, |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
62 overlay: true, |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
63 sidebarcollapsed: this.sidebarCollapsed, |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
64 sidebarextended: !this.sidebarCollapsed, |
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
65 shadow: true |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
66 }; |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
67 } |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
68 }, |
160
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
69 methods: { |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
70 logoff() { |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
71 this.$store.commit("user/clear_auth"); |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
72 this.$router.push("/login"); |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
73 } |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
74 } |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
75 }; |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
76 </script> |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
77 |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
78 <style lang="scss"> |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
79 @import "../assets/application.scss"; |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
80 |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
81 $sidebar-full-width: 210px; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
82 $collapser-left-offset: 170px; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
83 $sidebar-collapsed-width: 0px; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
84 |
523
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
85 .menupadding { |
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
86 padding: 0.5rem 1rem; |
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
87 } |
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
88 |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
89 .collapser { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
90 position: absolute; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
91 top: 0px; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
92 z-index: 1000; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
93 background-color: #ffffff; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
94 font-size: 24px; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
95 } |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
96 |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
97 .collapserextended { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
98 left: $collapser-left-offset; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
99 transition: $transition; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
100 } |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
101 |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
102 .collapsercollapsed { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
103 left: 3px; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
104 transition: $transition; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
105 } |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
106 |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
107 .userpic { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
108 position: relative; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
109 left: 1px; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
110 } |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
111 |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
112 .menu { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
113 height: 90%; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
114 } |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
115 .visibility-extended { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
116 opacity: 100; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
117 transition: $transition-slow; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
118 } |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
119 .visibility-collapsed { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
120 opacity: 0; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
121 transition: $transition-fast; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
122 } |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
123 |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
124 .user { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
125 margin-top: auto; |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
126 } |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
127 .sidebar { |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
128 margin-top: $topbarheight; |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
129 background-color: #ffffff; |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
130 padding-top: $large-offset; |
542
505656a9947f
refac: layout refactored
Thomas Junk <thomas.junk@intevation.de>
parents:
523
diff
changeset
|
131 height: 96vh; |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
132 } |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
133 |
278
9c1dfadb53aa
feat: usermanagement - route established and secured
Thomas Junk <thomas.junk@intevation.de>
parents:
277
diff
changeset
|
134 .overlay { |
9c1dfadb53aa
feat: usermanagement - route established and secured
Thomas Junk <thomas.junk@intevation.de>
parents:
277
diff
changeset
|
135 position: absolute; |
9c1dfadb53aa
feat: usermanagement - route established and secured
Thomas Junk <thomas.junk@intevation.de>
parents:
277
diff
changeset
|
136 z-index: 1; |
9c1dfadb53aa
feat: usermanagement - route established and secured
Thomas Junk <thomas.junk@intevation.de>
parents:
277
diff
changeset
|
137 } |
9c1dfadb53aa
feat: usermanagement - route established and secured
Thomas Junk <thomas.junk@intevation.de>
parents:
277
diff
changeset
|
138 |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
139 .sidebarcollapsed { |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
140 width: $sidebar-collapsed-width; |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
141 transition: $transition; |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
142 } |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
143 |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
144 .sidebarextended { |
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
145 width: $sidebar-full-width; |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
146 transition: $transition; |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
147 } |
160
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
148 |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
149 .username { |
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
150 margin-left: $small-offset; |
160
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
151 } |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
152 |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
153 .userinfo { |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
154 font-weight: bold; |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
155 } |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
156 |
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
157 .logout { |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
158 position: relative; |
523
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
159 top: 16px; |
e86d6e016bbb
refac: Sidebar menu entries are now adjusted to the left
Thomas Junk <thomas.junk@intevation.de>
parents:
494
diff
changeset
|
160 left: -5px; |
160
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
161 margin-left: $small-offset; |
161
b7ac2e4f9c5c
feat: collapsible sidebar
Thomas Junk <thomas.junk@intevation.de>
parents:
160
diff
changeset
|
162 cursor: pointer; |
160
061209505028
feat: Login and logout with session restoration implemented
Thomas Junk <thomas.junk@intevation.de>
parents:
158
diff
changeset
|
163 } |
117
5e95c62a7e74
Move component. Re-add Css.
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
164 </style> |