mekasu0124

Untitled

Jul 29th, 2024
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.88 KB | None | 0 0
  1. // home.style.js
  2. import styled from 'styled-components';
  3.  
  4. export const HomeContainer = styled.div`
  5.   display: flex;
  6.   justify-content: space-evenly;
  7.   align-items: center;
  8.   flex-direction: column;
  9.   margin-left: auto;
  10.   margin-right: auto;
  11.   margin-top: 10px;
  12.   padding: 10px;
  13.   width: 95%;
  14.   height: 85vh;
  15. `;
  16.  
  17. export const ScrollRow = styled.div`
  18.   display: inline-flex;
  19.   justify-content: space-evenly;
  20.   align-items: center;
  21.   flex-direction: row;
  22.   margin-left: auto;
  23.   margin-right: auto;
  24.   border-radius: 10px;
  25.   margin-bottom: 1rem;
  26.   /* border: 1px solid var(--accent-color);
  27.   padding: 12px; */
  28.   width: 90vw;
  29.   height: 30vh;
  30.   overflow-x: auto;
  31.   scrollbar-width: thin; /* For Firefox */
  32.   scrollbar-color: var(--secondary-color) transparent; /* For Firefox */
  33.  
  34.   &::-webkit-scrollbar {
  35.     height: 15px;
  36.   }
  37.  
  38.   &::-webkit-scrollbar-track {
  39.     background: transparent;
  40.     border: 1px solid var(--accent-color);
  41.     border-radius: 6px;
  42.   }
  43.  
  44.   &::-webkit-scrollbar-thumb {
  45.     background-color: var(--secondary-color);
  46.     border-radius: 6px;
  47.     border: 3px solid transparent;
  48.     background-clip: content-box;
  49.   }
  50. `;
  51.  
  52. export const HomeRow = styled.div`
  53.   margin-left: 9px;
  54.   margin-right: 9px;
  55.   height: 40vh;
  56.   width: 100%;
  57.   display: flex;
  58.   justify-content: space-evenly;
  59.   flex-direction: column;
  60.   border: 1px solid var(--accent-color);
  61.   border-radius: 10px;
  62. `;
  63.  
  64. export const Card = styled.div`
  65.   flex: 0 0 30%;
  66.   margin: 0 10px;
  67.   background-color: var(--background-color-2);
  68.   border-radius: 10px;
  69.   padding: 10px;
  70.   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  71.   text-align: center;
  72.   max-height: 25vh;
  73.   overflow-y: auto;
  74. `;
  75.  
  76. export const CardTitle = styled.h3`
  77.   width: 100%;
  78.   margin-top: 0.3rem;
  79.   font-family: var(--fontA);
  80.   font-style: italic;
  81.   font-weight: normal;
  82.   font-size: 1rem;
  83.   color: var(--text-color);
  84.   letter-spacing: 1px;
  85.   word-spacing: 1px;
  86. `;
  87.  
  88. export const CardDetails = styled.div`
  89.   width: 95%;
  90.   border: 1px solid var(--secondary-color);
  91.   margin-top: 1rem;
  92.   margin-left: auto;
  93.   margin-right: auto;
  94.   padding: 5px;
  95.   border-radius: 10px;
  96.   box-shadow: 1px 2px 3px var(--secondary-color);
  97.   height: 20vh;
  98.   overflow-y: auto;
  99.  
  100.   &::-webkit-scrollbar {
  101.     height: 15px;
  102.   }
  103.  
  104.   &::-webkit-scrollbar-track {
  105.     background: transparent;
  106.     border: 1px solid var(--accent-color);
  107.     border-radius: 6px;
  108.   }
  109.  
  110.   &::-webkit-scrollbar-thumb {
  111.     background-color: var(--secondary-color);
  112.     border-radius: 6px;
  113.     border: 3px solid transparent;
  114.     background-clip: content-box;
  115.   }
  116. `;
  117.  
  118. export const CardFooter = styled.div`
  119.   display: flex;
  120.   justify-content: space-evenly;
  121.   align-items: center;
  122.   flex-direction: row;
  123.   margin-left: auto;
  124.   margin-right: auto;
  125.   padding: 5px;
  126.   width: 95%;
  127. `;
  128.  
  129. export const CatLabel = styled.span`
  130.   font-family: var(--fontA);
  131.   font-style: italic;
  132.   font-weight: bold;
  133.   font-size: 1.4rem;
  134.   color: var(--text-color);
  135.   letter-spacing: 3px;
  136.   word-spacing: 1px;
  137.   margin-bottom: 1rem;
  138.   margin-left: 2rem;
  139.   margin-top: 1rem;
  140. `;
  141.  
  142. export const CardText = styled.p`
  143.   font-family: var(--fontA);
  144.   font-style: italic;
  145.   font-weight: bold;
  146.   font-size: 1rem;
  147.   color: var(--text-color);
  148.   letter-spacing: 1px;
  149. `;
  150.  
  151. export const AppIcon = styled.img`
  152.   width: 30px;
  153.   height: 30px;
  154.   margin-left: auto;
  155.   margin-right: 1rem;
  156.   border-radius: 10px;
  157.   align-self: center;
  158.   border: 1px solid white;
  159. `;
  160.  
  161. export const CardTitleLink = styled.a`
  162.   font-family: var(--fontA);
  163.   font-style: italic;
  164.   font-weight: bold;
  165.   font-size: 1.54rem;
  166.   color: var(--text-color);
  167.   letter-spacing: 1px;
  168.   word-spacing: 1px;
  169. `;
  170.  
  171. export const FooterSpan = styled.span`
  172.   font-family: var(--fontA);
  173.   font-style: italic;
  174.   font-weight: bold;
  175.   font-size: 0.8rem;
  176.   color: var(--text-color);
  177.   letter-spacing: 1px;
  178.   word-spacing: 1px;
  179. `;
  180.  
Advertisement
Add Comment
Please, Sign In to add comment