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.

popup.css 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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. border-top: 1px solid #ddd;
  99. flex: 1 1 auto;
  100. padding: 0 8px;
  101. }
  102. .aux-button-container button {
  103. font-size: 1.25rem;
  104. padding: 0;
  105. flex: 1 1 auto;
  106. font-family: Font Awesome, Inconsolata, sans-serif;
  107. display: flex;
  108. flex-flow: column;
  109. align-items: center;
  110. justify-content: center;
  111. min-width: 0;
  112. }
  113. .aux-button-container button::before {
  114. padding: 4px 0 0 0;
  115. }
  116. .aux-button-container button:hover::before {
  117. color: #000;
  118. }
  119. .aux-button-container button::after {
  120. text-transform: uppercase;
  121. color: #777;
  122. font-size: 0.75rem;
  123. padding: 4px 0 0 0;
  124. }
  125. /*==================*/
  126. /*= OPTIONS BUTTON =*/
  127. /*==================*/
  128. button.options-button::before {
  129. content: "\F1DE";
  130. color: #777;
  131. }
  132. button.options-button::after {
  133. content: "Options";
  134. }
  135. /*===============*/
  136. /*= HELP BUTTON =*/
  137. /*===============*/
  138. button.help-button::before {
  139. content: "\F128";
  140. font-weight: 900;
  141. color: #999;
  142. }
  143. button.help-button::after {
  144. content: "Help";
  145. }
  146. /********/
  147. /* INFO */
  148. /********/
  149. .info {
  150. height: 6rem;
  151. position: relative;
  152. display: flex;
  153. flex-flow: column;
  154. font-family: Inconsolata, sans-serif;
  155. font-size: 1rem;
  156. padding: 10px 8px 6px 8px;
  157. line-height: 1;
  158. }
  159. .info > * {
  160. flex: 1 1 auto;
  161. }
  162. .info.whitelist {
  163. background-color: #000;
  164. color: #fff;
  165. }
  166. .mode-display,
  167. .status-display {
  168. display: flex;
  169. justify-content: center;
  170. align-items: center;
  171. cursor: default;
  172. }
  173. .mode-display::after,
  174. .status-display::after {
  175. font-weight: bold;
  176. }
  177. /*================*/
  178. /*= MODE DISPLAY =*/
  179. /*================*/
  180. .mode-display::after {
  181. content: "Blacklist";
  182. margin: 0 0 0 8px;
  183. }
  184. .info.whitelist .mode-display::after {
  185. content: "Whitelist";
  186. }
  187. /*==================*/
  188. /*= STATUS DISPLAY =*/
  189. /*==================*/
  190. .status-display {
  191. flex-flow: column;
  192. line-height: 1.25;
  193. font-size: 0.875rem;
  194. }
  195. .status-display::after {
  196. font-size: 1.5rem;
  197. line-height: 1;
  198. margin: 2px 0 0 0;
  199. }
  200. .status-display::after,
  201. .info.whitelist .status-display.active::after {
  202. content: "No";
  203. }
  204. .status-display.active::after,
  205. .info.whitelist .status-display::after {
  206. content: "Yes";
  207. }
  208. /*=================*/
  209. /*= RELOAD BUTTON =*/
  210. /*=================*/
  211. button.reload-button {
  212. background-color: #ffd;
  213. border-radius: 6px;
  214. color: #777;
  215. max-height: 0;
  216. padding: 0;
  217. overflow: hidden;
  218. position: absolute;
  219. width: calc(100% - 10px);
  220. height: calc(6rem - 10px);
  221. top: -4rem;
  222. left: 5px;
  223. }
  224. button.reload-button.active {
  225. max-height: 1000px;
  226. padding: 8px;
  227. border: 1px solid #ddd;
  228. top: 5px;
  229. }
  230. button.reload-button:hover {
  231. color: #000;
  232. }
  233. button.reload-button::before {
  234. content: "\F2F1";
  235. font-family: Font Awesome;
  236. font-size: 2rem;
  237. font-weight: 900;
  238. }
  239. /***************/
  240. /* INFO HEADER */
  241. /***************/
  242. .info-header {
  243. text-align: center;
  244. font-family: Inconsolata, sans-serif;
  245. font-size: 0.75rem;
  246. padding: 2px;
  247. background-color: #444;
  248. color: #ccc;
  249. cursor: default;
  250. }