Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive for cloud pages #189

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/base/BaseFloatingLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nuxt-link(
:to="to"
class="c-base-floating-link"
)
span.c-base-floating-link__text
span.c-base-floating-link__text.u-ellipsis
slot

span.c-base-floating-link__icon(
Expand Down Expand Up @@ -60,6 +60,7 @@ $padding-top-bottom: 8px;
user-select: none;
cursor: pointer;
padding: $padding-top-bottom 18px ($padding-top-bottom + 2px);
overflow: hidden;
display: flex;
align-items: center;
transition: all 150ms linear;
Expand Down
14 changes: 13 additions & 1 deletion src/components/page/PageHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ div(
)
nuxt-link(
v-if="item.target"
@click="onMobileMenuLinkClick"
class="c-page-header__menu-link"
:to="item.target"
)
Expand All @@ -146,9 +147,9 @@ div(
ul.c-page-header__mobile-submenu
li(
v-for="dropdownItem in item.dropdown"
@click="isMobileMenuOpen = false"
)
nuxt-link(
@click="onMobileMenuLinkClick"
:to="dropdownItem.target"
class="c-page-header__menu-item"
)
Expand All @@ -161,6 +162,7 @@ div(

.c-page-header__actions
nuxt-link(
@click="onMobileMenuLinkClick"
class="c-page-header__action"
to="/cloud/signin/"
)
Expand All @@ -172,6 +174,7 @@ div(
| Log In

nuxt-link(
@click="onMobileMenuLinkClick"
class="c-page-header__action"
to="/cloud/signup/"
)
Expand Down Expand Up @@ -329,6 +332,15 @@ export default {
methods: {
// --> EVENT LISTENERS <--

/**
* Triggers when mobile menu link is clicked
* @public
* @return {undefined}
*/
onMobileMenuLinkClick() {
this.isMobileMenuOpen = false;
},

/**
* Triggers when mobile toggle is clicked
* @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ $c: ".c-section-cloud-signin-authenticate";
#{$c} {
#{$c}__form {
max-width: 460px;
margin: 100px auto 0;
margin: 100px auto 54px;
}

#{$c}__notice,
Expand Down
2 changes: 1 addition & 1 deletion src/components/section/cloud/SectionCloudSignupForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ $c: ".c-section-cloud-signup-form";
#{$c}__aside,
#{$c}__fieldset {
padding-top: 70px;
padding-bottom: 40px;
padding-bottom: 60px;
}

#{$c}__inner {
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/embedding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $c: ".l-embedding";

#{$c}__content {
display: flex;
overflow: hidden;
overflow: auto;

&,
> * {
Expand Down
10 changes: 10 additions & 0 deletions src/pages/cloud/signup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,14 @@ $c: ".p-cloud-signup";
z-index: 1;
}
}

// --> MEDIA-QUERIES <--

@media (max-width: $screen-tiny-width-breakpoint) {
#{$c} {
#{$c}__progress {
display: none;
}
}
}
</style>
Loading