Advertisement
0reldev

WCS Quest "07 - CSS : responsive web design" | style.css

Mar 4th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.10 KB | None | 0 0
  1.  /* NAVIGATION FORMATTING */
  2.  nav {
  3.         background-color: black ;
  4.         color: grey ;
  5.         margin-bottom: 0px;
  6.         padding-top: .5em;
  7.         padding-bottom: .5em;
  8.     }
  9.  nav li {
  10.         display: inline ;
  11.         font-size: 18px ;
  12.         padding: 10px ;
  13.  }
  14.  nav li:first-child {
  15.         font-size: 30px ;
  16.         font-weight: bold;
  17.         margin-left: -30px
  18.  }
  19.  nav li:nth-child(2) {
  20.         background-color: #C8C8C8 ;
  21.         padding-top: 2em;
  22.         padding-bottom: 1.5em;
  23.  }
  24.  #first_pic {
  25.         background-color: #E6E6E6 ;
  26.         height: 300px;
  27.         margin-top: 0px ;
  28. }
  29.  
  30.  
  31.  /* ARTICLES FORMATTING */
  32.  h2>p {                  /* text between parenthesis */
  33.         display: inline;
  34.         font-size: smaller;
  35.         font-weight: normal;
  36.  }
  37.  h2 {
  38.         font-size: 30px;
  39.  }
  40.  #fellows {
  41.         text-align: center;
  42.  }
  43.  .articles {
  44.         padding: 10px;
  45.         text-align: center;
  46.         color: #E6E6E6 ;
  47.         margin-bottom: 5em;
  48.  }
  49.  /* section ul {
  50.       display: flex;     /* Flexbox is forbidden for this quest.
  51.     } */
  52.  article {
  53.         display: inline-block;
  54.         background-color: #E6E6E6 ;
  55.         padding: 15px ;
  56.         margin: 5px ;
  57.         width: 25em;
  58.         height: 30em;
  59.  }
  60.  
  61.  /* FORM FORMATTING */
  62. form ul {
  63.         list-style-type: none;
  64.         text-align: center;
  65. }
  66. form ul li {
  67.         padding: 5px;
  68. }
  69. input {
  70.         size: 200px;
  71.         width: 85%;
  72. }
  73. select {
  74.         width: 85%;
  75. }    
  76. textarea {
  77.     width: 85% ;   
  78. }
  79.  
  80.  
  81. /* DESKTOP STYLES */
  82. @media only screen and (min-width: 961px) {
  83.  
  84.     /* Nothing to add here in fact. */
  85.  
  86. } /*END DESKTOP STYLES*/
  87.  
  88.  
  89.  
  90.  
  91. /* MOBILE STYLES */
  92. @media only screen and (max-width: 961px) {
  93.  
  94.     #first_pic {            /* Grey blocs removal. */
  95.         display: none ;
  96.     }
  97.  
  98.     .articles {
  99.         display: none ;
  100.     }
  101.  
  102.     article {
  103.         display: none ;
  104.     }
  105.    
  106.     section ul {
  107.         display: none; 
  108.     }
  109.  
  110.     .carousel {
  111.         display: none ;
  112.     }
  113.     form h2 {           /* Contact us" title centering. */
  114.         text-align: center ;
  115.     }
  116.  
  117.     h2>p {                  /* Text between parenthesis increase. */
  118.             font-size: 35px;
  119.     }
  120.     h2 {            /* Title 1 size increase. */
  121.             font-size: 40px;
  122.     }
  123.  
  124.  }  /* END MOBILE STYLE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement