ui.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. :root {
  2. --content-height: 100vh;
  3. --language-height: 10vh;
  4. --bottom-height: 10vh;
  5. --nav-top: 25vh;
  6. }
  7. [is="x-ui"] {
  8. font-family: sans-serif;
  9. font-size: 1.5em;
  10. }
  11. body {
  12. margin: 0;
  13. padding: 0;
  14. }
  15. .hidden {
  16. display: none !important;
  17. }
  18. #content {
  19. display: table;
  20. padding: 0;
  21. margin: 0;
  22. width: 100%;
  23. height: var(--content-height);
  24. }
  25. #content .added {
  26. background-repeat: no-repeat;
  27. background-position: center;
  28. background-size: contain;
  29. width: 100vw;
  30. height: 100vh;
  31. }
  32. #control {
  33. position: absolute;
  34. padding: 0;
  35. margin: 0;
  36. height: var(--bottom-height);
  37. bottom: 0;
  38. width: 100%;
  39. }
  40. #control > button {
  41. position: absolute;
  42. bottom: 0.5em;
  43. outline: 0;
  44. }
  45. #control > button::-moz-focus-inner {
  46. border: 0;
  47. }
  48. #control button[name=previous] {
  49. left: 4em;
  50. }
  51. #control button[name=first] {
  52. left: 1em;
  53. }
  54. #control button[name=error] {
  55. left: 50%;
  56. transform: translate(-50%, 0);
  57. }
  58. #control button[name=next] {
  59. right: 4em;
  60. }
  61. #control button[name=last] {
  62. right: 1em;
  63. }
  64. #reasons {
  65. position: absolute;
  66. bottom: var(--bottom-height);
  67. left: 50%;
  68. transform: translate(-50%, 0);
  69. }
  70. #reasons button {
  71. width: 100%;
  72. }
  73. #nope {
  74. display: table-cell;
  75. font-weight: bold;
  76. vertical-align: middle;
  77. text-align: center;
  78. height: 100%;
  79. width: 100%;
  80. font-size: 3em;
  81. }
  82. #nav {
  83. position: absolute;
  84. right: 0;
  85. top: var(--nav-top);
  86. left: 0;
  87. }
  88. #languages {
  89. position: absolute;
  90. right: 0;
  91. top: 0;
  92. flex: 0 1 auto;
  93. text-align: right;
  94. font-size: var(--language-height);
  95. }
  96. @font-face {
  97. font-family: flag-font;
  98. src: local("BabelStoneFlags.ttf") format("truetype");
  99. }
  100. .lang-select-item {
  101. padding-right: 0.1em;
  102. font-family: flag-font;
  103. }