_viz_editor.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .viz-editor {
  2. display: flex;
  3. height: 100%;
  4. }
  5. .viz-editor-col1 {
  6. width: 210px;
  7. height: 100%;
  8. margin-right: 40px;
  9. }
  10. .viz-editor-col2 {
  11. flex-grow: 1;
  12. }
  13. .viz-picker {
  14. display: flex;
  15. flex-direction: column;
  16. height: 100%;
  17. }
  18. .viz-picker__search {
  19. flex-grow: 0;
  20. }
  21. .viz-picker__items {
  22. flex-grow: 1;
  23. height: calc(100% - 50px);
  24. }
  25. .viz-picker__item {
  26. background: $card-background;
  27. box-shadow: $card-shadow;
  28. border-radius: 3px;
  29. padding: $spacer;
  30. width: 100%;
  31. height: 60px;
  32. text-align: center;
  33. margin-bottom: 6px;
  34. cursor: pointer;
  35. display: flex;
  36. flex-shrink: 0;
  37. border: 1px solid transparent;
  38. @include left-brand-border;
  39. &:hover {
  40. background: $card-background-hover;
  41. }
  42. &--selected {
  43. // border: 1px solid $orange;
  44. @include left-brand-border-gradient();
  45. .viz-picker__item-name {
  46. color: $text-color;
  47. }
  48. .viz-picker__item-img {
  49. filter: saturate(100%);
  50. }
  51. }
  52. }
  53. .viz-picker__item-name {
  54. text-overflow: ellipsis;
  55. overflow: hidden;
  56. white-space: nowrap;
  57. font-size: $font-size-h5;
  58. display: flex;
  59. flex-direction: column;
  60. align-self: center;
  61. padding-left: $spacer;
  62. font-size: $font-size-md;
  63. color: $text-muted;
  64. }
  65. .viz-picker__item-img {
  66. height: 100%;
  67. filter: saturate(30%);
  68. }