unsubscribe.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. body {
  2. display: grid;
  3. grid-gap: 20px;
  4. grid-template-areas:
  5. "header"
  6. "main"
  7. "footer";
  8. /* Fix height */
  9. height: 100vh;
  10. grid-template-rows: auto 1fr auto;
  11. /* fix top and bottom */
  12. margin-left: 1rem;
  13. margin-right: 1rem;
  14. }
  15. img {
  16. width: 100%;
  17. height: auto;
  18. }
  19. a:link {
  20. color: var(--link);
  21. }
  22. a:visited {
  23. color: var(--link-visited);
  24. }
  25. input[type="text"],
  26. input[type="search"] {
  27. background: var(--background);
  28. border: 1px solid var(--button-border);
  29. padding: 0.4rem 0.4rem;
  30. font-size: 15px;
  31. color: var(--search-text);
  32. outline: none;
  33. box-shadow: none;
  34. }
  35. input[type='search'] {
  36. border-bottom: 1px solid var(--button-border);
  37. border-top: 0px;
  38. border-left: 0px;
  39. border-right: 0px;
  40. border-radius: 0px;
  41. }
  42. header {
  43. display: grid;
  44. grid-gap: 1px;
  45. grid-template-areas:
  46. "home"
  47. "form"
  48. "playlist";
  49. grid-area: header;
  50. }
  51. .home {
  52. grid-area: home;
  53. margin-left: auto;
  54. margin-right: auto;
  55. margin-bottom: 1rem;
  56. margin-top: 1rem;
  57. }
  58. .form {
  59. display: grid;
  60. grid-gap: 4px;
  61. grid-template-areas:
  62. "search-box"
  63. "search-button"
  64. "dropdown";
  65. grid-area: form;
  66. }
  67. .search-box {
  68. grid-area: search-box;
  69. }
  70. .search-button {
  71. grid-area: search-button;
  72. cursor: pointer;
  73. padding-bottom: 6px;
  74. padding-left: .75em;
  75. padding-right: .75em;
  76. padding-top: 6px;
  77. text-align: center;
  78. white-space: nowrap;
  79. background-color: var(--buttom);
  80. border: 1px solid var(--button-border);
  81. color: var(--buttom-text);
  82. border-radius: 5px;
  83. }
  84. .search-button:hover {
  85. background-color: var(--buttom-hover);
  86. }
  87. .dropdown {
  88. display: grid;
  89. grid-gap: 1px;
  90. grid-template-areas:
  91. "dropdown-label"
  92. "dropdown-content";
  93. grid-area: dropdown;
  94. }
  95. .dropdown-label {
  96. grid-area: dropdown-label;
  97. padding-bottom: 6px;
  98. padding-left: .75em;
  99. padding-right: .75em;
  100. padding-top: 6px;
  101. text-align: center;
  102. white-space: nowrap;
  103. background-color: var(--buttom);
  104. border: 1px solid var(--button-border);
  105. color: var(--buttom-text);
  106. border-radius: 5px;
  107. }
  108. .dropdown-label:hover {
  109. background-color: var(--buttom-hover);
  110. }
  111. /* ------------- Menu Mobile sin JS ---------------- */
  112. /* input hidden */
  113. .opt-box {
  114. display: none;
  115. }
  116. .dropdown-content {
  117. display: none;
  118. grid-area: dropdown-content;
  119. }
  120. label[for=options-toggle-cbox] {
  121. cursor: pointer;
  122. -webkit-touch-callout: none;
  123. -webkit-user-select: none;
  124. -khtml-user-select: none;
  125. -moz-user-select: none;
  126. -ms-user-select: none;
  127. user-select: none;
  128. }
  129. #options-toggle-cbox:checked ~ .dropdown-content {
  130. display: block;
  131. white-space: nowrap;
  132. background: var(--secondary-background);
  133. padding: 0.5rem 1rem;
  134. }
  135. /*- ----------- End Menu Mobile sin JS ------------- */
  136. .main {
  137. grid-area: main;
  138. display: flex;
  139. flex-direction: column;
  140. align-items: center;
  141. }
  142. /* fix hr when is children of grid */
  143. hr {
  144. width: 100%;
  145. }
  146. .list-channel {
  147. padding: 0;
  148. }
  149. .list-channel > li {
  150. list-style: none;
  151. }
  152. /* pagination */
  153. .main .pagination-container {
  154. display: grid;
  155. justify-content: center;
  156. }
  157. .main .pagination-container .pagination-list {
  158. display: flex;
  159. flex-direction: row;
  160. flex-wrap: wrap;
  161. justify-content: center;
  162. }
  163. .main .pagination-container .pagination-list .page-link {
  164. border-style: none;
  165. font-weight: bold;
  166. text-align: center;
  167. background: var(--secondary-focus);
  168. text-decoration: none;
  169. align-self: center;
  170. padding: .5rem;
  171. width: 1rem;
  172. }
  173. .main .pagination-container .pagination-list .page-link.is-current {
  174. background: var(--secondary-background);
  175. }
  176. .footer {
  177. grid-area: footer;
  178. display: grid;
  179. grid-template-columns: auto;
  180. align-items: center;
  181. justify-content: center;
  182. margin: auto;
  183. text-align: center;
  184. }
  185. .footer > p {
  186. text-align: center;
  187. }
  188. @media (min-width: 480px) {
  189. .item-video {
  190. font-size: 0.85rem;
  191. }
  192. .info-box {
  193. grid-gap: 2px;
  194. }
  195. .title {
  196. font-size: 1rem;
  197. }
  198. }
  199. @media (min-width: 992px) {
  200. body {
  201. display: grid;
  202. grid-template-columns: 0.3fr 2fr 1fr 0.3fr;
  203. grid-template-rows: auto 1fr auto;
  204. grid-template-areas:
  205. "header header header header"
  206. "main main main main"
  207. "footer footer footer footer";
  208. }
  209. .form {
  210. display: grid;
  211. grid-gap: 1px;
  212. grid-template-columns: 1fr 1.4fr 0.3fr 1.3fr;
  213. grid-template-areas: ". search-box search-button dropdown";
  214. grid-area: form;
  215. position: relative;
  216. }
  217. .dropdown {
  218. display: grid;
  219. grid-gap: 1px;
  220. grid-template-columns: 100px auto;
  221. grid-template-areas:
  222. "dropdown-label"
  223. "dropdown-content";
  224. grid-area: dropdown;
  225. z-index: 1;
  226. position: absolute;
  227. }
  228. #options-toggle-cbox:checked ~ .dropdown-content {
  229. width: calc(100% + 100px);
  230. max-height: 80vh;
  231. overflow-y: scroll;
  232. }
  233. .footer {
  234. display: grid;
  235. grid-template-columns: repeat(3, 1fr);
  236. grid-column-gap: 2rem;
  237. align-items: center;
  238. justify-content: center;
  239. text-align: center;
  240. margin-top: 1rem;
  241. margin-bottom: 1rem;
  242. }
  243. }