You are here

coffee.css in Coffee 8

Same filename and directory in other branches
  1. 7.2 css/coffee.css
  2. 7 css/coffee.css

Stylesheet for the Coffee module.

File

css/coffee.css
View source
  1. /**
  2. * @file
  3. * Stylesheet for the Coffee module.
  4. */
  5. [id^="coffee"] {
  6. -webkit-box-sizing: border-box;
  7. -moz-box-sizing: border-box;
  8. box-sizing: border-box;
  9. }
  10. #coffee-bg {
  11. position: fixed;
  12. left: 0;
  13. top: 0;
  14. width: 100%;
  15. height: 100%;
  16. z-index: 999;
  17. }
  18. .coffee-form-wrapper {
  19. pointer-events: none;
  20. left: 0;
  21. width: 100%;
  22. position: fixed;
  23. top: 20%;
  24. z-index: 9999;
  25. }
  26. #coffee-form {
  27. pointer-events: auto;
  28. position: relative;
  29. margin: 0 auto;
  30. max-width: 500px;
  31. width: 100%;
  32. padding: 10px;
  33. font: 16px/1.5 sans-serif;
  34. background: black;
  35. background: rgba(0, 0, 0, 0.4);
  36. border-radius: 15px;
  37. opacity: 1;
  38. -webkit-transition: opacity 0.35s;
  39. -moz-transition: opacity 0.35s;
  40. -o-transition: opacity 0.35s;
  41. transition: opacity 0.35s false;
  42. }
  43. #coffee-form,
  44. #coffee-form input,
  45. #coffee-form a {
  46. -webkit-box-sizing: border-box;
  47. -moz-box-sizing: border-box;
  48. box-sizing: border-box;
  49. }
  50. .coffee-form-wrapper.hide-form {
  51. position: absolute;
  52. top: -100%;
  53. opacity: 0;
  54. }
  55. #coffee-form-inner {
  56. background: #fff;
  57. color: #444;
  58. padding: 10px 10px 1px;
  59. border-radius: 5px;
  60. -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  61. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  62. }
  63. #coffee-q {
  64. background: #d1d1d1;
  65. color: #000;
  66. border: 0;
  67. font: 36px sans-serif;
  68. line-height: 52px;
  69. padding: 5px 10px;
  70. width: 100%;
  71. height: 52px;
  72. outline: none;
  73. display: block;
  74. margin: 0 0 10px;
  75. border-radius: 0;
  76. }
  77. #coffee-q:focus {
  78. -webkit-box-shadow: none;
  79. box-shadow: none;
  80. }
  81. #coffee-results ul {
  82. position: static;
  83. float: none;
  84. list-style: none;
  85. margin: 0;
  86. padding: 10px 0 0;
  87. border: 0;
  88. }
  89. #coffee-results li {
  90. margin: 0;
  91. padding: 0;
  92. float: none;
  93. clear: none;
  94. width: auto;
  95. }
  96. #coffee-results a {
  97. display: block;
  98. border: 0;
  99. outline: none;
  100. color: #444;
  101. padding: 6px 10px 4px;
  102. line-height: normal;
  103. font-size: 16px;
  104. text-decoration: none;
  105. height: auto;
  106. -webkit-transition: none;
  107. -moz-transition: none;
  108. -o-transition: none;
  109. transition: none;
  110. border-radius: 0;
  111. }
  112. #coffee-results .ui-widget-content .ui-state-active,
  113. #coffee-results a.ui-state-hover,
  114. #coffee-results a:focus,
  115. #coffee-results a:hover,
  116. #coffee-results .ui-state-active {
  117. background: #d1d1d1;
  118. color: #000;
  119. margin: 0;
  120. cursor: pointer;
  121. }
  122. #coffee-results .description {
  123. display: block;
  124. font-size: 11px;
  125. color: #888;
  126. }
  127. #coffee-results a.ui-state-hover .description {
  128. color: #666;
  129. }
  130. #coffee-results .ui-widget {
  131. font-family: sans-serif;
  132. }
  133. .toolbar .toolbar-bar .toolbar-icon-coffee:before,
  134. .toolbar .toolbar-bar .toolbar-icon-coffee.active:before {
  135. background-image: url("../images/icons/bebebe/coffee.svg");
  136. }
  137. #coffee-q {
  138. background-image: url("../images/icons/bebebe/coffee.svg");
  139. background-position: right 10px center;
  140. background-repeat: no-repeat;
  141. background-size: 40px 40px;
  142. }
  143. [dir="rtl"] #coffee-q {
  144. background-position: left 20px center;
  145. }