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.

157 lines
2.5 KiB

  1. /*
  2. * # Semantic - Modal
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Modal
  13. *******************************/
  14. .ui.modal {
  15. display: none;
  16. position: fixed;
  17. z-index: 1001;
  18. top: 50%;
  19. left: 50%;
  20. text-align: left;
  21. width: 800px;
  22. margin-left: -400px;
  23. background-color: #FFFFFF;
  24. border: 1px solid #DDDDDD;
  25. -webkit-border-radius: 5px;
  26. -moz-border-radius: 5px;
  27. border-radius: 5px;
  28. }
  29. /*******************************
  30. Content
  31. *******************************/
  32. /*--------------
  33. Close
  34. ---------------*/
  35. .ui.modal > .close {
  36. cursor: pointer;
  37. position: absolute;
  38. opacity: 0.8;
  39. font-size: 1.25em;
  40. top: -1.75em;
  41. right: -1.75em;
  42. color: #FFFFFF;
  43. }
  44. .ui.modal > .close:hover {
  45. opacity: 1;
  46. }
  47. /*--------------
  48. Header
  49. ---------------*/
  50. .ui.modal > .header {
  51. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  52. margin: 0em;
  53. padding: 1.5rem 2rem;
  54. font-size: 1.6em;
  55. font-weight: bold;
  56. -webkit-border-radius: 0.325em 0.325em 0px 0px;
  57. -moz-border-radius: 0.325em 0.325em 0px 0px;
  58. border-radius: 0.325em 0.325em 0px 0px;
  59. }
  60. /*--------------
  61. Content
  62. ---------------*/
  63. .ui.modal > .content {
  64. display: table;
  65. width: 100%;
  66. position: relative;
  67. padding: 2em;
  68. background-color: #F4F4F4;
  69. -webkit-box-sizing: border-box;
  70. -moz-box-sizing: border-box;
  71. -ms-box-sizing: border-box;
  72. box-sizing: border-box;
  73. }
  74. .ui.modal > .content > .left {
  75. display: table-cell;
  76. padding-right: 5%;
  77. }
  78. .ui.modal > .content > .right {
  79. display: table-cell;
  80. padding-left: 5%;
  81. vertical-align: middle;
  82. box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1);
  83. }
  84. .ui.modal > .content p {
  85. line-height: 1.6;
  86. }
  87. /*--------------
  88. Actions
  89. ---------------*/
  90. .ui.modal .actions {
  91. border-top: 1px solid rgba(0, 0, 0, 0.1);
  92. padding: 1rem 2rem;
  93. text-align: right;
  94. }
  95. .ui.modal .actions > .button {
  96. margin-left: 0.75em;
  97. }
  98. /*******************************
  99. Types
  100. *******************************/
  101. .ui.basic.modal {
  102. background-color: transparent;
  103. border: none;
  104. color: #FFFFFF;
  105. }
  106. .ui.basic.modal .content {
  107. background-color: transparent;
  108. }
  109. /*******************************
  110. Variations
  111. *******************************/
  112. /* A modal that cannot fit on the page */
  113. .ui.modal.scrolling {
  114. position: absolute;
  115. margin-top: 100px;
  116. }
  117. /*******************************
  118. States
  119. *******************************/
  120. .ui.active.modal {
  121. display: block;
  122. }