diff --git a/src/css/custom.css b/src/css/custom.css index 72627842..a9678d2a 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -166,14 +166,16 @@ body, .main-wrapper [role='complementary'] [class^='sidebar']:hover { box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); } - /* [class^='sidebar']:before { + + [class^='sidebar']:before { content: ''; position: absolute; display: none; top: 0; - left: -120%; + left: 0; width: 100%; height: 100%; + transform: translate3d(-120%, 0, 0); filter: blur(15px); background: linear-gradient( @@ -192,15 +194,16 @@ body, position: absolute; display: block; top: 0; - left: -120%; + left: 0; width: 100%; height: 100%; - filter: blur(5px); + transform: translate3d(-120%, 0, 0); + filter: blur(10px); background: linear-gradient( 45deg, transparent, rgba(255, 255, 255, 0), - rgba(255, 255, 255, 0.05), + rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0), transparent ); @@ -209,8 +212,8 @@ body, } .main-wrapper [role='complementary'] [class^='sidebar']:hover:before, .main-wrapper [role='complementary'] [class^='sidebar']:hover:after { - left: 120%; - } */ + transform: translate3d(120%, 0, 0); + } } @media (min-width: 1280px) { @@ -416,7 +419,8 @@ a:hover, .button { background-color: var(--mf-button-primary); - border-color: var(--mf-button-primary); + border: 0; + color: white; font-family: var(--ifm-font-family-monospace); } .button:hover { @@ -429,6 +433,74 @@ a:hover, background-color: transparent; } +.hero .button--primary { + position: relative; + background: #ff1f82; + backdrop-filter: blur(5px); + border: 0; + border-radius: 4px; + box-shadow: 0 0 5px rgba(0, 0, 0, 0.6); + font-family: var(--mf-font-body); + font-size: 18px; + font-weight: bold; + letter-spacing: 0.1em; + line-height: 26px; + overflow: hidden; + padding: 15px 0; + width: 206px; + transition: box-shadow 0.2s ease, background-color 0.2s 0.3s ease-in-out, + color 0.5s 0.2s ease; + z-index: 2; +} +@media (min-width: 1366px) { + .hero .button--primary { + } +} +.hero .button--primary:after { + content: ''; + position: absolute; + display: block; + top: 0; + left: -100%; + width: 50%; + height: 100%; + background: linear-gradient( + 45deg, + transparent, + rgba(255, 255, 255, 0), + rgba(255, 255, 255, 0.1), + rgba(255, 255, 255, 0), + transparent + ); + transition: all 0.4s 0.1s ease-in-out; + z-index: 2; +} +.hero .button--primary:before { + content: ''; + position: absolute; + top: 0; + left: -150%; + width: 150%; + height: 300%; + background: linear-gradient( + 45deg, + transparent, + rgba(255, 255, 255, 0), + rgba(255, 255, 255, 0.1), + rgba(255, 255, 255, 0), + transparent + ); + transition: position 0.4s 0.2s ease-in-out; + z-index: 3; +} +.hero .button--primary:hover { + color: #fff; + box-shadow: 0 0 5px rgba(0, 0, 0, 0); +} +.hero .button--primary:hover:after, +.hero .button--primary:hover:before { + left: 100%; +} /* .pagination-nav__link { border-color: var(--mf-button-nav); transition: all 0.2s ease-in-out; diff --git a/src/pages/styles.module.css b/src/pages/styles.module.css index 3c046425..a953c143 100644 --- a/src/pages/styles.module.css +++ b/src/pages/styles.module.css @@ -52,7 +52,6 @@ align-items: center; justify-content: center; } - .features { display: flex; align-items: center; @@ -82,8 +81,8 @@ background: rgba(255, 255, 255, 0); border-radius: 100% 100% 0 0; border: 0; - height: auto; - width: auto; + height: 280px; + width: 250px; display: inline-flex; align-items: center; justify-content: center; @@ -97,9 +96,15 @@ margin-bottom: 0; } } +@media (min-width: 1366px) { + .imageWrapper a { + height: 280px; + width: 250px; + } +} @media (min-width: 1440px) { .imageWrapper a { - height: 320px; + height: 340px; width: 300px; } } @@ -111,7 +116,7 @@ display: flex; align-items: flex-end; justify-content: center; - height: 250px; + height: 270px; width: 250px; z-index: 3; top: 0; @@ -120,9 +125,15 @@ text-transform: uppercase; transition: transform 0s 0.3s ease-in-out, opacity 0.2s 0.1s ease-in-out; } +@media (min-width: 1366px) { + .imageWrapper div { + height: 280px; + width: 250px; + } +} @media (min-width: 1440px) { .imageWrapper div { - height: 320px; + height: 340px; width: 300px; } } @@ -157,50 +168,106 @@ } .imageWrapper div h3 { background: #5a32e6; - backdrop-filter: blur(7px); border-radius: 4px; font-family: var(--mf-font-body); - font-size: 0.8rem; - font-weight: 700; - letter-spacing: 0.08rem; + font-size: 16px; + font-weight: bold; + letter-spacing: 0.1em; + line-height: 24px; position: relative; - color: #a5b9f6; + color: #fff; display: block; - padding: 10px 15px; + padding: 15px 0; + width: 206px; margin-bottom: 0; - text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); - /* transform: translate3d(0, 275px, 0); */ - transition: background 0.2s ease-in; } -@media (min-width: 1440px) { - .imageWrapper div h3 { - font-size: 1rem; +@media screen and (min-width: 965px) { + .imageWrapper a div h3 { + position: relative; + border: 0; + box-shadow: 0 0 5px rgba(0, 0, 0, 0.6); + overflow: hidden; + transition: box-shadow 0.2s ease, background-color 0.3s ease-in-out, + color 0.3 ease; + z-index: 2; + } + .imageWrapper a div h3:after { + content: ''; + position: absolute; + display: block; + top: 0; + left: -100%; + width: 50%; + height: 100%; + background: linear-gradient( + 45deg, + transparent, + rgba(255, 255, 255, 0), + rgba(255, 255, 255, 0.1), + rgba(255, 255, 255, 0), + transparent + ); + transition: all 0.4s 0.1s ease-in-out; + z-index: 2; + } + .imageWrapper a div h3:before { + content: ''; + position: absolute; + /* display: none; */ + top: 0; + left: -150%; + width: 150%; + height: 300%; + /* transform: rotate(-45deg); */ + background: linear-gradient( + 45deg, + transparent, + rgba(255, 255, 255, 0), + rgba(255, 255, 255, 0.1), + rgba(255, 255, 255, 0), + transparent + ); + transition: position 0.4s 0.2s ease-in-out; + z-index: 3; + } + .imageWrapper a:hover div h3 { + background: #5a32e6; + box-shadow: 0 0 5px rgba(0, 0, 0, 0); + color: #fff; + } + .imageWrapper a:hover div h3:after, + .imageWrapper a:hover div h3:before { + left: 100%; } } -.imageWrapper a:hover h3 { +/* @media (min-width: 1440px) { + .imageWrapper div h3 { + font-size: 14px; + line-height: 24px; + } +} */ + +/* .imageWrapper a:hover h3 { background: #5a32e660; -} +} */ .featureImage { position: relative; - background: rgba(255, 255, 255, 0.13); + /* background: rgba(255, 255, 255, 0.13); */ border-radius: 50%; - box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.4); + /* box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.4); */ height: 200px; width: 200px; - transform: translate3d(0, 0, 1); - transition: background 0.3s ease-in; + /* transform: translate3d(0, 0, 1); */ + /* transition: background 0.3s ease-in; */ z-index: 2; } -.imageWrapper a:hover .featureImage { - background: rgba(255, 255, 255, 0.25); -} @media screen and (min-width: 1440px) { .featureImage { - height: 250px; - width: 250px; + height: 225px; + width: 225px; } } .wikiLogo {