index.scss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @import '../common/abstracts/variable';
  2. @import '../common/abstracts/mixin';
  3. .wot-theme-dark {
  4. @include b(floating-panel) {
  5. background: $-dark-background2;
  6. @include e(content) {
  7. background: $-dark-background2;
  8. }
  9. }
  10. }
  11. @include b(floating-panel) {
  12. position: fixed;
  13. bottom: 0;
  14. left: 0;
  15. z-index: $-floating-panel-z-index;
  16. display: flex;
  17. flex-direction: column;
  18. box-sizing: border-box;
  19. width: 100vw;
  20. border-top-left-radius: $-floating-panel-radius;
  21. border-top-right-radius: $-floating-panel-radius;
  22. background-color: $-floating-panel-bg;
  23. touch-action: none;
  24. will-change: transform;
  25. @include when(safe) {
  26. padding-bottom: constant(safe-area-inset-bottom);
  27. padding-bottom: env(safe-area-inset-bottom);
  28. }
  29. &::after {
  30. position: absolute;
  31. bottom: -100vh;
  32. display: block;
  33. width: 100vw;
  34. height: 100vh;
  35. content: '';
  36. background-color: inherit;
  37. }
  38. @include e(header) {
  39. display: flex;
  40. justify-content: center;
  41. align-items: center;
  42. height: $-floating-panel-header-height;
  43. cursor: grab;
  44. user-select: none;
  45. &-bar {
  46. width: $-floating-panel-bar-width;
  47. height: $-floating-panel-bar-height;
  48. background-color: $-floating-panel-bar-bg;
  49. border-radius: $-floating-panel-bar-radius;
  50. }
  51. }
  52. @include e(content) {
  53. flex: 1;
  54. min-width: 0;
  55. min-height: 0;
  56. background-color: $-floating-panel-content-bg;
  57. }
  58. }