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.

174 lines
2.9 KiB

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