semantic.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. // Copyright 2017-2020 @polkadot/react-components authors & contributors
  2. // This software may be modified and distributed under the terms
  3. // of the Apache-2.0 license. See the LICENSE file for details.
  4. import { css } from 'styled-components';
  5. export default css`
  6. .ui.hidden.divider {
  7. margin: 0.5rem 0;
  8. }
  9. .ui.dropdown {
  10. display: block;
  11. min-width: 0;
  12. width: 100%;
  13. }
  14. .ui.dropdown,
  15. .ui.input {
  16. margin: 0.25rem 0;
  17. }
  18. .ui.selection.dropdown,
  19. .ui.input > input {
  20. color: inherit;
  21. }
  22. .ui.dropdown {
  23. &.disabled {
  24. background: transparent;
  25. border-color: #eee;
  26. border-style: dashed;
  27. opacity: 1;
  28. .dropdown.icon {
  29. opacity: 0;
  30. }
  31. }
  32. > .text {
  33. min-height: 1em;
  34. }
  35. }
  36. .ui.dropdown .menu > .item.header.disabled {
  37. margin: 1em 0 0 0;
  38. opacity: 1;
  39. }
  40. .ui.dropdown .menu > .item.header.disabled:hover,
  41. .ui.dropdown .menu > .item.header.disabled.selected {
  42. background: white;
  43. }
  44. .ui.input {
  45. width: 100%;
  46. &.disabled:not(.retain-appearance) {
  47. opacity: 1;
  48. input {
  49. background: transparent;
  50. border-color: #eee;
  51. border-style: dashed;
  52. }
  53. .ui.primary.buttons .ui.button {
  54. background: #eee;
  55. border-color: transparent;
  56. border-left-color: transparent;
  57. color: #4e4e4e;
  58. .dropdown.icon {
  59. opacity: 0;
  60. }
  61. }
  62. }
  63. &.disabled.error input {
  64. background-color: #fff6f6;
  65. border-color: #e0b4b4;
  66. }
  67. > input {
  68. width: 0;
  69. }
  70. }
  71. .ui.label:not(.ui--Bubble) {
  72. background: transparent;
  73. font-weight: normal;
  74. position: relative;
  75. z-index: 1;
  76. }
  77. .ui.modal {
  78. background: #f9f9f9;
  79. color: #4e4e4e;
  80. font-family: sans-serif;
  81. > .actions,
  82. > .content {
  83. background: transparent;
  84. }
  85. > .actions {
  86. border-top: none;
  87. text-align: right;
  88. padding: 1rem !important;
  89. }
  90. > .header:not(.ui) {
  91. background: #f5f5f5;
  92. font-size: 1.25rem !important;
  93. font-weight: normal;
  94. line-height: 1.25rem;
  95. padding: 1rem 1.5rem;
  96. > label {
  97. margin-top: 0.5rem;
  98. }
  99. }
  100. .description {
  101. margin: 1.5em 0;
  102. font-weight: 700;
  103. }
  104. }
  105. .ui.page.modals.transition.visible {
  106. display: flex !important;
  107. }
  108. .ui.progress {
  109. &.tiny {
  110. font-size: .5rem;
  111. }
  112. .bar {
  113. min-width: 0 !important;
  114. }
  115. }
  116. .ui.secondary.vertical.menu > .item {
  117. margin: 0;
  118. }
  119. .ui[class*="left icon"].input.left.icon > input {
  120. padding-left: 4rem !important;
  121. }
  122. .ui[class*="left icon"].input.left.icon > i.icon.big {
  123. left: -7px;
  124. opacity: 1;
  125. }
  126. .ui.button:disabled,
  127. .ui.buttons .disabled.button,
  128. .ui.disabled.active.button,
  129. .ui.disabled.button,
  130. .ui.disabled.button:hover {
  131. opacity: 0.2 !important;
  132. }
  133. /* modals aligned to top, not center */
  134. .ui.dimmer {
  135. justify-content: flex-start;
  136. }
  137. .ui.menu.tabular {
  138. border-color: #e6e6e6;
  139. /* break out of the wrapping main padding */
  140. margin: -1em -2em 0;
  141. overflow-x: scroll;
  142. padding: 2em 2em 0 2em;
  143. transition: padding-left 0.2s linear 0.4s;
  144. &::-webkit-scrollbar {
  145. display: none;
  146. width: 0px;
  147. }
  148. .item {
  149. border-bottom: 2px solid rgba(0, 0, 0, 0);
  150. border: none;
  151. top: -1px;
  152. &.active {
  153. background: none;;
  154. border-bottom: 2px solid #db2828;
  155. }
  156. }
  157. }
  158. /* remove the default white background, settings app has it as part of Tab */
  159. .ui.segment {
  160. background: transparent;
  161. }
  162. `;