Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

popup.css 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. /***********/
  2. /* GENERAL */
  3. /***********/
  4. html {
  5. font-size: 16px;
  6. box-sizing: border-box;
  7. }
  8. *, *::before, *::after {
  9. box-sizing: inherit;
  10. }
  11. body {
  12. margin: 0;
  13. padding: 0;
  14. display: flex;
  15. flex-flow: column;
  16. }
  17. /***********/
  18. /* BUTTONS */
  19. /***********/
  20. button {
  21. -webkit-appearance: none;
  22. -moz-appearance: none;
  23. background-color: #fff;
  24. border: none;
  25. cursor: pointer;
  26. }
  27. button:active {
  28. transform: scale(0.95);
  29. }
  30. button:focus {
  31. outline: none;
  32. }
  33. button::selection {
  34. background-color: transparent;
  35. }
  36. /***************/
  37. /* MAIN BUTTON */
  38. /***************/
  39. .main-button-container {
  40. display: flex;
  41. flex-flow: column;
  42. border-bottom: 1px solid #ddd;
  43. }
  44. button.main-button {
  45. padding: 10px;
  46. font-size: 6rem;
  47. display: flex;
  48. align-items: center;
  49. justify-content: center;
  50. height: 150px;
  51. width: 150px;
  52. color: #ccc;
  53. font-family: Font Awesome;
  54. }
  55. button.main-button.active {
  56. color: #000;
  57. }
  58. button.main-button:hover {
  59. text-shadow:
  60. 0 0 1px #fff,
  61. 0 0 3px #fff,
  62. 0 0 5px #fff;
  63. }
  64. button.main-button:hover {
  65. color: #999;
  66. }
  67. button.main-button::before {
  68. content: "\F08D";
  69. font-weight: 900;
  70. position: relative;
  71. top: 3px;
  72. }
  73. button.main-button::after {
  74. content: "\F05E";
  75. position: absolute;
  76. font-weight: 300;
  77. color: #c00;
  78. opacity: 0.0;
  79. transform: scaleX(-1) scale(1.5);
  80. }
  81. button.main-button.active::after {
  82. opacity: 1.0;
  83. }
  84. button.main-button.active:hover::after {
  85. opacity: 0.15;
  86. }
  87. button.main-button.whitelist::after {
  88. opacity: 0.15;
  89. }
  90. button.main-button.whitelist.active::after {
  91. opacity: 0.0;
  92. }
  93. /*********************/
  94. /* AUXILIARY BUTTONS */
  95. /*********************/
  96. .aux-button-container {
  97. display: flex;
  98. flex-flow: column;
  99. border-top: 1px solid #ddd;
  100. flex: 1 1 auto;
  101. }
  102. /*==================*/
  103. /*= OPTIONS BUTTON =*/
  104. /*==================*/
  105. button.options-button {
  106. font-size: 1.125rem;
  107. padding: 10px;
  108. color: #777;
  109. width: 100%;
  110. flex: 1 1 auto;
  111. font-family: Font Awesome, Inconsolata, sans-serif;
  112. }
  113. button.options-button:hover {
  114. color: #000;
  115. }
  116. button.options-button::before {
  117. content: "\F1DE";
  118. font-family: Font Awesome;
  119. font-size: 0.875em;
  120. margin: 0 6px 0 0;
  121. }
  122. button.options-button::after {
  123. content: "Options";
  124. margin: 0 3px 0 0;
  125. }
  126. /********/
  127. /* INFO */
  128. /********/
  129. .info {
  130. height: 6rem;
  131. position: relative;
  132. display: flex;
  133. flex-flow: column;
  134. font-family: Inconsolata, sans-serif;
  135. font-size: 1rem;
  136. padding: 10px 8px 6px 8px;
  137. line-height: 1;
  138. }
  139. .info > * {
  140. flex: 1 1 auto;
  141. }
  142. .info.whitelist {
  143. background-color: #000;
  144. color: #fff;
  145. }
  146. .mode-display,
  147. .status-display {
  148. display: flex;
  149. justify-content: center;
  150. align-items: center;
  151. cursor: default;
  152. }
  153. .mode-display::after,
  154. .status-display::after {
  155. font-weight: bold;
  156. }
  157. /*================*/
  158. /*= MODE DISPLAY =*/
  159. /*================*/
  160. .mode-display::after {
  161. content: "Blacklist";
  162. margin: 0 0 0 8px;
  163. }
  164. .info.whitelist .mode-display::after {
  165. content: "Whitelist";
  166. }
  167. /*==================*/
  168. /*= STATUS DISPLAY =*/
  169. /*==================*/
  170. .status-display {
  171. flex-flow: column;
  172. line-height: 1.25;
  173. font-size: 0.875rem;
  174. }
  175. .status-display::after {
  176. font-size: 1.5rem;
  177. line-height: 1;
  178. margin: 2px 0 0 0;
  179. }
  180. .status-display::after,
  181. .info.whitelist .status-display.active::after {
  182. content: "No";
  183. }
  184. .status-display.active::after,
  185. .info.whitelist .status-display::after {
  186. content: "Yes";
  187. }
  188. /*=================*/
  189. /*= RELOAD BUTTON =*/
  190. /*=================*/
  191. button.reload-button {
  192. background-color: #ffd;
  193. border-radius: 6px;
  194. color: #777;
  195. max-height: 0;
  196. padding: 0;
  197. overflow: hidden;
  198. position: absolute;
  199. width: calc(100% - 10px);
  200. height: calc(6rem - 10px);
  201. top: -4rem;
  202. left: 5px;
  203. }
  204. button.reload-button.active {
  205. max-height: 1000px;
  206. padding: 8px;
  207. border: 1px solid #ddd;
  208. top: 5px;
  209. }
  210. button.reload-button:hover {
  211. color: #000;
  212. }
  213. button.reload-button::before {
  214. content: "\F2F1";
  215. font-family: Font Awesome;
  216. font-size: 2rem;
  217. font-weight: 900;
  218. }
  219. /***************/
  220. /* INFO HEADER */
  221. /***************/
  222. .info-header {
  223. text-align: center;
  224. font-family: Inconsolata, sans-serif;
  225. font-size: 0.75rem;
  226. padding: 2px;
  227. background-color: #444;
  228. color: #ccc;
  229. cursor: default;
  230. }