您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

popup.css 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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. font-family: Inconsolata, sans-serif;
  17. background-color: #fff;
  18. }
  19. /***********/
  20. /* BUTTONS */
  21. /***********/
  22. button {
  23. -webkit-appearance: none;
  24. -moz-appearance: none;
  25. background-color: #fff;
  26. border: none;
  27. cursor: pointer;
  28. font-family: Font Awesome, Inconsolata, sans-serif;
  29. }
  30. button:active {
  31. transform: scale(0.95);
  32. }
  33. button:focus {
  34. outline: none;
  35. }
  36. button::selection {
  37. background-color: transparent;
  38. }
  39. /***************/
  40. /* MAIN BUTTON */
  41. /***************/
  42. .main-button-container {
  43. display: flex;
  44. flex-flow: column;
  45. border-bottom: 1px solid #ddd;
  46. }
  47. button.main-button {
  48. padding: 10px;
  49. font-size: 6rem;
  50. display: flex;
  51. align-items: center;
  52. justify-content: center;
  53. height: 150px;
  54. width: 150px;
  55. color: #ccc;
  56. }
  57. button.main-button.active {
  58. color: #000;
  59. }
  60. button.main-button:hover {
  61. text-shadow:
  62. 0 0 1px #fff,
  63. 0 0 3px #fff,
  64. 0 0 5px #fff;
  65. }
  66. button.main-button:hover {
  67. color: #999;
  68. }
  69. button.main-button::before {
  70. content: "\F08D";
  71. font-weight: 900;
  72. position: relative;
  73. top: 3px;
  74. }
  75. button.main-button::after {
  76. content: "\F05E";
  77. position: absolute;
  78. font-weight: 300;
  79. color: #c00;
  80. opacity: 0.0;
  81. transform: scaleX(-1) scale(1.5);
  82. }
  83. button.main-button.active::after {
  84. opacity: 1.0;
  85. }
  86. button.main-button.active:hover::after {
  87. opacity: 0.15;
  88. }
  89. button.main-button.whitelist::after {
  90. opacity: 0.15;
  91. }
  92. button.main-button.whitelist.active::after {
  93. opacity: 0.0;
  94. }
  95. /*********************/
  96. /* AUXILIARY BUTTONS */
  97. /*********************/
  98. .aux-button-container {
  99. display: flex;
  100. border-top: 1px solid #ddd;
  101. flex: 1 1 auto;
  102. padding: 0 8px;
  103. }
  104. .aux-button-container button {
  105. flex: 1 1 auto;
  106. padding: 0;
  107. margin: 2px 10px;
  108. min-width: 0;
  109. display: flex;
  110. flex-flow: column;
  111. align-items: center;
  112. justify-content: center;
  113. font-size: 1.25rem;
  114. }
  115. .aux-button-container button::before {
  116. padding: 4px 0 0 0;
  117. }
  118. .aux-button-container button:hover::before {
  119. color: #000;
  120. }
  121. .aux-button-container button::after {
  122. text-transform: uppercase;
  123. color: #777;
  124. font-size: 0.75rem;
  125. padding: 4px 0 0 0;
  126. }
  127. /*==================*/
  128. /*= OPTIONS BUTTON =*/
  129. /*==================*/
  130. button.options-button::before {
  131. content: "\F1DE";
  132. color: #777;
  133. }
  134. button.options-button::after {
  135. content: "Options";
  136. }
  137. /*===============*/
  138. /*= HELP BUTTON =*/
  139. /*===============*/
  140. button.help-button::before {
  141. content: "\F128";
  142. font-weight: 900;
  143. color: #999;
  144. }
  145. button.help-button::after {
  146. content: "Help";
  147. }
  148. /********/
  149. /* INFO */
  150. /********/
  151. .info {
  152. height: 6rem;
  153. position: relative;
  154. display: flex;
  155. flex-flow: column;
  156. font-size: 1rem;
  157. padding: 10px 8px 6px 8px;
  158. line-height: 1;
  159. }
  160. .info > * {
  161. flex: 1 1 auto;
  162. }
  163. .info.whitelist {
  164. background-color: #000;
  165. color: #fff;
  166. }
  167. .mode-display,
  168. .status-display {
  169. display: flex;
  170. justify-content: center;
  171. align-items: center;
  172. cursor: default;
  173. }
  174. .mode-display::after,
  175. .status-display::after {
  176. font-weight: bold;
  177. }
  178. /*================*/
  179. /*= MODE DISPLAY =*/
  180. /*================*/
  181. .mode-display::after {
  182. content: "Blacklist";
  183. margin: 0 0 0 8px;
  184. }
  185. .info.whitelist .mode-display::after {
  186. content: "Whitelist";
  187. }
  188. /*==================*/
  189. /*= STATUS DISPLAY =*/
  190. /*==================*/
  191. .status-display {
  192. flex-flow: column;
  193. line-height: 1.25;
  194. font-size: 0.875rem;
  195. }
  196. .status-display::after {
  197. font-size: 1.5rem;
  198. line-height: 1;
  199. margin: 2px 0 0 0;
  200. }
  201. .status-display::after,
  202. .info.whitelist .status-display.active::after {
  203. content: "No";
  204. }
  205. .status-display.active::after,
  206. .info.whitelist .status-display::after {
  207. content: "Yes";
  208. }
  209. /*=================*/
  210. /*= RELOAD BUTTON =*/
  211. /*=================*/
  212. button.reload-button {
  213. background-color: #ffd;
  214. border-radius: 6px;
  215. color: #777;
  216. max-height: 0;
  217. padding: 0;
  218. overflow: hidden;
  219. position: absolute;
  220. width: calc(100% - 10px);
  221. height: calc(6rem - 10px);
  222. top: -4rem;
  223. left: 5px;
  224. }
  225. button.reload-button.active {
  226. max-height: 1000px;
  227. padding: 8px;
  228. border: 1px solid #ddd;
  229. top: 5px;
  230. }
  231. button.reload-button:hover {
  232. color: #000;
  233. }
  234. button.reload-button::before {
  235. content: "\F2F1";
  236. font-size: 2rem;
  237. font-weight: 900;
  238. }
  239. /***************/
  240. /* INFO HEADER */
  241. /***************/
  242. .info-header {
  243. text-align: center;
  244. font-size: 0.75rem;
  245. padding: 2px;
  246. background-color: #444;
  247. color: #ccc;
  248. cursor: default;
  249. }
  250. /************/
  251. /* TOOLTIPS */
  252. /************/
  253. .tooltip-overlay {
  254. position: fixed;
  255. width: calc(100% - 20px);
  256. left: 10px;
  257. top: 0;
  258. height: 100%;
  259. pointer-events: none;
  260. }
  261. .tooltip {
  262. background-color: #ffe;
  263. position: absolute;
  264. left: 0;
  265. right: 0;
  266. margin: auto;
  267. padding: 8px 12px;
  268. border: 1px solid #777;
  269. border-radius: 4px;
  270. box-shadow:
  271. 1px 1px 4px 0 #aaa;
  272. text-align: center;
  273. line-height: 1.3;
  274. font-size: 0.75rem;
  275. width: fit-content;
  276. visibility: hidden;
  277. opacity: 0.0;
  278. transition: none;
  279. }
  280. .tooltip.active {
  281. visibility: visible;
  282. opacity: 1.0;
  283. transition: opacity 0.1s ease 0.5s;
  284. }