選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

popup.css 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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. }
  18. /***********/
  19. /* BUTTONS */
  20. /***********/
  21. button {
  22. -webkit-appearance: none;
  23. -moz-appearance: none;
  24. background-color: #fff;
  25. border: none;
  26. cursor: pointer;
  27. font-family: Font Awesome, Inconsolata, sans-serif;
  28. }
  29. button:active {
  30. transform: scale(0.95);
  31. }
  32. button:focus {
  33. outline: none;
  34. }
  35. button::selection {
  36. background-color: transparent;
  37. }
  38. /***************/
  39. /* MAIN BUTTON */
  40. /***************/
  41. .main-button-container {
  42. display: flex;
  43. flex-flow: column;
  44. border-bottom: 1px solid #ddd;
  45. }
  46. button.main-button {
  47. padding: 10px;
  48. font-size: 6rem;
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. height: 150px;
  53. width: 150px;
  54. color: #ccc;
  55. }
  56. button.main-button.active {
  57. color: #000;
  58. }
  59. button.main-button:hover {
  60. text-shadow:
  61. 0 0 1px #fff,
  62. 0 0 3px #fff,
  63. 0 0 5px #fff;
  64. }
  65. button.main-button:hover {
  66. color: #999;
  67. }
  68. button.main-button::before {
  69. content: "\F08D";
  70. font-weight: 900;
  71. position: relative;
  72. top: 3px;
  73. }
  74. button.main-button::after {
  75. content: "\F05E";
  76. position: absolute;
  77. font-weight: 300;
  78. color: #c00;
  79. opacity: 0.0;
  80. transform: scaleX(-1) scale(1.5);
  81. }
  82. button.main-button.active::after {
  83. opacity: 1.0;
  84. }
  85. button.main-button.active:hover::after {
  86. opacity: 0.15;
  87. }
  88. button.main-button.whitelist::after {
  89. opacity: 0.15;
  90. }
  91. button.main-button.whitelist.active::after {
  92. opacity: 0.0;
  93. }
  94. /*********************/
  95. /* AUXILIARY BUTTONS */
  96. /*********************/
  97. .aux-button-container {
  98. display: flex;
  99. border-top: 1px solid #ddd;
  100. flex: 1 1 auto;
  101. padding: 0 8px;
  102. }
  103. .aux-button-container button {
  104. flex: 1 1 auto;
  105. padding: 0;
  106. margin: 2px 10px;
  107. min-width: 0;
  108. display: flex;
  109. flex-flow: column;
  110. align-items: center;
  111. justify-content: center;
  112. font-size: 1.25rem;
  113. }
  114. .aux-button-container button::before {
  115. padding: 4px 0 0 0;
  116. }
  117. .aux-button-container button:hover::before {
  118. color: #000;
  119. }
  120. .aux-button-container button::after {
  121. text-transform: uppercase;
  122. color: #777;
  123. font-size: 0.75rem;
  124. padding: 4px 0 0 0;
  125. }
  126. /*==================*/
  127. /*= OPTIONS BUTTON =*/
  128. /*==================*/
  129. button.options-button::before {
  130. content: "\F1DE";
  131. color: #777;
  132. }
  133. button.options-button::after {
  134. content: "Options";
  135. }
  136. /*===============*/
  137. /*= HELP BUTTON =*/
  138. /*===============*/
  139. button.help-button::before {
  140. content: "\F128";
  141. font-weight: 900;
  142. color: #999;
  143. }
  144. button.help-button::after {
  145. content: "Help";
  146. }
  147. /********/
  148. /* INFO */
  149. /********/
  150. .info {
  151. height: 6rem;
  152. position: relative;
  153. display: flex;
  154. flex-flow: column;
  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-size: 2rem;
  236. font-weight: 900;
  237. }
  238. /***************/
  239. /* INFO HEADER */
  240. /***************/
  241. .info-header {
  242. text-align: center;
  243. font-size: 0.75rem;
  244. padding: 2px;
  245. background-color: #444;
  246. color: #ccc;
  247. cursor: default;
  248. }
  249. /************/
  250. /* TOOLTIPS */
  251. /************/
  252. .tooltip-overlay {
  253. position: fixed;
  254. width: calc(100% - 20px);
  255. left: 10px;
  256. top: 0;
  257. height: 100%;
  258. pointer-events: none;
  259. }
  260. .tooltip {
  261. background-color: #ffe;
  262. position: absolute;
  263. left: 0;
  264. right: 0;
  265. margin: auto;
  266. padding: 8px 12px;
  267. border: 1px solid #777;
  268. border-radius: 4px;
  269. box-shadow:
  270. 1px 1px 4px 0 #aaa;
  271. text-align: center;
  272. line-height: 1.3;
  273. font-size: 0.75rem;
  274. width: fit-content;
  275. visibility: hidden;
  276. opacity: 0.0;
  277. transition: none;
  278. }
  279. .tooltip.active {
  280. visibility: visible;
  281. opacity: 1.0;
  282. transition: opacity 0.1s ease 0.5s;
  283. }