_submenu.scss 2.6 KB

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