Advertisement
Guest User

iphone squishes everything

a guest
Oct 28th, 2019
1,252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 11.66 KB | None | 0 0
  1. html, body {
  2.   margin: 0;
  3.   padding: 0;
  4.   background-color: #f0f0f0;
  5.   overflow-x: hidden;
  6.   font-size: 16px;
  7. }
  8.  
  9. a {
  10.   color: blue;
  11.   text-decoration: none;
  12. }
  13.  
  14. .nav {
  15.   background-color: #f0f0f0;
  16.   display: flex;
  17.   flex-direction: column;
  18. }
  19.  
  20. .nav-top {
  21.   display: flex;
  22.   padding: 15px;
  23.   overflow: auto;
  24.   font-size: 1em;
  25.   flex: 1;
  26.   align-items: center;
  27. }
  28.  
  29. .logo {
  30.   flex: 1;
  31. }
  32.  
  33. .logo a {
  34.    font-size: 1.5em;
  35.   color: blue;
  36. }
  37.  
  38. .login-btn {
  39.   background-color: blue;
  40.   color: white;
  41.   font-weight: bold;
  42.   border: 0;
  43.   padding: 10px 20px;
  44.   border-radius: 20px;
  45.   margin-right: 15px;
  46.   font-size: .8em;
  47. }
  48.  
  49. .menu-btn {
  50.    font-size: 1.5em;
  51. }
  52.  
  53. .mobile-menu-page, .mobile-search-page {
  54.   z-index: 200;
  55.   position: fixed;
  56.   width: 100%;
  57.   height: 100%;
  58.   background-color: #f0f0f0;
  59.   display: flex;
  60.   flex-direction: column;
  61.   padding: 15px;
  62.   transition: .3s all;
  63.   top: 0;
  64.   left: 100vw;
  65.   min-height: 100%;
  66.   font-size: 1em;
  67. }
  68.  
  69. .mobile-menu-page {
  70.    padding: 0;
  71.    line-height: 2em;
  72. }
  73.  
  74. .m-page-row {
  75.    display: flex;
  76.    flex-direction: row;
  77.    justify-content: space-between;
  78.    align-items: center;
  79.    overflow: auto;
  80.    padding: 0 15px;
  81. }
  82.  
  83. .mobile-menu-page > div:first-child {
  84.    flex: 2;
  85. }
  86.  
  87. .mobile-search-page {
  88.   padding: 0;
  89. }
  90.  
  91. .mobile-menu-page > div:not(:first-child) {
  92.   flex: 1;
  93.   border-bottom: 1px solid #ddd;
  94. }
  95.  
  96. .m-nav-label {
  97.   font-weight: bold;
  98.   padding: 20px 0;
  99. }
  100.  
  101.  
  102. .m-nav-search {
  103.   padding: 0px 15px;
  104.   box-sizing: border-box;
  105. }
  106.  
  107. .m-nav-submit input[type=submit] {
  108.   width: 100%;
  109.   padding: 12px;
  110.   border: 0px solid red;
  111.   border-radius: 20px;
  112.   box-sizing: border-box;
  113.   margin-top: 15px;
  114.   background-color: blue;
  115.   color: white;
  116.   font-weight: bold;
  117. }
  118.  
  119. .nav-btn.active a {
  120.   color: blue;
  121. }
  122.  
  123. .close-button {
  124.   /*position: absolute;
  125.   right: 45px;
  126.   top: 15px;*/
  127.   font-size: 1.5em;
  128. }
  129.  
  130. .mobile-search-page .close-button {
  131.   right: 15px;
  132. }
  133.  
  134. .nav-label {
  135.   display: none;
  136. }
  137.  
  138. input[type=text] {
  139.   width: 100%;
  140.   background-image:  url('https://static.thenounproject.com/png/14173-200.png');
  141.   background-size: 1.5em;
  142.   background-position: 10px 10px;
  143.   background-repeat: no-repeat;
  144.   padding: 12px 20px 12px 40px;
  145.   border: 2px solid #bbb;
  146.   border-radius: 5px;
  147.   box-sizing: border-box;
  148.   flex: 1;
  149. }
  150.  
  151. input[type=text]:focus {
  152.   border: 2px solid black;
  153. }
  154.  
  155. .nav-search {
  156.   flex: 1;
  157.   padding: 0 15px;
  158.   box-sizing: border-box;
  159. }
  160.  
  161. #location-search, #m-location-search, #f-location-search {
  162.   display: none;
  163.   background-image:  url('https://image.flaticon.com/icons/png/512/67/67872.png');
  164.   background-position: 10px 10px;
  165.   background-repeat: no-repeat;
  166.   background-size: 1.5em;
  167.   padding: 12px 20px 12px 40px;
  168. }
  169.  
  170. #m-location-search {
  171.    display: inline-block;
  172. }
  173.  
  174. .nav-search input[type=submit] {
  175.   padding: 12px;
  176.   border: 0px solid red;
  177.   border-radius: 5px;
  178.   box-sizing: border-box;
  179.   flex: 1;
  180.   background-color: blue;
  181.   color: white;
  182.   font-weight: bold;
  183. }
  184.  
  185. .autocomplete {
  186.   /*the container must be positioned relative:*/
  187.   position: relative;
  188.   display: inline-block;
  189.   width: 100%;
  190. }
  191.  
  192. .autocomplete-items {
  193.   position: absolute;
  194.   border: 1px solid #d4d4d4;
  195.   border-bottom: none;
  196.   border-top: none;
  197.   z-index: 300;
  198.   /*position the autocomplete items to be the same width as the container:*/
  199.   top: 100%;
  200.   left: 0;
  201.   right: 0;
  202. }
  203. .autocomplete-items div {
  204.   padding: 10px;
  205.   cursor: pointer;
  206.   background-color: #fff;
  207.   border-bottom: 1px solid #d4d4d4;
  208. }
  209. .autocomplete-items div:hover {
  210.   /*when hovering an item:*/
  211.   background-color: #e9e9e9;
  212. }
  213. .autocomplete-active {
  214.   /*when navigating through the items using the arrow keys:*/
  215.   background-color: DodgerBlue !important;
  216.   color: #ffffff;
  217. }
  218.  
  219. #search-button {
  220.    display: none;
  221. }
  222.  
  223. .nav-filter {
  224.   flex: 1;
  225.   padding: 0 15px;
  226.   padding-bottom: 15px;
  227.   box-sizing: border-box;
  228. }
  229.  
  230. .nav-filter {
  231.   display: flex;
  232.   flex-wrap: nowrap;
  233.   overflow-x: auto;
  234.   -webkit-overflow-scrolling: touch;
  235. }
  236.  
  237. .nav-filter > div {
  238.   flex: 0 0 auto;
  239.   margin-right: 5px;
  240. }
  241.  
  242. .nav-result-info {
  243.   padding: 15px;
  244.   padding-top: 0;
  245. }
  246.  
  247. .nav-result-info a {
  248.    color: blue;
  249. }
  250. .nav-result-info a:hover {
  251.    text-decoration: underline;
  252. }
  253.  
  254. .container {
  255.   display: flex;
  256. }
  257.  
  258. .results-container {
  259.   width: 100vw;
  260.   display: flex;
  261.   flex-direction: column;
  262. }
  263.  
  264. .result-card {
  265.   flex: 1;
  266.   display: flex;
  267.   margin-top: 5px;
  268.   background-color: white;
  269.   padding: 15px;
  270. }
  271.  
  272. .card-date {
  273.   flex: 0 0 5em;
  274.   display: flex;
  275.   flex-direction: column;
  276.   border-right: 1px solid #ddd;
  277.   align-items: center;
  278.   justify-content: center;
  279.   border-radius: 5px;
  280. }
  281.  
  282. .day {
  283.   font-size: 2em;
  284. }
  285.  
  286. .card-info {
  287.   padding-left: 15px;
  288.   flex: 1;
  289.   display: flex;
  290.   flex-direction: column;
  291.   line-height: 1.5em;
  292. }
  293.  
  294. .card-title {
  295.   font-weight: bold;
  296.   font-size: 1.1em;
  297. }
  298.  
  299. .card-pay {
  300.   margin: 10px 0;
  301. }
  302.  
  303. .pay-span {
  304.   background-color: #f0f0f0;
  305.   border-radius: 5px;
  306.   padding: 10px;
  307.   border: 1px solid #ddd;
  308. }
  309.  
  310. .card-actions {
  311.    display: flex;
  312.    flex-direction: column;
  313.    color: #ccc;
  314.    font-size: 1.5em;
  315. }
  316.  
  317. .card-actions > div {
  318.  
  319. }
  320.  
  321. .card-fave:hover {
  322.    color: red;
  323. }
  324. .card-share:hover {
  325.    color: blue;
  326. }
  327.  
  328. i {
  329.   margin-right: 10px;
  330. }
  331.  
  332. .icon-red {
  333.   color: red;
  334. }
  335.  
  336. .icon-orange {
  337.   color: orange;
  338. }
  339.  
  340. .icon-blue {
  341.   color: blue;
  342. }
  343.  
  344. .icon-pink {
  345.   color: deeppink;
  346. }
  347.  
  348. .icon-grey {
  349.    color: #bbb;
  350. }
  351.  
  352. .select-wrapper {
  353.     padding: 0;
  354.     margin: 0;
  355.     border-radius: 20px;
  356.     overflow: hidden;
  357.     background-color: #fff;
  358.     background: #fff;
  359.     position: relative;
  360. }
  361.  
  362. .select-wrapper:after {
  363.     top: 50%;
  364.     left: 85%;
  365.     border: solid transparent;
  366.     content: " ";
  367.     height: 0;
  368.     width: 0;
  369.     position: absolute;
  370.     pointer-events: none;
  371.     border-color: rgba(0, 0, 0, 0);
  372.     border-top-color: black;
  373.     border-width: 5px;
  374.     margin-top: -2px;
  375.     z-index: 100;
  376. }
  377.  
  378. .select-wrapper select {
  379.     padding: 5px 8px;
  380.     width: 130%;
  381.     border: none;
  382.     box-shadow: none;
  383.     background-color: transparent;
  384.     background-image: none;
  385.     -webkit-appearance: none;
  386.        -moz-appearance: none;
  387.             appearance: none;
  388.  
  389. }
  390.  
  391. .select-wrapper select {
  392.   border: 2px solid #bbb;
  393.   border-radius: 20px;
  394.   width: 100%;
  395. }
  396.  
  397. .select-wrapper select:focus {
  398.   outline: none;
  399.   border: 2px solid black;
  400.   border-radius: 20px;
  401.   width: 100%;
  402. }
  403.  
  404. .left-sidebar, .right-sidebar {
  405.   display: none;
  406. }
  407.  
  408. .left-sidebar {
  409.   flex: 0 0 300px;
  410. }
  411.  
  412. .sidebar-title {
  413.   font-size: 1.1em;
  414.   padding-left: 85px;
  415.   margin: 15px 0;
  416.   color: #777;
  417. }
  418.  
  419. ul {
  420.   list-style: none;
  421.   margin: 0;
  422.   padding-left: 100px;
  423.   line-height: 1.5em;
  424.   font-size: 1em;
  425.  
  426. }
  427.  
  428. ul a {
  429.   text-decoration: none;
  430. }
  431. ul a:hover {
  432.   text-decoration: underline;
  433. }
  434.  
  435. .desktop-link {
  436.   display: none;
  437. }
  438.  
  439. .get-alert {
  440.   flex: 1;
  441.   display: flex;
  442.   flex-direction: column;
  443.   background-color: white;
  444.   margin-top: 5px;
  445. }
  446.  
  447. .get-alert > div {
  448.   margin: 15px;
  449. }
  450.  
  451. .get-alert p {
  452.   margin: 0;
  453.   font-size: 1.3em;
  454. }
  455.  
  456. .get-alert input[type=text] {
  457.   background-image: none;
  458. }
  459.  
  460. .get-alert input[type=submit] {
  461.   width: 100%;
  462.   padding: 12px;
  463.   border: 0px solid red;
  464.   border-radius: 20px;
  465.   box-sizing: border-box;
  466.   flex: 1;
  467.   margin-top: 15px;
  468.   background-color: blue;
  469.   color: white;
  470.   font-weight: bold;
  471. }
  472.  
  473. .submit-org {
  474.   flex: 1;
  475.   display: flex;
  476.   flex-direction: column;
  477.   background-color: white;
  478. }
  479.  
  480. .submit-org > div {
  481.   margin: 15px;
  482. }
  483.  
  484. .submit-org a {
  485.   color: blue;
  486. }
  487.  
  488. .submit-org a:hover {
  489.   text-decoration: underline;
  490. }
  491.  
  492. .footer {
  493.   margin: 15px;
  494. }
  495.  
  496. .footer-links {
  497.   display: flex;
  498.   flex-wrap: wrap;
  499. }
  500.  
  501. .footer-column {
  502.   display: flex;
  503.   flex: 1 1 50%;
  504.   flex-direction: column;
  505. }
  506.  
  507. .footer p {
  508.   margin: 20px;
  509.   font-size: .8em;
  510. }
  511.  
  512. .footer .sidebar-title {
  513.   margin: 0;
  514.   padding: 0;
  515. }
  516.  
  517. .footer ul {
  518.   margin: 15px;
  519.   padding: 0;
  520. }
  521.  
  522. .copyright {
  523.   text-align: center;
  524. }
  525.  
  526. .audition-info-card {
  527.    flex: 1;
  528.    display: flex;
  529.    flex-direction: column;
  530.    margin-top: 5px;
  531.    background-color: white;
  532.    padding: 15px;
  533.    line-height: 1.5em;
  534. }
  535.  
  536. .actions {
  537.    position: fixed;
  538.    bottom: 0;
  539.    text-align: center;
  540.    width: 100%;
  541.    border-top: 2px solid #ddd;
  542. }
  543. .actions > div {
  544.    text-align: center;
  545.    flex: 1;
  546. }
  547.  
  548. .icon-lg {
  549.    font-size: 3em;
  550. }
  551.  
  552. iframe {
  553.    width: 100%;
  554. }
  555.  
  556. @media
  557.   only screen and (min-width: 760px) {
  558.  
  559.     html, body {
  560.       height: 100vh;
  561.       overflow: hidden;
  562.     }
  563.  
  564.     body {
  565.       overflow: auto;
  566.     }
  567.  
  568.     .left-sidebar, .right-sidebar {
  569.       display: flex;
  570.       flex-direction: column;
  571.       background-color: white;
  572.       margin: 2px;
  573.     }
  574.  
  575.     .right-sidebar {
  576.       display: none;
  577.       width: 100%;
  578.     }
  579.  
  580.     .results-container {
  581.       flex: 0 0 600px;
  582.     }
  583.  
  584.     .mobile-menu {
  585.       display: none;
  586.     }
  587.  
  588.     .logo {
  589.       padding-left: 15px;
  590.       padding-right: 100px;
  591.     }
  592.  
  593.     .desktop-link {
  594.       display: block;
  595.     }
  596.  
  597.     .desktop-link a {
  598.       display: block;
  599.       border-bottom: 2px solid transparent;
  600.       padding: 12px 0;
  601.       margin: 0 12px;
  602.       font-size: 1em;
  603.       transition: .2s all;
  604.     }
  605.  
  606.     .desktop-link a:hover {
  607.       border-bottom: 2px solid blue;
  608.     }
  609.  
  610.     .desktop-link a.active {
  611.       border-bottom: 2px solid blue;
  612.     }
  613.  
  614.     .desktop-link.highlight a {
  615.       padding: 12px;
  616.       background-color: blue;
  617.       border-bottom: 2px solid blue;
  618.       color: white;
  619.     }
  620.  
  621.     .desktop-link.highlight a:hover {
  622.       color: blue;
  623.       border-bottom: 2px solid blue;
  624.       background-color: inherit;
  625.     }
  626.  
  627.     .desktop-link.blank {
  628.       flex-grow: 10;
  629.     }
  630.  
  631.  
  632.     .nav-top {
  633.       border-bottom: 2px solid #ddd;
  634.       padding: 0;
  635.  
  636.     }
  637.  
  638.     .nav-label {
  639.       display: flex;
  640.     }
  641.  
  642.     .nav-label > div {
  643.       flex: .4;
  644.       padding: 2em 0 5px 15px;
  645.       font-weight: bold;
  646.     }
  647.  
  648.     .nav-label > div:not(:first-child) {
  649.       padding-left: 0;
  650.     }
  651.  
  652.     .nav-search, .nav-filter, .nav-result-info, .nav-label {
  653.       position: relative;
  654.       margin-left: 15;
  655.       min-width: 600px;
  656.       width: auto;
  657.       white-space: nowrap;
  658.     }
  659.  
  660.     .nav-search, .nav-label {
  661.       max-width: 800px;
  662.     }
  663.  
  664.     .autocomplete {
  665.       /*the container must be positioned relative:*/
  666.       position: relative;
  667.       display: inline-block;
  668.       width: 40%;
  669.     }
  670.  
  671.     .autocomplete input[type=text] {
  672.       width: 100%;
  673.    }
  674.  
  675.     .nav-filter {
  676.       width: auto;
  677.       overflow-x: hidden;
  678.       flex-wrap: wrap;
  679.  
  680.     }
  681.     .nav-filter > div {
  682.       margin-bottom: 5px;
  683.     }
  684.  
  685.     input[type=text] {
  686.       width: 40%;
  687.     }
  688.  
  689.     .result-card, .get-alert {
  690.       margin-top: 2px;
  691.     }
  692.  
  693.     .get-alert input {
  694.       width: 100%;
  695.     }
  696.  
  697.     #location-search, #f-location-search {
  698.       display: inline-block;
  699.     }
  700.  
  701.     #search-button {
  702.       display: inline-block;
  703.       width: 20%;
  704.    }
  705.  
  706.     .footer {
  707.       padding: 0 25%;
  708.     }
  709.  
  710.     .footer .nav-search {
  711.       margin: 0;
  712.     }
  713.  
  714.     .footer-column {
  715.       display: flex;
  716.       flex: 1 1 25%;
  717.       flex-direction: column;
  718.     }
  719.  
  720.     .mobile-menu-page, .mobile-search-page {
  721.       display: none;
  722.     }
  723. }
  724.  
  725. @media
  726.   only screen and (min-width: 1000px) {
  727.     .nav-search, .nav-filter, .nav-result-info, .nav-label {
  728.       position: relative;
  729.       margin-left: 300px;
  730.       min-width: 600px;
  731.       width: auto;
  732.       white-space: nowrap;
  733.     }
  734.  
  735.     .right-sidebar {
  736.       display: flex;
  737.    }
  738.  
  739.     .footer .nav-search {
  740.       margin: 0;
  741.     }
  742. }
  743.  
  744. * {
  745.    flex-shrink: 0;
  746. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement