ESTEXAV96

Portada pw css

Apr 30th, 2021 (edited)
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.23 KB | None | 0 0
  1. *{
  2.     padding:0;
  3.     margin:0;
  4.     box-sizing: border-box;
  5. }
  6.  
  7. body{
  8.     font-family: 'Noto Sans', sans-serif;
  9.     box-sizing: border-box;
  10.     margin: 0;
  11.     padding: 0;
  12.     height: 100vh !important;
  13.     font-family: 'Noto Sans', sans-serif;
  14.     color: #222222;
  15.  
  16. }
  17.  
  18.  
  19. .hero{
  20.     background: linear-gradient(rgba(68, 13, 13, 0.35), rgba(38,2,2,0.446)), url(https://1.bp.blogspot.com/-NHz1heKpzyI/YIxhx2WIsvI/AAAAAAAAQUM/BjwSuUBHz1gtjWiEN0jMTLor6Z_0jKZLACLcBGAsYHQ/s0/fondo-edeptec.jpg) no-repeat center/cover;
  21.     background-attachment: fixed;
  22.     height: 100vh;
  23.     color: white;
  24. }
  25.  
  26. .hero__nav{
  27.  
  28.     display: flex;
  29.     flex-direction: row;
  30.     justify-content: space-between;
  31.     margin: auto 3rem;
  32.     padding-top: 2rem;
  33.     padding-bottom: 2rem;
  34.     color: #CCC;
  35.    
  36. }
  37.  
  38. .nav__title , .nav__title > span {
  39.     margin: 0;
  40.     text-transform: uppercase;
  41.     font-weight: 700;
  42.     font-stretch: wider;
  43.     font-size:1.9rem;
  44.     text-shadow: 0px 2px 5px  rgb(26, 24, 24);
  45. }
  46.  
  47.  
  48. nav > a {
  49.     text-decoration: none;
  50.     color: white;
  51.     padding-left: 1rem;
  52.     padding-right: 1rem;
  53.     font-weight: bold;
  54. }
  55.  
  56. nav > a:hover {
  57.     text-decoration: none;
  58.     color:red;
  59.     padding-left: 1rem;
  60.     padding-right: 1rem;
  61.     transition: all 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  62. }
  63.  
  64.  
  65.  
  66.  
  67. .hero__content{
  68.     margin-top: 8rem;
  69.     display: flex;
  70.     flex-direction: column;
  71.     text-align: center;
  72. }
  73.  
  74. .content__title{
  75.     text-transform: capitalize;
  76.     font-family: 'Montserrat', sans-serif;
  77.     font-size: 1.5rem;
  78.     margin-bottom: 0.5rem;
  79.     font-weight: bold;
  80. }
  81.  
  82. .content__description{
  83.     font-family: 'Montserrat', sans-serif;
  84.     text-transform: uppercase;
  85.     font-size: 4rem;
  86.     font-weight: 20px;
  87.     margin-bottom: 2.5rem;
  88.  
  89. }
  90. .content__cta{
  91.     text-decoration: none;
  92.     color: white;
  93.     font-size: 0.8rem;
  94.     font-family: 'Montserrat', sans-serif;
  95.     text-transform: uppercase;
  96.     font-weight: 700;
  97.     border:3px solid white;
  98.     padding: 1rem 2rem;
  99.     border-radius: 20px;
  100.     display: inline-block;
  101.     align-self: center;
  102.     transition: all 0.5s cubic-bezier(0.86, 0, 0.07, 1);
  103.  
  104. }
  105.  
  106. .content__cta:hover{
  107.     background:rgb(63, 63, 63);
  108.  
  109. }
  110.  
  111. @media screen and (max-width:2048px){
  112.  
  113.     .hero__content{
  114.         margin-top: 15rem;
  115.         display: flex;
  116.         flex-direction: column;
  117.         text-align: center;
  118.     }
  119.  
  120. }
  121.  
  122. @media screen and (max-width:1024px){
  123.  
  124.     .hero__content{
  125.         margin-top: 10rem;
  126.         display: flex;
  127.         flex-direction: column;
  128.         text-align: center;
  129.     }
  130.  
  131. }
  132.  
  133.  
  134. @media screen and (max-width:360px) {
  135.  
  136.     .hero__content{
  137.         margin-top: 5rem;
  138.         display: flex;
  139.         flex-direction: column;
  140.         text-align: center;
  141.     }
  142.  
  143. }
  144.  
  145. @media(max-width:540px) {
  146.  
  147.     .hero{
  148.         padding-left: 1rem;
  149.         padding-right: 1rem;
  150.        
  151.     }
  152.  
  153.     .hero__nav{
  154.         display: flex;
  155.         flex-direction: column;
  156.         justify-content: center;
  157.         margin:auto;
  158.         padding-top: 2rem;
  159.         padding-bottom: 0;
  160.    
  161.     }
  162.  
  163.     .nav__title, nav{
  164.         margin-top: 20px;
  165.         text-align: center;
  166.     }
  167.  
  168.     .content__description{
  169.         font-size: 3.1rem;
  170.     }
  171.    
  172. }
Add Comment
Please, Sign In to add comment