You are here

offcanvas.css in Open Social 8.9

#block-filter:target {
  transform: translateX(0);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.45);
}

.off-canvas-xs-only {
  box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  position: relative;
  margin-bottom: 0.75rem;
  background-clip: padding-box;
  background-color: white;
}

.offcanvas-head {
  position: relative;
}

.offcanvas-head .complementary-title {
  font-size: 1.25rem;
}

.offcanvas-tools {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.offcanvas-body {
  margin-top: 30px;
  padding-bottom: 90px;
}

@media (min-width: 900px) {
  .btn--offcanvas-trigger {
    display: none;
  }
  .offcanvas-head {
    padding: 15px 20px 0;
    color: #777777;
    line-height: 1;
  }
  .offcanvas-head .complementary-title {
    vertical-align: middle;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
  }
  .offcanvas-tools {
    display: none;
  }
  .offcanvas-body {
    margin-top: 0;
    padding: 20px;
  }
}

@media (max-width: 899px) {
  .off-canvas {
    position: fixed;
    top: 50px;
    overflow: auto;
    width: 280px;
    height: 100%;
    background-color: white;
    padding: 1.25rem;
    box-shadow: 0 8px 17px 0 transparent, 0 6px 20px 0 transparent;
    z-index: 4;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    transition: transform 0.5s, box-shadow 0.3s;
  }
  .off-canvas-right {
    transform: translateX(290px);
    right: 0;
  }
  .off-canvas-xs-only {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.45);
    position: fixed;
  }
  .views-exposed-form {
    position: absolute;
    right: 1rem;
    top: 1rem;
  }
}

File

themes/socialbase/assets/css/offcanvas.css
View source
  1. #block-filter:target {
  2. transform: translateX(0);
  3. box-shadow: 0 0 8px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.45);
  4. }
  5. .off-canvas-xs-only {
  6. box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  7. position: relative;
  8. margin-bottom: 0.75rem;
  9. background-clip: padding-box;
  10. background-color: white;
  11. }
  12. .offcanvas-head {
  13. position: relative;
  14. }
  15. .offcanvas-head .complementary-title {
  16. font-size: 1.25rem;
  17. }
  18. .offcanvas-tools {
  19. position: absolute;
  20. left: 0;
  21. right: 0;
  22. top: 0;
  23. }
  24. .offcanvas-body {
  25. margin-top: 30px;
  26. padding-bottom: 90px;
  27. }
  28. @media (min-width: 900px) {
  29. .btn--offcanvas-trigger {
  30. display: none;
  31. }
  32. .offcanvas-head {
  33. padding: 15px 20px 0;
  34. color: #777777;
  35. line-height: 1;
  36. }
  37. .offcanvas-head .complementary-title {
  38. vertical-align: middle;
  39. font-weight: 500;
  40. font-size: 1rem;
  41. text-align: center;
  42. }
  43. .offcanvas-tools {
  44. display: none;
  45. }
  46. .offcanvas-body {
  47. margin-top: 0;
  48. padding: 20px;
  49. }
  50. }
  51. @media (max-width: 899px) {
  52. .off-canvas {
  53. position: fixed;
  54. top: 50px;
  55. overflow: auto;
  56. width: 280px;
  57. height: 100%;
  58. background-color: white;
  59. padding: 1.25rem;
  60. box-shadow: 0 8px 17px 0 transparent, 0 6px 20px 0 transparent;
  61. z-index: 4;
  62. -webkit-backface-visibility: hidden;
  63. backface-visibility: hidden;
  64. transition: transform 0.5s, box-shadow 0.3s;
  65. }
  66. .off-canvas-right {
  67. transform: translateX(290px);
  68. right: 0;
  69. }
  70. .off-canvas-xs-only {
  71. box-shadow: 0 0 8px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.45);
  72. position: fixed;
  73. }
  74. .views-exposed-form {
  75. position: absolute;
  76. right: 1rem;
  77. top: 1rem;
  78. }
  79. }