Advertisement
raffi_pratama

Untitled

Sep 7th, 2021
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.50 KB | None | 0 0
  1. .header{
  2.   width: 100%;
  3.   height: 50px;
  4.   background-color: rgba(116, 101, 101, 0.9);
  5.   position: fixed;
  6.   top: 0;
  7.   z-index: 10;
  8. }
  9. #nav2 a:hover{
  10.   color: #641111;
  11. }
  12. #nav{
  13.   top: 0;
  14.   height: 100%;
  15.   margin-left: 25%;
  16.   margin-right: 25%;
  17.   display: block;
  18.     z-index: 2;
  19.     transition: top 0.5s;
  20. }
  21. #nav a:hover{
  22.     color:#d3c6c6;
  23.   background-color: grey;
  24. }
  25. #nav a{
  26.   width: 25%;
  27.   height: 100%;
  28.     color:#e6e6e6;
  29.   float: left;
  30.   text-decoration: none;
  31.     padding:14px 0px;
  32.     text-align: center;
  33.     font-size: 16px;
  34. }
  35. body{
  36.   margin: 0px;
  37.   width: 100%;
  38.  
  39. }
  40. .header-middle {
  41.   text-align: center;
  42.   height:100%;
  43.   color: #ffffff;
  44.   font-size: 20px;
  45. }
  46. .center{
  47.     display: block;
  48.     margin-left: auto;
  49.     margin-right: auto;
  50.     width: 300px;
  51.     height: 300px;
  52.     border-radius: 50%;
  53. }
  54. .tengah{
  55.     display: block;
  56.     margin-left: auto;
  57.     margin-right: auto;
  58.     width: 713px;
  59. }
  60. .profilenama{
  61.     padding-top: 50px;
  62.     padding-bottom: 20px;
  63.     font-size: 20px;
  64.     text-align: center;
  65.     font-family: libre franklin;
  66.     color: white;
  67. }
  68. .contain{
  69.   font-family: yellowtail;
  70. }
  71. .quote{
  72.     font-family: norican;
  73.     font-size: 20px;
  74.     padding-bottom: 50px;
  75.     text-align: center;
  76.     color: white;
  77. }
  78. .profile{
  79.     background-image: url(473069.jpg);
  80.     background-size: cover;
  81.     background-repeat: no-repeat;
  82. }.info{
  83.     text-align: center;
  84.     color: white;
  85. }
  86. .intro{
  87.     padding-top:50px;
  88.     background-image: url(bglagi.jpg);
  89.     background-repeat: no-repeat;
  90.     background-size: cover;
  91. }
  92. .judulintro{
  93.     padding-left: 300px;
  94.     padding-right: 300px;
  95.     font-size: 20px;
  96.     text-align: center;
  97.     color: black;
  98. }
  99.  
  100.  
  101.  
  102.  
  103. * {
  104.     box-sizing: border-box;
  105.   }
  106.  
  107.   body {
  108.     background-color: #474e5d;
  109.     font-family: Helvetica, sans-serif;
  110.   }
  111.  
  112.   /* The actual timeline (the vertical ruler) */
  113.   .timeline {
  114.     position: relative;
  115.     max-width: 1200px;
  116.     margin: 0 auto;
  117.   }
  118.  
  119.   /* The actual timeline (the vertical ruler) */
  120.   .timeline::after {
  121.     content: '';
  122.     position: absolute;
  123.     width: 6px;
  124.     background-color: white;
  125.     top: 0;
  126.     bottom: 0;
  127.     left: 50%;
  128.     margin-left: -3px;
  129.   }
  130.  
  131.   /* Container around content */
  132.   .container {
  133.     padding: 10px 40px;
  134.     position: relative;
  135.     background-color: inherit;
  136.     width: 50%;
  137.   }
  138.  
  139.   /* The circles on the timeline */
  140.   .container::after {
  141.     content: '';
  142.     position: absolute;
  143.     width: 25px;
  144.     height: 25px;
  145.     right: -17px;
  146.     background-color: white;
  147.     border: 4px solid #FF9F55;
  148.     top: 15px;
  149.     border-radius: 50%;
  150.     z-index: 1;
  151.   }
  152.  
  153.   /* Place the container to the left */
  154.   .left {
  155.     left: 0;
  156.   }
  157.  
  158.   /* Place the container to the right */
  159.   .right {
  160.     left: 50%;
  161.   }
  162.  
  163.   /* Add arrows to the left container (pointing right) */
  164.   .left::before {
  165.     content: " ";
  166.     height: 0;
  167.     position: absolute;
  168.     top: 22px;
  169.     width: 0;
  170.     z-index: 1;
  171.     right: 30px;
  172.     border: medium solid white;
  173.     border-width: 10px 0 10px 10px;
  174.     border-color: transparent transparent transparent white;
  175.   }
  176.  
  177.   /* Add arrows to the right container (pointing left) */
  178.   .right::before {
  179.     content: " ";
  180.     height: 0;
  181.     position: absolute;
  182.     top: 22px;
  183.     width: 0;
  184.     z-index: 1;
  185.     left: 30px;
  186.     border: medium solid white;
  187.     border-width: 10px 10px 10px 0;
  188.     border-color: transparent white transparent transparent;
  189.   }
  190.  
  191.   /* Fix the circle for containers on the right side */
  192.   .right::after {
  193.     left: -16px;
  194.   }
  195.  
  196.   /* The actual content */
  197.   .content {
  198.     padding: 20px 30px;
  199.     background-color: white;
  200.     position: relative;
  201.     border-radius: 6px;
  202.   }
  203.  
  204.   /* Media queries - Responsive timeline on screens less than 600px wide */
  205.   @media screen and (max-width: 600px) {
  206.     /* Place the timelime to the left */
  207.     .timeline::after {
  208.     left: 31px;
  209.     }
  210.    
  211.     /* Full-width containers */
  212.     .container {
  213.     width: 100%;
  214.     padding-left: 70px;
  215.     padding-right: 25px;
  216.     }
  217.    
  218.     /* Make sure that all arrows are pointing leftwards */
  219.     .container::before {
  220.     left: 60px;
  221.     border: medium solid white;
  222.     border-width: 10px 10px 10px 0;
  223.     border-color: transparent white transparent transparent;
  224.     }
  225.  
  226.     /* Make sure all circles are at the same spot */
  227.     .left::after, .right::after {
  228.     left: 15px;
  229.     }
  230.    
  231.     /* Make all right containers behave like the left ones */
  232.     .right {
  233.     left: 0%;
  234.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement