Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.26 KB | None | 0 0
  1. /*zapobiega zmianom wielkosci fonta przy zmianie horyzontalnej w iOS i WP*/
  2. html{-webkit-text-size-adjust: 100%; -ms-text-size-adjust:100%;  }
  3.  
  4. /*daje padding inside the box i margin outside the box*/
  5. * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
  6.  
  7.  
  8. /*----------------------------------------------DEFAULT CSS-------------------------------------------------------------------*/
  9.  
  10. body{
  11.     font-family: 'Varela Round', sans-serif;
  12.     font-size:10px;
  13.      width: 100vw;
  14.     height: 100vh;
  15. }
  16.  
  17.  
  18. /*------------------------- CON AND NAV CSS------------------------ */
  19.  
  20. .container{
  21.     display: flex;
  22.     flex-direction: column;
  23.     width:100vw;
  24.     border: 3px solid blue;
  25. }
  26.  
  27.  .bgimage{
  28.     display: flex;
  29.     flex-direction: column;
  30.     position: relative;
  31.     width: 100%;
  32.     min-height: 80vh;
  33.     /*background-image: url("partysmallcolor.jpg");*/
  34.     background:orange;
  35.     background-size: 100% 100%;
  36.     color:white;
  37. }
  38.  
  39. nav{
  40.     display:flex;
  41.     position: relative;
  42.     width: 100%;
  43.     height: 10vh;
  44.     background: rgba(0,0,0);
  45.  
  46. }
  47.  
  48. .nav-left{
  49.     display:flex;
  50.     align-items:center; /*powoduje ze elementy sa na srodku np logo*/
  51.     width: 50vw;
  52.     height: 10vh;
  53. }
  54.  
  55.  
  56.  
  57. .nav-left img{
  58.     width:5em;
  59.     height: 3.5em;
  60. }
  61.  
  62. .header{
  63.     height: 10vh;
  64.     width:100%; /*ma 100% szerokosci rodzica czyli nav-left*/
  65. }
  66.  
  67. .title{
  68.     display: flex;
  69.     align-items: flex-end;
  70.     height: 6vh; /* tym mozemy ustalic pozycje titla i subtitla, max vh=10*/
  71.     font-size:2em;
  72.     font-weight:bold;
  73. }
  74.  
  75. .subtitle{
  76.     display: flex;
  77.     align-items:center;
  78.     height: 4vh; /* tym mozemy ustalic pozycje titla i subtitla, max vh=10*/
  79.     padding-bottom:.5em;
  80.     font-size:.8em;
  81.     font-style:italic;
  82.  
  83. }
  84.  
  85. .nav-right{
  86.     display:flex;
  87.     justify-content: flex-end;
  88.     align-items: center;
  89.     width: 50vw;
  90.     height: 10vh;
  91. }
  92.  
  93. .nav-right img {
  94.     width:3em;
  95.     height: 2em;
  96.     margin-right:10%;
  97. }
  98.  
  99. .nav-right ol{
  100.         display: none;
  101. }
  102.  
  103. .nav-right ol{
  104.     font-weight: bold;
  105. }
  106.  
  107. .nav-right li:hover{
  108.     color:orange;
  109. }
  110.  
  111. /* ------------------- BANNER ----------------- */
  112.  
  113. .banner{
  114.     display: flex;
  115.     flex-direction: column;
  116.     flex-grow:1;
  117.      /* wypelnia banner reszta miejsca rodzica */
  118.     border-bottom: 3px solid orange;
  119.     text-align: center;
  120. }
  121.  
  122.  .banner p:first-child{
  123.     margin-top:15vh; /*bylo 6rem */
  124.     font-size: 3em;
  125.      font-weight: bold;
  126.      text-decoration: underline;
  127. }
  128.  
  129. .banner p:nth-child(3){
  130.      margin-top:15vh; /* 6 rem*/
  131.     font-size: 2em;
  132. }
  133.  
  134. .banner-buttons{
  135.     display: flex;
  136.     justify-content: center;
  137.     margin-top:3vh;
  138. }
  139.  
  140. .signup{
  141.     width: 25%;
  142.     padding: 1.3em;
  143.     margin-right:5%;
  144.     margin-left:5%;
  145.     border: 1px solid rgb(255,100,0);
  146.     border-radius:25px;
  147.     background:darkorange;
  148. }
  149.  
  150. .signup:hover{
  151.     background:rgb(255,110,0);
  152.     transition: all 0.2s ease;
  153. }
  154.  
  155. /*-------------------------MAIN CSS------------------------ */
  156.  
  157.  main{
  158.     position:relative;
  159.     width:100%;
  160.     border: 3px solid brown;
  161.  
  162. }
  163. /*-------------------------FOOTER CSS------------------------ */
  164.  
  165. footer{
  166.     position:relative;
  167.     width: 100%;
  168.     height: 30vh;
  169.     background: black;
  170. }
  171.  
  172. /*-------------------------------------------------MEDIUM CSS-------------------------------------------------------- */
  173.  
  174. @media only screen and (min-width: 560px){
  175.    
  176.     body{
  177.         font-size: 16px;
  178.     }
  179.    
  180.     .bgimage{
  181.         background-image: url("partymediumcolor.jpg");
  182.     }
  183.    
  184.     .subtitle{
  185.         margin-left:10%;
  186.     }
  187.  
  188.     .signup{
  189.         width: 20%;
  190.        
  191.     }
  192.    
  193. }/*END OF MEDIA QUERY*/
  194.    
  195. /*-------------------------------------------------LARGE CSS-------------------------------------------------------- */
  196. @media only screen and (min-width:1140px){
  197.  
  198.    
  199.     .bgimage{
  200.         background-image: url("partyscaledcolor.jpg");
  201.     }
  202.    
  203.     .nav-right img {
  204.         display: none;
  205.     }
  206.    
  207.     .nav-right ol{
  208.         display: flex;
  209.         justify-content: space-evenly;
  210.         width:100%;
  211.     }
  212.    
  213.     .nav-right li{
  214.         list-style: none;
  215.     }
  216.  
  217.     .signup{
  218.         width: 13%;
  219.        
  220.     }
  221.    
  222. }/*END OF MEDIA QUERY*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement