You are here

offcanvas.css in Open Social 8.8

#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;
}

@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. }
  27. @media (min-width: 900px) {
  28. .btn--offcanvas-trigger {
  29. display: none;
  30. }
  31. .offcanvas-head {
  32. padding: 15px 20px 0;
  33. color: #777777;
  34. line-height: 1;
  35. }
  36. .offcanvas-head .complementary-title {
  37. vertical-align: middle;
  38. font-weight: 500;
  39. font-size: 1rem;
  40. text-align: center;
  41. }
  42. .offcanvas-tools {
  43. display: none;
  44. }
  45. .offcanvas-body {
  46. margin-top: 0;
  47. padding: 20px;
  48. }
  49. }
  50. @media (max-width: 899px) {
  51. .off-canvas {
  52. position: fixed;
  53. top: 50px;
  54. overflow: auto;
  55. width: 280px;
  56. height: 100%;
  57. background-color: white;
  58. padding: 1.25rem;
  59. box-shadow: 0 8px 17px 0 transparent, 0 6px 20px 0 transparent;
  60. z-index: 4;
  61. -webkit-backface-visibility: hidden;
  62. backface-visibility: hidden;
  63. transition: transform 0.5s, box-shadow 0.3s;
  64. }
  65. .off-canvas-right {
  66. transform: translateX(290px);
  67. right: 0;
  68. }
  69. .off-canvas-xs-only {
  70. box-shadow: 0 0 8px rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.45);
  71. position: fixed;
  72. }
  73. .views-exposed-form {
  74. position: absolute;
  75. right: 1rem;
  76. top: 1rem;
  77. }
  78. }