diff options
| author | realtradam <[email protected]> | 2024-06-29 18:30:20 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-06-29 18:30:20 -0400 |
| commit | 2a8545f11267de06447b3c56d8beca8d27596dab (patch) | |
| tree | e9e4aaf0ed2436d3ca31114c739194dd351e8d09 /react-frontend/src/index.css | |
| parent | 95088f3fdd3f593d486b55e3840cee0dbc1a5051 (diff) | |
| download | gameHolster-dev.tar.gz gameHolster-dev.zip | |
work on rendering gamesdev
Diffstat (limited to 'react-frontend/src/index.css')
| -rw-r--r-- | react-frontend/src/index.css | 80 |
1 files changed, 66 insertions, 14 deletions
diff --git a/react-frontend/src/index.css b/react-frontend/src/index.css index b077dda..4ee4466 100644 --- a/react-frontend/src/index.css +++ b/react-frontend/src/index.css @@ -3,12 +3,15 @@ @tailwind utilities; /* debug class *//* -* { - border: 1px solid red; -} -*/ + * { + border: 1px solid red; + } + */ @layer components { + + /* Game Card */ + .gameCard { aspect-ratio: 5/7; width: 18.75em; /*300px;*/ @@ -45,10 +48,10 @@ .gameCardWrapper::before { background-image: linear-gradient( - to top, - transparent 46%, - rgba(12, 13, 19, 0.5) 68%, - rgba(12, 13, 19) 97% + to top, + transparent 46%, + rgba(12, 13, 19, 0.5) 68%, + rgba(12, 13, 19) 97% ); @apply top-0 h-full rounded-md; @@ -56,10 +59,10 @@ .gameCardWrapper::after { background-image: linear-gradient( - to bottom, - transparent 46%, - rgba(12, 13, 19, 0.5) 68%, - rgba(12, 13, 19) 97% + to bottom, + transparent 46%, + rgba(12, 13, 19, 0.5) 68%, + rgba(12, 13, 19) 97% ); @apply bottom-0 opacity-100 rounded-md; @@ -67,7 +70,7 @@ .gameCard:hover .gameCardWrapper::before, .gameCardWrapper::after { - + @apply opacity-100; } @@ -85,7 +88,7 @@ .gameCharacterImg { transition: all 0.5s; z-index: -1; - + @apply w-full max-h-80 object-contain opacity-0 absolute; } @@ -94,6 +97,55 @@ @apply opacity-100; } + + /* Sidebar */ + + @keyframes sidebar-enter { + from { + left: -16rem; + @apply -left-72; + } + to { + + @apply left-0; + } + } + + @keyframes sidebar-exit { + from { + + @apply left-0; + } + to { + + @apply -left-72; + } + } + + @media (max-width: 768px) + { + .sidebarInit { + + @apply -left-72; + } + + .sidebarOpen { + animation-name: sidebar-enter; + + @apply left-0; + } + + .sidebarClosed { + animation-name: sidebar-exit; + + @apply -left-72; + } + + .sidebar-animation { + animation-duration: 0.5s; + animation-iteration-count: 1; + } + } } |
