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.

118 lines
2.3 KiB

10 years ago
10 years ago
  1. /*
  2. * # Semantic - Nag
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2014 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Nag
  13. *******************************/
  14. .ui.nag {
  15. display: none;
  16. opacity: 0.95;
  17. position: relative;
  18. top: 0px;
  19. left: 0%;
  20. z-index: 101;
  21. min-height: 0;
  22. width: 100%;
  23. -webkit-box-sizing: border-box;
  24. -moz-box-sizing: border-box;
  25. -ms-box-sizing: border-box;
  26. box-sizing: border-box;
  27. margin: 0em;
  28. line-height: 3em;
  29. padding: 0em 1em;
  30. background-color: #555555;
  31. -webkit-box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
  32. box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
  33. font-size: 1em;
  34. text-align: center;
  35. color: rgba(255, 255, 255, 0.8);
  36. border-radius: 0px 0px 5px 5px;
  37. -webkit-transition: 0.2s background;
  38. -moz-transition: 0.2s background;
  39. transition: 0.2s background;
  40. }
  41. a.ui.nag {
  42. cursor: pointer;
  43. }
  44. .ui.nag > .title {
  45. display: inline-block;
  46. margin: 0em 0.5em;
  47. color: #FFFFFF;
  48. }
  49. .ui.nag > .close.icon {
  50. cursor: pointer;
  51. opacity: 0.4;
  52. position: absolute;
  53. top: 50%;
  54. right: 1em;
  55. margin-top: -0.5em;
  56. color: #FFFFFF;
  57. -webkit-transition: 0.1s opacity;
  58. -moz-transition: 0.1s opacity;
  59. transition: 0.1s opacity;
  60. }
  61. /*******************************
  62. States
  63. *******************************/
  64. /* Hover */
  65. .ui.nag:hover {
  66. opacity: 1;
  67. }
  68. .ui.nag .close:hover {
  69. opacity: 1;
  70. }
  71. /*******************************
  72. Variations
  73. *******************************/
  74. /*--------------
  75. Static
  76. ---------------*/
  77. .ui.overlay.nag {
  78. position: absolute;
  79. display: block;
  80. }
  81. /*--------------
  82. Fixed
  83. ---------------*/
  84. .ui.fixed.nag {
  85. position: fixed;
  86. }
  87. /*--------------
  88. Bottom
  89. ---------------*/
  90. .ui.bottom.nag {
  91. border-radius: 5px 5px 0px 0px;
  92. }
  93. .ui.fixed.bottom.nags,
  94. .ui.fixed.bottom.nag {
  95. top: auto;
  96. bottom: 0px;
  97. }
  98. /*--------------
  99. White
  100. ---------------*/
  101. .ui.white.nags .nag,
  102. .ui.white.nag {
  103. background-color: #F1F1F1;
  104. text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.8);
  105. color: #ACACAC;
  106. }
  107. .ui.white.nags .nag .close,
  108. .ui.white.nags .nag .title,
  109. .ui.white.nag .close,
  110. .ui.white.nag .title {
  111. color: #333333;
  112. }
  113. /*******************************
  114. Groups
  115. *******************************/
  116. .ui.nags .nag {
  117. border-radius: 0px;
  118. }