_content.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Page common styles
  2. ::selection {
  3. color: $white;
  4. background-color: darken($blue,10%);
  5. }
  6. .app {
  7. // On large devices make sidebar visible by default
  8. // adding sidenav-toggled class will close sidebar
  9. @media(min-width: 768px) {
  10. &.sidenav-toggled {
  11. .app-content { margin-left: 0; }
  12. .app-sidebar { left: -$sidebar-width; }
  13. .app-sidebar__overlay { visibility: hidden; }
  14. }
  15. }
  16. // On small devices make sidebar collapsed by default
  17. // adding sidenav-toggled class will open sidebar
  18. @media(max-width: 767px) {
  19. overflow-x: hidden;
  20. .app-sidebar { left: -$sidebar-width; }
  21. .app-sidebar__overlay { visibility: hidden; }
  22. &.sidenav-toggled {
  23. .app-content { margin-left: 0; }
  24. .app-sidebar { left: 0; }
  25. .app-sidebar__overlay { visibility: visible; }
  26. }
  27. }
  28. }
  29. .app-content {
  30. min-height: calc(100vh - 50px);
  31. margin-top: 50px;
  32. padding: 30px;
  33. background-color: #E5E5E5;
  34. transition: margin-left 0.3s ease;
  35. @media(min-width: 768px) { margin-left: $sidebar-width; }
  36. @media(max-width: 767px) {
  37. margin-top: 50px;
  38. min-width: 100%;
  39. }
  40. @media(max-width: 480px) { padding: 15px; }
  41. @media print {
  42. margin: 0;
  43. padding: 0;
  44. background-color: #fff;
  45. }
  46. }
  47. // Helper Classes
  48. //.light-text { font-weight: 300 !important; }
  49. //.semibold-text { font-weight: 600 !important; }
  50. .line-head {
  51. padding-bottom: 10px;
  52. border-bottom: 1px solid #ddd;
  53. }