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.

159 lines
2.6 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
  1. /*
  2. * # Semantic - Nag
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributor
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Theme
  13. *******************************/
  14. @type : 'module';
  15. @element : 'nag';
  16. @import '../../semantic.config';
  17. /*******************************
  18. Nag
  19. *******************************/
  20. .ui.nag {
  21. display: none;
  22. opacity: @opacity;
  23. position: @position;
  24. top: @top;
  25. left: 0px;
  26. z-index: @zIndex;
  27. min-height: @minHeight;
  28. width: @width;
  29. margin: @margin;
  30. padding: @padding;
  31. background: @background;
  32. box-shadow: @boxShadow;
  33. font-size: @fontSize;
  34. text-align: @textAlign;
  35. color: @color;
  36. border-radius: @topBorderRadius;
  37. transition: @transition;
  38. }
  39. a.ui.nag {
  40. cursor: pointer;
  41. }
  42. .ui.nag > .title {
  43. display: inline-block;
  44. margin: @titleMargin;
  45. color: @titleColor;
  46. }
  47. .ui.nag > .close.icon {
  48. cursor: pointer;
  49. opacity: @closeOpacity;
  50. position: absolute;
  51. top: @closeTop;
  52. right: @closeRight;
  53. font-size: @closeSize;
  54. margin: @closeMargin;
  55. color: @closeColor;
  56. transition: @closeTransition;
  57. }
  58. /*******************************
  59. States
  60. *******************************/
  61. /* Hover */
  62. .ui.nag:hover {
  63. background: @nagHoverBackground;
  64. opacity: @nagHoverOpacity;
  65. }
  66. .ui.nag .close:hover {
  67. opacity: @closeHoverOpacity;
  68. }
  69. /*******************************
  70. Variations
  71. *******************************/
  72. /*--------------
  73. Static
  74. ---------------*/
  75. .ui.overlay.nag {
  76. position: absolute;
  77. display: block;
  78. }
  79. /*--------------
  80. Fixed
  81. ---------------*/
  82. .ui.fixed.nag {
  83. position: fixed;
  84. }
  85. /*--------------
  86. Bottom
  87. ---------------*/
  88. .ui.bottom.nags,
  89. .ui.bottom.nag {
  90. border-radius: @bottomBorderRadius;
  91. top: auto;
  92. bottom: @bottom;
  93. }
  94. /*--------------
  95. White
  96. ---------------*/
  97. .ui.inverted.nags .nag,
  98. .ui.inverted.nag {
  99. background-color: @invertedBackground;
  100. color: @darkTextColor;
  101. }
  102. .ui.inverted.nags .nag .close,
  103. .ui.inverted.nags .nag .title,
  104. .ui.inverted.nag .close,
  105. .ui.inverted.nag .title {
  106. color: @lightTextColor;
  107. }
  108. /*******************************
  109. Groups
  110. *******************************/
  111. .ui.nags .nag {
  112. border-radius: @groupedBorderRadius !important;
  113. }
  114. .ui.nags .nag:last-child {
  115. border-radius: @topBorderRadius;
  116. }
  117. .ui.bottom.nags .nag:last-child {
  118. border-radius: @bottomBorderRadius;
  119. }
  120. .loadUIOverrides();