Advertisement
eveeeeef21

style surakarta

Feb 4th, 2024
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.35 KB | Source Code | 0 0
  1. *,
  2. *::before,
  3. *::after {
  4.   box-sizing: border-box;
  5. }
  6.  
  7. body {
  8.   font-family: 'Quicksand', sans-serif;
  9.  
  10.   min-height: 100vh;
  11.   margin: 0;
  12.  
  13.   display: flex;
  14.   flex-direction: column;
  15. }
  16.  
  17. footer {
  18.     padding: 20px;
  19.     color: white;
  20.     background-color: #2d3e50;
  21.  
  22.     text-align: center;
  23.     font-weight: bold;
  24. }
  25.  
  26. .logo img{
  27.   width: 150px;
  28.   display: flex;
  29.   position: relative;
  30.   justify-content: center;
  31.   align-items: center;
  32. }
  33.  
  34.  
  35. header.navbar-container {
  36.   width: 100%;
  37.   max-width: 1200px;
  38.   padding-block: 1rem;
  39.   margin-inline: auto;
  40.  
  41.   display: inline-flex;
  42.   justify-content: space-around;
  43.   align-items: center;
  44.  
  45.   position: sticky;
  46.   top: 0;
  47.   background-color: white;
  48. }
  49.  
  50. .nav-list {
  51.   position: sticky;
  52.   top: 0;
  53. }
  54.  
  55.  
  56. header.navbar-container .nav-list ul {
  57.   padding-left: 0;
  58.  
  59.   display: flex;
  60.   justify-content: center;
  61.   gap: 2rem 1rem;
  62. }
  63.  
  64. header.navbar-container .nav-list li {
  65.   list-style-type: none;
  66. }
  67.  
  68. header.navbar-container .nav-list li a {
  69.   padding: 0.5rem 1.5rem;
  70.   border-radius: 999px;
  71.  
  72.   text-decoration: none;
  73.   font-size: 1.05rem;
  74.   font-weight: 500;
  75.   color: black;
  76.  
  77.   transition: all 0.2s ease-in-out;
  78. }
  79.  
  80. header.navbar-container .nav-list li:hover a {
  81.   background-color: #425c77;
  82.   color: white;
  83. }
  84.  
  85. main {
  86.   flex: 1;
  87.  
  88.   width: 100%;
  89.   max-width: 1200px;
  90.   margin-inline: auto;
  91.   padding: 2rem 4rem;
  92.  
  93.   display: flexbox;
  94.   align-items: center;
  95. }
  96.  
  97. main .content {
  98.   flex-grow: 1;
  99.  
  100.   display: flexbox;
  101.   align-items: center;
  102. }
  103.  
  104. main .content .content-description {
  105.   flex: 1 1;
  106. }
  107.  
  108. main .content .content-description .title {
  109.   margin-block: 1rem;
  110.  
  111.   font-size: 3.5rem;
  112. }
  113.  
  114. main .content .content-description p {
  115.   font-size: 1.2rem;
  116.   line-height: 1.7rem;
  117. }
  118.  
  119. main .content .content-description button {
  120.   padding: 0.8rem 2.5rem;
  121.   border: 3px solid transparent;
  122.   border-radius: 999px;
  123.   margin-block-start: 1rem;
  124.  
  125.   background-color: #2d3e50;
  126.  
  127.   font-family: 'Quicksand', sans-serif;
  128.   text-transform: uppercase;
  129.   font-size: 1rem;
  130.   font-weight: 700;
  131.   color: white;
  132.  
  133.   cursor: pointer;
  134.   transition: all 0.15s ease-in;
  135. }
  136.  
  137. main .content .content-description button:hover {
  138.   border: 3px solid #2d3e50;
  139.   background-color: transparent;
  140.  
  141.   color: #2d3e50;
  142. }
  143.  
  144. main .content .content-image {
  145.   flex: 1;
  146.  
  147.   display: flex;
  148. }
  149.  
  150. main .content .content-image img {
  151.   width: 300px;
  152.   min-width: 250px;
  153.   margin: auto;
  154. }
  155.  
  156.  
  157. .profile header {
  158.   text-align: center;
  159. }
  160.  
  161. .featured-image {
  162.   width: 100%;
  163.   max-height: 300px;
  164.  
  165.   object-fit: cover;
  166.   object-position: center;
  167. }
  168.  
  169. .profile img {
  170.   max-width: 200px;
  171. }
  172.  
  173.  
  174. @media screen and (max-width: 768px) {
  175.   header.navbar-container {
  176.     flex-direction: column;
  177.   }
  178.  
  179.   header.navbar-container .nav-list ul {
  180.     flex-wrap: wrap;
  181.     column-gap: 0.5rem;
  182.   }
  183.  
  184.   main {
  185.     padding: 1rem 3rem;
  186.   }
  187.  
  188.   main .content {
  189.     flex-direction: column;
  190.     gap: 2rem;
  191.   }
  192.  
  193.   main .content .content-description .title {
  194.     font-size: 3rem;
  195.   }
  196.  
  197.   main .content .content-description p {
  198.     font-size: 1rem;
  199.   }
  200.  
  201.   main .content .content-image {
  202.     order: -1;
  203.   }
  204. }
  205.  
  206. main aside {
  207.   display: flex;
  208.   position: fixed;
  209.   inset-block: 0;
  210.   inset-inline-end: 0;
  211. }
  212.  
  213. main aside .info-tambahan {
  214.   height: 100%;
  215.   display: flex;
  216. }
  217.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement