You are here

offcanvas.css in Open Social 8.3

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

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