search.css 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. html {
  2. font-family: "liberation serif", "times new roman", calibri, carlito, serif;
  3. background: var(--background);
  4. color: var(--text);
  5. }
  6. body {
  7. display: grid;
  8. grid-gap: 20px;
  9. grid-template-areas:
  10. "header"
  11. "main"
  12. "footer";
  13. /* Fix height */
  14. height: 100vh;
  15. grid-template-rows: auto 1fr auto;
  16. /* fix top and bottom */
  17. margin-left: 1rem;
  18. margin-right: 1rem;
  19. }
  20. img {
  21. width: 100%;
  22. height: auto;
  23. }
  24. a:link {
  25. color: var(--link);
  26. }
  27. a:visited {
  28. color: var(--link-visited);
  29. }
  30. input[type="text"],
  31. input[type="search"] {
  32. background: var(--background);
  33. border: 1px solid var(--button-border);
  34. padding: 0.4rem 0.4rem;
  35. font-size: 15px;
  36. color: var(--search-text);
  37. }
  38. input[type='search'] {
  39. border-bottom: 1px solid var(--button-border);
  40. border-top: 0px;
  41. border-left: 0px;
  42. border-right: 0px;
  43. border-radius: 0px;
  44. }
  45. header {
  46. display: grid;
  47. grid-gap: 1px;
  48. grid-template-areas:
  49. "home"
  50. "form"
  51. "playlist";
  52. grid-area: header;
  53. }
  54. .home {
  55. grid-area: home;
  56. margin-left: auto;
  57. margin-right: auto;
  58. margin-bottom: 1rem;
  59. margin-top: 1rem;
  60. }
  61. .form {
  62. display: grid;
  63. grid-gap: 4px;
  64. grid-template-areas:
  65. "search-box"
  66. "search-button"
  67. "dropdown";
  68. grid-area: form;
  69. }
  70. .search-box {
  71. grid-area: search-box;
  72. }
  73. .search-button {
  74. grid-area: search-button;
  75. cursor: pointer;
  76. padding-bottom: 6px;
  77. padding-left: .75em;
  78. padding-right: .75em;
  79. padding-top: 6px;
  80. text-align: center;
  81. white-space: nowrap;
  82. background-color: var(--buttom);
  83. border: 1px solid var(--button-border);
  84. color: var(--buttom-text);
  85. border-radius: 5px;
  86. }
  87. .search-button:hover {
  88. background-color: var(--buttom-hover);
  89. }
  90. .dropdown {
  91. display: grid;
  92. grid-gap: 1px;
  93. grid-template-areas:
  94. "dropdown-label"
  95. "dropdown-content";
  96. grid-area: dropdown;
  97. z-index: 1;
  98. }
  99. .dropdown-label {
  100. grid-area: dropdown-label;
  101. padding-bottom: 6px;
  102. padding-left: .75em;
  103. padding-right: .75em;
  104. padding-top: 6px;
  105. text-align: center;
  106. white-space: nowrap;
  107. background-color: var(--buttom);
  108. border: 1px solid var(--button-border);
  109. color: var(--buttom-text);
  110. border-radius: 5px;
  111. }
  112. .dropdown-label:hover {
  113. background-color: var(--buttom-hover);
  114. }
  115. /* playlist */
  116. .playlist {
  117. display: grid;
  118. grid-gap: 4px;
  119. grid-template-areas:
  120. "play-box"
  121. "play-hidden"
  122. "play-add"
  123. "play-clean";
  124. grid-area: playlist;
  125. }
  126. .play-box {
  127. grid-area: play-box;
  128. }
  129. .play-hidden {
  130. grid-area: play-hidden;
  131. }
  132. .play-add {
  133. grid-area: play-add;
  134. cursor: pointer;
  135. padding-bottom: 6px;
  136. padding-left: .75em;
  137. padding-right: .75em;
  138. padding-top: 6px;
  139. text-align: center;
  140. white-space: nowrap;
  141. background-color: var(--buttom);
  142. border: 1px solid var(--button-border);
  143. color: var(--buttom-text);
  144. border-radius: 5px;
  145. }
  146. .play-add:hover {
  147. background-color: var(--buttom-hover);
  148. }
  149. .play-clean {
  150. display: grid;
  151. grid-area: play-clean;
  152. }
  153. .play-clean > button {
  154. padding-bottom: 6px;
  155. padding-left: .75em;
  156. padding-right: .75em;
  157. padding-top: 6px;
  158. text-align: center;
  159. white-space: nowrap;
  160. background-color: var(--buttom);
  161. border: 1px solid var(--button-border);
  162. color: var(--buttom-text);
  163. border-radius: 5px;
  164. }
  165. .play-clean > button:hover {
  166. background-color: var(--buttom-hover);
  167. }
  168. /* /playlist */
  169. /* ------------- Menu Mobile sin JS ---------------- */
  170. /* input hidden */
  171. .opt-box {
  172. display: none;
  173. }
  174. .dropdown-content {
  175. display: none;
  176. grid-area: dropdown-content;
  177. }
  178. label[for=options-toggle-cbox] {
  179. cursor: pointer;
  180. -webkit-touch-callout: none;
  181. -webkit-user-select: none;
  182. -khtml-user-select: none;
  183. -moz-user-select: none;
  184. -ms-user-select: none;
  185. user-select: none;
  186. }
  187. #options-toggle-cbox:checked ~ .dropdown-content {
  188. display: inline-grid;
  189. white-space: nowrap;
  190. }
  191. /*- ----------- End Menu Mobile sin JS ------------- */
  192. .main {
  193. grid-area: main;
  194. display: grid;
  195. grid-row-gap: 1rem;
  196. }
  197. /* fix hr when is children of grid */
  198. hr {
  199. width: 100%;
  200. }
  201. .result-info {
  202. justify-self: center;
  203. }
  204. /* pagination */
  205. .main .pagination-container {
  206. display: grid;
  207. justify-content: center;
  208. }
  209. .main .pagination-container .pagination-list {
  210. display: flex;
  211. flex-direction: row;
  212. flex-wrap: wrap;
  213. justify-content: center;
  214. }
  215. .main .pagination-container .pagination-list .page-link {
  216. border-style: none;
  217. font-weight: bold;
  218. text-align: center;
  219. background: var(--secondary-focus);
  220. text-decoration: none;
  221. align-self: center;
  222. padding: .5rem;
  223. margin: 0.2rem;
  224. width: 1rem;
  225. }
  226. .main .pagination-container .pagination-list .page-link.is-current {
  227. background: var(--secondary-background);
  228. }
  229. /* Country list item */
  230. .country-container {
  231. display: grid;
  232. grid-row-gap: 0.5rem;
  233. }
  234. .length {
  235. position: absolute;
  236. background-color: rgba(35, 35, 35, 0.75);
  237. color: #fff;
  238. border-radius: 2px;
  239. padding: 2px;
  240. font-size: 16px;
  241. right: 0.25em;
  242. bottom: -0.75em;
  243. }
  244. .item-box {
  245. display: grid;
  246. grid-template-columns: 1.9fr 0.1fr;
  247. grid-template-rows: 1fr;
  248. grid-gap: 1px;
  249. grid-template-areas:
  250. "item-country item-checkbox";
  251. }
  252. .item-country {
  253. grid-area: item-country;
  254. display: grid;
  255. grid-template-columns: auto;
  256. grid-template-rows: repeat(4, auto);
  257. grid-row-gap: 0.4rem;
  258. grid-template-areas:
  259. "thumbnail-box"
  260. "info-box";
  261. align-items: center;
  262. font-size: 0.7rem;
  263. }
  264. .item-country a {
  265. text-decoration: none;
  266. cursor: pointer;
  267. }
  268. .item-country.channel-item .thumbnail.channel {
  269. display: flex;
  270. justify-content: center;
  271. align-items: center;
  272. padding: 0px;
  273. text-align: center;
  274. }
  275. .item-country.channel-item .thumbnail-img.channel {
  276. width: 56.25%;
  277. position: relative;
  278. }
  279. .thumbnail-box {
  280. grid-area: thumbnail-box;
  281. position: relative;
  282. }
  283. .playlist-item .thumbnail-info {
  284. position: absolute;
  285. right: 0px;
  286. bottom: 0px;
  287. height: 100%;
  288. width: 50%;
  289. text-align: center;
  290. white-space: pre-line;
  291. opacity: .8;
  292. color: var(--text);
  293. font-size: 0.8125rem;
  294. background: var(--secondary-background);
  295. padding: 0;
  296. }
  297. .playlist-item .thumbnail-info span {
  298. position: absolute;
  299. top: 50%;
  300. transform: translate(-50%, -50%);
  301. text-transform: none;
  302. }
  303. .thumbnail {
  304. padding: 28.125%;
  305. position: relative;
  306. box-sizing: border-box;
  307. }
  308. .thumbnail-img {
  309. position: absolute;
  310. width: 100%;
  311. height: 100%;
  312. left: 0;
  313. top: 0;
  314. object-fit: cover;
  315. background-color: var(--primary-background);
  316. }
  317. .title {
  318. font-size: 0.8rem;
  319. margin: 0px;
  320. font-weight: normal;
  321. overflow: hidden;
  322. text-overflow: ellipsis;
  323. }
  324. .info-box address {
  325. white-space: nowrap;
  326. overflow: hidden;
  327. text-overflow: ellipsis;
  328. }
  329. .thumbnail-info {
  330. background-color: var(--time-background);
  331. color: #fff;
  332. padding: 2px 5px;
  333. text-transform: uppercase;
  334. font-weight: 700;
  335. font-size: 12px;
  336. position: absolute;
  337. right: 0;
  338. bottom: .2rem;
  339. }
  340. .item-checkbox {
  341. grid-area: item-checkbox;
  342. justify-self: start;
  343. align-self: center;
  344. min-width: 30px;
  345. margin: 0px;
  346. }
  347. .stats {
  348. display: flex;
  349. justify-content: space-between;
  350. }
  351. .horizontal-stats > li {
  352. display: inline;
  353. }
  354. .horizontal-stats > li:first-child::after {
  355. content: " | ";
  356. }
  357. /* /country list item */
  358. .footer {
  359. grid-area: footer;
  360. display: grid;
  361. grid-template-columns: auto;
  362. align-items: center;
  363. justify-content: center;
  364. margin: auto;
  365. text-align: center;
  366. }
  367. .footer > p {
  368. text-align: center;
  369. }
  370. @media (min-width: 480px) {
  371. .item-country {
  372. font-size: 0.85rem;
  373. }
  374. .info-box {
  375. grid-gap: 2px;
  376. }
  377. .title {
  378. font-size: 1rem;
  379. }
  380. }
  381. @media (min-width: 600px) {
  382. .country-container {
  383. display: grid;
  384. grid-row-gap: 0.5rem;
  385. grid-template-columns: 1fr 1fr;
  386. }
  387. }
  388. @media (min-width: 992px) {
  389. body {
  390. display: grid;
  391. grid-template-columns: 0.3fr 2fr 1fr 0.3fr;
  392. grid-template-rows: auto 1fr auto;
  393. grid-template-areas:
  394. "header header header header"
  395. "main main main main"
  396. "footer footer footer footer";
  397. }
  398. .form {
  399. display: grid;
  400. grid-gap: 1px;
  401. grid-template-columns: 1fr 1.4fr 0.3fr 1.3fr;
  402. grid-template-areas: ". search-box search-button dropdown";
  403. grid-area: form;
  404. position: relative;
  405. }
  406. .dropdown {
  407. display: grid;
  408. grid-gap: 1px;
  409. grid-template-columns: minmax(50px, 100px);
  410. grid-template-areas:
  411. "dropdown-label"
  412. "dropdown-content";
  413. grid-area: dropdown;
  414. background: var(--background);
  415. padding-right: 4rem;
  416. z-index: 1;
  417. position: absolute;
  418. }
  419. /* playlist */
  420. .playlist {
  421. display: grid;
  422. grid-gap: 1px;
  423. grid-template-columns: 1fr 1.4fr 0.3fr 1.3fr;
  424. grid-template-areas: ". play-box play-add play-clean";
  425. grid-area: playlist;
  426. }
  427. .play-clean {
  428. grid-template-columns: minmax(50px, 100px);
  429. }
  430. .play-clean > button {
  431. padding-left: 0px;
  432. padding-right: 0px;
  433. padding-bottom: 6px;
  434. padding-top: 6px;
  435. text-align: center;
  436. white-space: nowrap;
  437. background-color: var(--buttom);
  438. color: var(--buttom-text);
  439. border-radius: 5px;
  440. cursor: pointer;
  441. }
  442. .country-container {
  443. display: grid;
  444. grid-template-columns: repeat(4, 1fr);
  445. grid-row-gap: 1rem;
  446. grid-column-gap: 1rem;
  447. }
  448. .footer {
  449. display: grid;
  450. grid-template-columns: repeat(3, auto);
  451. grid-column-gap: 2rem;
  452. align-items: center;
  453. justify-content: center;
  454. text-align: center;
  455. margin-top: 1rem;
  456. margin-bottom: 1rem;
  457. }
  458. }