Quellcode durchsuchen

sidebar switch to position absolute on media tablet and phone and css correction on workspace content table

AlexiCauvin vor 6 Jahren
Ursprung
Commit
e8bc584f6a
3 geänderte Dateien mit 28 neuen und 2 gelöschten Zeilen
  1. 1 1
      src/container/Sidebar.jsx
  2. 24 0
      src/css/Sidebar.styl
  3. 3 1
      src/css/Workspace.styl

+ 1 - 1
src/container/Sidebar.jsx Datei anzeigen

@@ -63,7 +63,7 @@ class Sidebar extends React.Component {
63 63
     const { activeLang, workspace, workspaceList, app, t } = this.props
64 64
 
65 65
     return (
66
-      <div className={classnames('sidebar d-none d-lg-block', {'sidebarclose': sidebarClose})}>
66
+      <div className={classnames('sidebar', {'sidebarclose': sidebarClose})}>
67 67
         <div className='sidebar__expand' onClick={this.handleClickToggleSidebar}>
68 68
           { /* <i className={classnames('fa fa-fw', {'fa-plus-square-o': sidebarClose, 'fa-minus-square-o': !sidebarClose})} /> */ }
69 69
           <button className='hamburger hamburger--spring sidebar__expand__btnHamburger' type='button'>

+ 24 - 0
src/css/Sidebar.styl Datei anzeigen

@@ -150,3 +150,27 @@ leftside()
150 150
             &.activeFilter
151 151
               .dropdown__icon
152 152
                 background-color rgba(253, 253, 253, 0.8)
153
+
154
+/***** MEDIA 576px and 991px ******/
155
+
156
+@media (min-width: min-sm) and (max-width: max-md)
157
+
158
+  .sidebar
159
+    position absolute
160
+
161
+/***** MEDIA 576px and 767px *****/
162
+
163
+@media (min-width: min-sm) and (max-width: max-sm)
164
+
165
+  .sidebarpagecontainer
166
+    padding-top 69px
167
+
168
+/***** MEDIA  *****/
169
+
170
+@media (max-width: 575px)
171
+
172
+  .sidebarpagecontainer
173
+    padding-top 69px
174
+
175
+  .sidebar
176
+    position absolute

+ 3 - 1
src/css/Workspace.styl Datei anzeigen

@@ -23,4 +23,6 @@
23 23
   .workspace
24 24
     &__header
25 25
       &__title
26
-        margin 0 0 20px 10px
26
+        margin 25px 0 20px 10px
27
+    &__content
28
+        margin 0