Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fixes hero buttons on small screens

Paul Copplestonedaa82136069e
diff --git a/web/src/css/custom.css b/web/src/css/custom.css
index c4e22d7a9a9..4f574a35686 100755
--- a/web/src/css/custom.css
+++ b/web/src/css/custom.css
@@ -659,4 +659,11 @@ a.hash-link {
display: inline-block;
width: auto;
}
+}
+
+@media screen and (max-width: 600px) {
+ .responsiveButton {
+ width: 100%;
+ margin: 5px 0 !important;
+ }
}
\ No newline at end of file
diff --git a/web/src/pages/index.js b/web/src/pages/index.js
index c2b57d8052c..4ee6ce5957d 100755
--- a/web/src/pages/index.js
+++ b/web/src/pages/index.js
@@ -135,7 +135,7 @@ function Home() {
<div>
<Link
className={classnames(
- 'button hero--button button--md button--secondary button--outline',
+ 'button hero--button button--md button--secondary button--outline responsiveButton',
styles.button
)}
to={useBaseUrl('docs/about')}
@@ -145,7 +145,7 @@ function Home() {
</Link>
<Link
className={classnames(
- 'button hero--button button--md button--primary',
+ 'button hero--button button--md button--primary responsiveButton',
styles.button
)}
to={'https://app.supabase.io'}
diff --git a/web/src/pages/styles.module.css b/web/src/pages/styles.module.css
index d9972cda7ce..64950c659d2 100755
--- a/web/src/pages/styles.module.css
+++ b/web/src/pages/styles.module.css
@@ -70,15 +70,6 @@
margin: 0;
}
-
-@media screen and (max-width: 600px) {
- .responsiveButton {
- width: 100%;
- margin-left: 0;
- margin-right: 0;
- }
-}
-
.responsiveCentered {
text-align: center;
}