_leftsidebaroverlay.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. .overlay {
  2. position: fixed;
  3. cursor: pointer;
  4. top: 0;
  5. left: 0;
  6. right: 0;
  7. bottom: 0;
  8. background-color: rgba(0,0,0,0.5);
  9. display: none;
  10. z-index: 10;
  11. }
  12. .overlay-open {
  13. .sidebar {
  14. margin-left: 0;
  15. z-index: 99999999;
  16. }
  17. }
  18. .sidebar {
  19. @include transition(all .5s);
  20. font-family: $sidebar-font-family;
  21. background: #fdfdfd;
  22. width: 300px;
  23. overflow: hidden;
  24. display: inline-block;
  25. height: calc(100vh - 70px);
  26. position: fixed;
  27. top: 70px;
  28. left: 0;
  29. @include box-shadow(2px 2px 5px rgba(0, 0, 0, 0.1));
  30. z-index: 11 !important;
  31. .legal {
  32. position: absolute;
  33. bottom: 0;
  34. width: 100%;
  35. border-top: 1px solid #eee;
  36. padding: 15px;
  37. overflow: hidden;
  38. .copyright {
  39. font-size: 13px;
  40. @include three-dots-overflow();
  41. a {
  42. font-weight: bold;
  43. text-decoration: none;
  44. }
  45. }
  46. .version {
  47. @include three-dots-overflow();
  48. margin-top: 5px;
  49. font-size: 13px;
  50. }
  51. }
  52. .user-info {
  53. padding: 13px 15px 12px 15px;
  54. white-space: nowrap;
  55. position: relative;
  56. border-bottom: 1px solid #e9e9e9;
  57. background: url('../images/user-img-background.jpg') no-repeat no-repeat;
  58. height: 135px;
  59. .image {
  60. margin-right: 12px;
  61. display: inline-block;
  62. img {
  63. @include border-radius(50%);
  64. vertical-align: bottom !important;
  65. }
  66. }
  67. .info-container {
  68. cursor: default;
  69. display: block;
  70. position: relative;
  71. top: 25px;
  72. .name {
  73. @include three-dots-overflow();
  74. font-size: 14px;
  75. max-width: 200px;
  76. color: #fff;
  77. }
  78. .email {
  79. @include three-dots-overflow();
  80. font-size: 12px;
  81. max-width: 200px;
  82. color: #fff;
  83. }
  84. .user-helper-dropdown {
  85. position: absolute;
  86. right: -3px;
  87. bottom: -12px;
  88. @include box-shadow(none);
  89. cursor: pointer;
  90. color: #fff;
  91. }
  92. }
  93. }
  94. .menu {
  95. position: relative;
  96. overflow-y: auto;
  97. height: 90vh;
  98. .list {
  99. list-style: none;
  100. padding-left: 0;
  101. li {
  102. &.active {
  103. > :first-child {
  104. span {
  105. font-weight: bold;
  106. }
  107. }
  108. }
  109. }
  110. .header {
  111. background: #eee;
  112. font-size: 12px;
  113. font-weight: 600;
  114. padding: 8px 16px;
  115. }
  116. i.material-icons {
  117. margin-top: 4px;
  118. }
  119. .menu-toggle {
  120. &:after, &:before {
  121. position: absolute;
  122. top: calc(50% - 14px);
  123. right: 17px;
  124. font-size: 19px;
  125. @include transform(scale(0));
  126. @include transition(all .3s);
  127. }
  128. &:before {
  129. content: '+';
  130. @include transform(scale(1));
  131. }
  132. &:after {
  133. content: '\2013';
  134. @include transform(scale(0));
  135. }
  136. }
  137. .menu-toggle.toggled {
  138. &:before {
  139. @include transform(scale(0));
  140. }
  141. &:after {
  142. @include transform(scale(1));
  143. }
  144. }
  145. a {
  146. color: #747474;
  147. position: relative;
  148. display: inline-flex;
  149. vertical-align: middle;
  150. width: 100%;
  151. padding: 10px 13px;
  152. &:hover,
  153. &:active,
  154. &:focus {
  155. text-decoration: none !important;
  156. }
  157. small {
  158. position: absolute;
  159. top: calc(50% - 7.5px);
  160. right: 15px;
  161. }
  162. span {
  163. margin: 7px 0 7px 12px;
  164. color: #333;
  165. font-weight: bold;
  166. font-size: 14px;
  167. overflow: hidden;
  168. }
  169. }
  170. .ml-menu {
  171. list-style: none;
  172. display: none;
  173. padding-left: 0;
  174. span {
  175. font-weight: normal;
  176. font-size: 14px;
  177. margin: 3px 0 1px 6px;
  178. }
  179. li {
  180. a {
  181. padding-left: 55px;
  182. padding-top: 7px;
  183. padding-bottom: 7px;
  184. }
  185. &.active {
  186. a.toggled:not(.menu-toggle) {
  187. font-weight: 600;
  188. margin-left: 5px;
  189. &:before {
  190. content: '\E315';
  191. font-family: 'Material Icons';
  192. position: relative;
  193. font-size: 21px;
  194. height: 20px;
  195. top: -5px;
  196. right: 0px;
  197. }
  198. }
  199. }
  200. .ml-menu {
  201. li {
  202. a {
  203. padding-left: 80px;
  204. }
  205. }
  206. .ml-menu {
  207. li {
  208. a {
  209. padding-left: 95px;
  210. }
  211. }
  212. }
  213. }
  214. }
  215. }
  216. }
  217. }
  218. }
  219. .right-sidebar {
  220. width: 280px;
  221. height: calc(100vh - 70px);
  222. position: fixed;
  223. right: -300px;
  224. top: 70px;
  225. background: #fdfdfd;
  226. z-index: 11 !important;
  227. @include box-shadow(-2px 2px 5px rgba(0, 0, 0, 0.1));
  228. overflow: hidden;
  229. @include transition(.5s);
  230. &.open {
  231. right: 0;
  232. }
  233. .nav-tabs {
  234. font-weight: 600;
  235. font-size: 13px;
  236. width: 100%;
  237. margin-left: 2px;
  238. li {
  239. text-align: center;
  240. > a {
  241. margin-right: 0;
  242. }
  243. &:first-child {
  244. width: 45%;
  245. }
  246. &:last-child {
  247. width: 55%;
  248. }
  249. }
  250. }
  251. }