Skip to content

Commit

Permalink
refactor: refactored sm class usage in application-hub [WTEL-3172]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Feb 24, 2023
1 parent 33cfe56 commit b92e103
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/modules/application-hub/components/application-hub.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>
<div class="application-hub-wrap">
<cc-header/>
<nav class="application-hub">
<nav
class="application-hub"
:class="{ 'application-hub--sm': $breakpoint.smAndDown}"
>
<div class="application-hub__background"></div>
<ul class="application-hub__list">
<li
Expand Down Expand Up @@ -36,11 +39,8 @@
:alt="`${app.name}-title`"
>
</div>
<h1
class="application-link__title"
:class="{ 'application-link__title--sm': $breakpoint.smAndDown }"
>
{{app.title}}
<h1 class="application-link__title">
{{ app.title }}
</h1>
</div>
</a>
Expand Down Expand Up @@ -258,10 +258,6 @@
.application-link__title {
@extend %typo-body-1;
color: var(--main-color);
&--sm {
@extend %typo-body-2;
}
}
// specific @hover toggled styles (hovered)
Expand All @@ -278,6 +274,13 @@
}
}
.application-hub--sm {
// title text
.application-link__title {
@extend %typo-body-2;
}
}
@media screen and (max-width: $viewport-sm) {
.application-hub__card {
width: 278px;
Expand Down

0 comments on commit b92e103

Please sign in to comment.