소스 검색

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

AlexiCauvin 6 년 전
부모
커밋
e8bc584f6a
3개의 변경된 파일28개의 추가작업 그리고 2개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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