eulaliaaires

css done media

May 23rd, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.69 KB | None | 0 0
  1. body{
  2.     margin:  0;
  3. }
  4. .clip{
  5.     webkit-clip-path: polygon(50% 0%, 100% 0, 100% 39%, 66% 44%, 40% 71%, 0 71%, 0 0);
  6.     clip-path: polygon(50% 0%, 100% 0, 100% 39%, 66% 44%, 40% 71%, 0 71%, 0 0);
  7.     position: relative;
  8.     width: 100%;
  9.     height: 1325px;
  10.     background: linear-gradient(#858688,#4b83ae,#3a85bf);
  11. }
  12. .flex-margin{
  13.     position: absolute;
  14.     top: 0;
  15.     display:flex;
  16.     justify-content: center;
  17.     width: 100%;
  18.     height: 1268px;
  19. }
  20. .flex-container{
  21.     padding: 20px;
  22.     display: flex;
  23.     flex-direction: column;
  24.     justify-content: space-between;
  25.     width: 80%;
  26. }
  27. .main_title{
  28.     line-height: 330px;
  29.     font-size: 55px;
  30.     font-family:'Open Sans', sans-serif;
  31.     float: left;
  32.     width: 240px;
  33.     border-bottom: 5px solid #fff;
  34.     height: 225px;
  35. }
  36. .style{
  37.     font-weight: 700;
  38.     color: #fff;
  39. }
  40. .style2{
  41.     font-style: italic;
  42.     font-weight: 400;
  43.     color: #fff;
  44. }
  45. .text_and_image{
  46.     display: flex;
  47.     flex-direction: row;
  48.     justify-content: space-between;
  49.     align-items: center;
  50.     height: 32%;
  51.     width: 100%;
  52. }
  53. .text{
  54.     font-size: 19px;
  55.     font-family:'Open Sans', sans-serif;
  56.     color: #fff;
  57.     text-align: left;
  58.     float: left;
  59.     width: 50%;
  60. }
  61. .imagem{
  62.     left: 30px;
  63.     vertical-align: sub;
  64. }
  65. .imagem img{
  66.     left: 100px;
  67.     width: 425px;
  68.  
  69. }
  70. .data_set{
  71.     display: flex;
  72.     flex-direction: row;
  73.     justify-content: space-between;
  74.     align-items: center;
  75.     height: 43%;
  76.     width: 100%;
  77. }
  78. .flex-items{
  79.  
  80.     display: flex;
  81.     flex-direction: column;
  82.     justify-content: space-evenly;
  83.     align-items: center;
  84.     width: 30%;
  85.     height: 55%;
  86.     background-color: #fff;
  87.     box-shadow: 1px 2px 1px 2px #d3d3d3;
  88.     border-radius: 3px;
  89. }
  90. .icon i{
  91.     color:#3a85bf;
  92.     font-size: 70px;
  93. }
  94.  
  95. .title2{
  96.     font-size: 25px;
  97.     font-family: 'Open Sans', sans-serif;
  98.     font-weight: 700;
  99.     color:#373435;
  100.     letter-spacing: 5px;
  101.     height: 6%;
  102. }
  103. .text2{
  104.     font-size: 16px;
  105.     font-family: 'Open Sans', sans-serif;
  106.     font-weight: 400;
  107.     color:#373435;
  108.     text-align: center;
  109.     height: 29%;
  110.     width: 80%;
  111. }
  112. @media(max-width: 1030px){          
  113.     .imagem img{
  114.         left: 100px;
  115.         width: 367px;
  116.     }
  117. }
  118. @media(max-width:770px){
  119.     body{
  120.         margin: 0;
  121.     }
  122.     .clip{
  123.         -webkit-clip-path: polygon(100% 0, 0 0, 0 100%);
  124.         clip-path: polygon(100% 0, 0 0, 0 100%);
  125.         position: relative;
  126.         width: 100%;
  127.         height: 410px;
  128.         background: linear-gradient(#858688,#4b83ae,#3a85bf);
  129.     }
  130.     .flex-margin{
  131.         position: absolute;
  132.         top: 0;
  133.         display: flex;
  134.         justify-content: center;
  135.         width: 100%;
  136.         height: 1500px;
  137.     }
  138.     .flex-container{
  139.     padding: 20px;
  140.     display: flex;
  141.     flex-direction: column;
  142.     justify-content: space-between;
  143.     align-items: center;
  144.     width: 80%;
  145.     height: 100%;
  146.     }
  147.     .main_title{
  148.         line-height: 165px;
  149.         font-size: 24px;
  150.         font-family:'Open Sans', sans-serif;
  151.         text-align: center;
  152.         align-items: center;
  153.         width: 100px;
  154.         height: 7%;
  155.         border-bottom: 5px solid #fff;
  156.     }
  157.     .text_and_image{
  158.         display: flex;
  159.         flex-direction: column;
  160.         justify-content: space-evenly;
  161.         align-items: start;
  162.         height: 50%;
  163.         width: 100%;
  164.     }
  165.     .text{
  166.         font-size: 100%;
  167.         font-family:'Open Sans', sans-serif;
  168.         color: #373435;
  169.         text-align: center ;
  170.         width: 100%;
  171.         order: 1;
  172.     }
  173.     .imagem{
  174.         align-items: center;
  175.         order: 0;
  176.     }
  177.     .imagem img{
  178.         width: 100%;
  179.     }
  180.     .data_set{
  181.         display: flex;
  182.         flex-direction: column;
  183.         justify-content: space-between;
  184.         align-items: center;
  185.         height: 51%;
  186.         width: 100%;
  187.     }
  188.     .flex-items{
  189.         display: flex;
  190.         flex-direction: column;
  191.         justify-content: space-evenly;
  192.         align-items: center;
  193.         width: 100%;
  194.         height: 30%;
  195.         background-color: #fff;
  196.         box-shadow: 1px 3px 3px 3px #d3d3d3;
  197.         border-radius: 6px;
  198.     }
  199.     .icon i{
  200.         color:#3a85bf;
  201.         font-size: 10vw;
  202.         height:40%;
  203.     }
  204.     .title2{
  205.         font-size: 100%;
  206.         font-family: 'Open Sans', sans-serif;
  207.         font-weight: 700;
  208.         color:#373435;
  209.         letter-spacing: 5px;
  210.         height:10%;
  211.     }
  212.     .text2{
  213.         font-size: 100%;
  214.         font-family: 'Open Sans', sans-serif;
  215.         font-weight: 400;
  216.         color:#373435;
  217.         text-align: center;
  218.         width: 80%;
  219.         height:30%;
  220.     }
  221. }
Advertisement
Add Comment
Please, Sign In to add comment