aboutsummaryrefslogtreecommitdiffstats
path: root/old-apps/web-shared/src/styles/components/link-card.scss
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-09-20 09:24:27 +0200
committerivarlovlie <git@ivarlovlie.no>2022-09-20 09:24:27 +0200
commita9072370ca1eb9a5cce928b1d487db0f307edea6 (patch)
tree59c3c23df930a8b5f888dc7813923abf4ceefed4 /old-apps/web-shared/src/styles/components/link-card.scss
parent56fa963a1d63cbe0bf28e29e717cceaa417c45c1 (diff)
downloadgreatoffice-a9072370ca1eb9a5cce928b1d487db0f307edea6.tar.xz
greatoffice-a9072370ca1eb9a5cce928b1d487db0f307edea6.zip
feat: Move old apps into it's own directory
Diffstat (limited to 'old-apps/web-shared/src/styles/components/link-card.scss')
-rw-r--r--old-apps/web-shared/src/styles/components/link-card.scss56
1 files changed, 56 insertions, 0 deletions
diff --git a/old-apps/web-shared/src/styles/components/link-card.scss b/old-apps/web-shared/src/styles/components/link-card.scss
new file mode 100644
index 0000000..dad4f98
--- /dev/null
+++ b/old-apps/web-shared/src/styles/components/link-card.scss
@@ -0,0 +1,56 @@
+@use '../base' as *;
+
+/* --------------------------------
+
+File#: _1_link-card
+Title: Link Card
+Descr: Link card for app UI
+Usage: codyhouse.co/license
+
+-------------------------------- */
+
+.link-card {
+ text-decoration: none;
+ color: inherit;
+ box-shadow: var(--inner-glow), var(--shadow-xs);
+
+ &:hover {
+ box-shadow: var(--inner-glow), var(--shadow-sm);
+ }
+}
+
+.link-card__footer {
+ position: relative;
+ overflow: hidden;
+ height: 60px;
+
+ > * {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+ > *:last-child {
+ transform: translateY(100%);
+ opacity: 0;
+ }
+}
+
+.link-card:hover {
+ .link-card__footer {
+ > *:first-child {
+ transform: translateY(-100%);
+ opacity: 0;
+ }
+
+ > *:last-child {
+ transform: translateY(0);
+ opacity: 1;
+ }
+ }
+}