You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

314 lines
6.5 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /*
  2. * # Semantic - Modal
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'module';
  15. @element : 'modal';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Modal
  19. *******************************/
  20. .ui.modal {
  21. display: none;
  22. position: fixed;
  23. z-index: 1001;
  24. top: 50%;
  25. left: 50%;
  26. text-align: left;
  27. width: @modalWidth;
  28. margin-left: @modalXOffset;
  29. background-color: #FFFFFF;
  30. border: 1px solid #DDDDDD;
  31. border-radius: @modalBorderRadius;
  32. user-select: text;
  33. }
  34. /*******************************
  35. Content
  36. *******************************/
  37. /*--------------
  38. Close
  39. ---------------*/
  40. .ui.modal > .close {
  41. cursor: pointer;
  42. position: absolute;
  43. top: @modalCloseTop;
  44. right: @modalCloseRight;
  45. z-index: 1;
  46. opacity: @modalCloseOpacity;
  47. font-size: @modalCloseSize;
  48. color: @modalCloseColor;
  49. width: @modalCloseHitbox;
  50. height: @modalCloseHitbox;
  51. padding: @modalClosePadding;
  52. }
  53. .ui.modal > .close:hover {
  54. opacity: 1;
  55. }
  56. /*--------------
  57. Header
  58. ---------------*/
  59. .ui.modal > .header {
  60. font-family: @modalHeaderFontFamily;
  61. margin: @modalHeaderMargin;
  62. padding: @modalHeaderPadding;
  63. font-size: @modalHeaderFontSize;
  64. font-weight: @modalHeaderFontWeight;
  65. border-top-left-radius: @modalBorderRadius;
  66. border-top-right-radius: @modalBorderRadius;
  67. }
  68. /*--------------
  69. Content
  70. ---------------*/
  71. .ui.modal > .content {
  72. position: relative;
  73. display: table;
  74. width: 100%;
  75. font-size: @modalContentFontSize;
  76. line-height: @modalContentLineHeight;
  77. padding: @modalContentPadding;
  78. background: @modalContentBackground;
  79. }
  80. .ui.modal > .content > .image {
  81. display: table-cell;
  82. padding-right: @modalImagePadding;
  83. min-width: @modalImageMinWidth;
  84. }
  85. .ui.modal > .content > .description {
  86. display: table-cell;
  87. vertical-align: top;
  88. padding-left: @modalDescriptionPadding;
  89. min-width: @modalDescriptionMinWidth;
  90. }
  91. /*rtl:ignore*/
  92. .ui.modal > .content > .image > i.icon {
  93. font-size: @modalImageIconSize;
  94. margin: 0em;
  95. }
  96. /*--------------
  97. Actions
  98. ---------------*/
  99. .ui.modal .actions {
  100. padding: @modalActionPadding;
  101. text-align: right;
  102. }
  103. .ui.modal .actions > .button {
  104. margin-left: @modalButtonDistance;
  105. }
  106. /*-------------------
  107. Responsive
  108. --------------------*/
  109. /* Modal Width */
  110. @media only screen and (max-width : (@tabletBreakpoint - 1px)) {
  111. .ui.modal {
  112. width: @modalMobileWidth;
  113. margin: @modalMobileMargin;
  114. }
  115. }
  116. @media only screen and (min-width : @tabletBreakpoint) {
  117. .ui.modal {
  118. width: @modalTabletWidth;
  119. margin: @modalTabletMargin;
  120. }
  121. }
  122. @media only screen and (min-width : @computerBreakpoint) {
  123. .ui.modal {
  124. width: @modalComputerWidth;
  125. margin: @modalComputerMargin;
  126. }
  127. }
  128. @media only screen and (min-width : @largeMonitorBreakpoint) {
  129. .ui.modal {
  130. width: @modalLargeMonitorWidth;
  131. margin: @modalLargeMonitorMargin;
  132. }
  133. }
  134. @media only screen and (min-width : @widescreenMonitorBreakpoint) {
  135. .ui.modal {
  136. width: @modalWidescreenMonitorWidth;
  137. margin: @modalWidescreenMonitorMargin;
  138. }
  139. }
  140. /* Position Adjustments */
  141. @media only screen and (max-width : (@tabletBreakpoint - 1px)) {
  142. /*rtl:ignore*/
  143. .ui.modal .content > .image {
  144. display: block;
  145. padding: @modalMobileImagePadding;
  146. }
  147. /*rtl:ignore*/
  148. .ui.modal .content > .description {
  149. display: block;
  150. padding: @modalMobileDescriptionPadding;
  151. box-shadow: none;
  152. }
  153. .ui.modal .content .image {
  154. width: auto !important;
  155. max-width: 100%;
  156. }
  157. .ui.modal .actions {
  158. padding-bottom: 0em
  159. }
  160. .ui.modal .actions > .buttons,
  161. .ui.modal .actions > .button {
  162. margin-bottom: @modalMobileButtonDistance;
  163. }
  164. }
  165. /* Tablet and Mobile */
  166. @media only screen and (max-width : @computerBreakpoint) {
  167. .ui.modal > .close {
  168. top: @modalInnerCloseTop;
  169. right: @modalInnerCloseRight;
  170. color: @modalInnerCloseColor;
  171. }
  172. }
  173. /*******************************
  174. Types
  175. *******************************/
  176. .ui.basic.modal {
  177. background-color: transparent;
  178. border: none;
  179. color: @basicModalColor;
  180. }
  181. .ui.basic.modal > .close {
  182. top: @basicModalCloseTop;
  183. right: @basicModalCloseRight;
  184. }
  185. .ui.basic.modal .content {
  186. background-color: transparent;
  187. }
  188. /*******************************
  189. Variations
  190. *******************************/
  191. /* A modal that cannot fit on the page */
  192. .ui.modal.scrolling {
  193. position: absolute;
  194. margin-top: @scrollingTopMargin;
  195. }
  196. /*******************************
  197. States
  198. *******************************/
  199. .ui.active.modal {
  200. display: block;
  201. }
  202. /*--------------
  203. Size
  204. ---------------*/
  205. /* Small */
  206. .ui.small.modal > .header {
  207. font-size: @modalSmallHeaderSize;
  208. }
  209. /* Small Modal Width */
  210. @media only screen and (max-width : (@tabletBreakpoint - 1px)) {
  211. .ui.small.modal {
  212. width: @modalSmallMobileWidth;
  213. margin: @modalSmallMobileMargin;
  214. }
  215. }
  216. @media only screen and (min-width : @tabletBreakpoint) {
  217. .ui.small.modal {
  218. width: @modalSmallTabletWidth;
  219. margin: @modalSmallTabletMargin;
  220. }
  221. }
  222. @media only screen and (min-width : @computerBreakpoint) {
  223. .ui.small.modal {
  224. width: @modalSmallComputerWidth;
  225. margin: @modalSmallComputerMargin;
  226. }
  227. }
  228. @media only screen and (min-width : @largeMonitorBreakpoint) {
  229. .ui.small.modal {
  230. width: @modalSmallLargeMonitorWidth;
  231. margin: @modalSmallLargeMonitorMargin;
  232. }
  233. }
  234. @media only screen and (min-width : @widescreenMonitorBreakpoint) {
  235. .ui.small.modal {
  236. width: @modalSmallWidescreenMonitorWidth;
  237. margin: @modalSmallWidescreenMonitorMargin;
  238. }
  239. }
  240. /* Large Modal Width */
  241. .ui.large.modal > .header {
  242. font-size: @modalLargeHeaderSize;
  243. }
  244. @media only screen and (max-width : (@tabletBreakpoint - 1px)) {
  245. .ui.large.modal {
  246. width: @modalLargeMobileWidth;
  247. margin: @modalLargeMobileMargin;
  248. }
  249. }
  250. @media only screen and (min-width : @tabletBreakpoint) {
  251. .ui.large.modal {
  252. width: @modalLargeTabletWidth;
  253. margin: @modalLargeTabletMargin;
  254. }
  255. }
  256. @media only screen and (min-width : @computerBreakpoint) {
  257. .ui.large.modal {
  258. width: @modalLargeComputerWidth;
  259. margin: @modalLargeComputerMargin;
  260. }
  261. }
  262. @media only screen and (min-width : @largeMonitorBreakpoint) {
  263. .ui.large.modal {
  264. width: @modalLargeLargeMonitorWidth;
  265. margin: @modalLargeLargeMonitorMargin;
  266. }
  267. }
  268. @media only screen and (min-width : @widescreenMonitorBreakpoint) {
  269. .ui.large.modal {
  270. width: @modalLargeWidescreenMonitorWidth;
  271. margin: @modalLargeWidescreenMonitorMargin;
  272. }
  273. }
  274. .loadUIOverrides();