_submenu.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. .submenu-controls {
  2. display: flex;
  3. flex-direction: row;
  4. flex-wrap: wrap;
  5. align-content: flex-start;
  6. align-items: flex-start;
  7. margin: 0 0 $panel-margin 0;
  8. }
  9. .annotation-disabled, .annotation-disabled a {
  10. color: $link-color-disabled;
  11. }
  12. .annotation-segment {
  13. padding: 8px 7px;
  14. label.cr1 {
  15. margin-left: 5px;
  16. margin-top: 3px;
  17. }
  18. }
  19. .submenu-item {
  20. margin-right: 20px;
  21. display: inline-block;
  22. margin-right: 15px;
  23. display: inline-block;
  24. float: left;
  25. .fa-caret-down {
  26. font-size: 75%;
  27. position: relative;
  28. top: -1px;
  29. left: 1px;
  30. }
  31. }
  32. .variable-value-link {
  33. padding-right: 10px;
  34. padding: $input-padding-y $input-padding-x;
  35. background-color: $input-bg;
  36. border: 1px solid $input-border-color;
  37. border-radius: $input-border-radius;
  38. color: $input-color;
  39. box-sizing: content-box;
  40. display: inline-block;
  41. color: $text-color;
  42. .label-tag {
  43. margin: 0 5px;
  44. }
  45. }
  46. .variable-link-wrapper {
  47. display: inline-block;
  48. position: relative;
  49. }
  50. .variable-value-dropdown {
  51. position: absolute;
  52. top: 47px;
  53. min-width: 150px;
  54. max-height: 400px;
  55. min-height: 150px;
  56. overflow-y: auto;
  57. overflow-x: hidden;
  58. background-color: $dropdownBackground;
  59. box-shadow: 0 0 25px 0 rgba(0,0,0,0.4);
  60. z-index: 1000;
  61. font-size: $font-size-base;
  62. border-radius: 3px 3px 0 0;
  63. border: 1px solid $tight-form-func-bg;
  64. &.multi {
  65. .selected {
  66. .variable-option-icon{
  67. background: url($checkboxImageUrl) 0px -18px no-repeat;
  68. }
  69. }
  70. }
  71. &.single {
  72. .variable-option-icon {
  73. display: none;
  74. }
  75. .selected {
  76. background-color: $tight-form-func-highlight-bg;
  77. }
  78. }
  79. }
  80. .variable-options-wrapper {
  81. display: table;
  82. width: 100%;
  83. }
  84. .variable-options-column {
  85. max-height: 350px;
  86. display: table-cell;
  87. line-height: 26px;
  88. &:nth-child(2) {
  89. border-left: 1px solid $tight-form-func-bg;
  90. }
  91. }
  92. .variable-option-tag,
  93. .variable-option,
  94. .variable-options-column-header {
  95. display: block;
  96. padding: 2px 27px 0 8px;
  97. position: relative;
  98. white-space: nowrap;
  99. min-width: 115px;
  100. }
  101. .variable-options-column-header {
  102. padding-top: 5px;
  103. padding-bottom: 5px;
  104. margin-bottom: 5px;
  105. &.many-selected {
  106. .variable-option-icon {
  107. background: url($checkboxImageUrl) 0px -36px no-repeat;
  108. }
  109. }
  110. }
  111. .variable-option-icon {
  112. display: inline-block;
  113. width: 24px;
  114. height: 18px;
  115. position: relative;
  116. top: 4px;
  117. background: url($checkboxImageUrl) left top no-repeat;
  118. }
  119. .variable-option {
  120. &:hover, &.highlighted {
  121. background-color: $blue-dark;
  122. }
  123. }
  124. .dash-nav-link {
  125. padding: 8px 7px;
  126. display: inline-block;
  127. color: $text-color;
  128. }