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

OS2UOL-115: Spacer and divider #34

Merged
merged 1 commit into from
Jun 5, 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
2 changes: 1 addition & 1 deletion assets/css/variables/_theme-colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
--color-white: #fff;
--color-text: #383838;
--color-disabled: var(--color-gray-6);
--color-base-divider: #979797;
--color-base-divider: #D1CFCD;

/* Layout colors */
--site-background-color: var(--color-white);
Expand Down
17 changes: 11 additions & 6 deletions components/blocks/DividerBlock.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
<template>
<div class="divider"></div>
</template>

<script setup>
const props = defineProps({
blockData: Object,
});
</script>

<template>
<div class="divider"></div>
</template>

<style lang="postcss" scoped>
.divider {
margin: 28px 0;
border-top: 1px solid var(--color-base-divider);
opacity: 0.3;
border-top: 1px solid var(--color-primary);

/* There are 2 dividers in the design but in the AC its not mentioned which should be used
var for grey one - --color-base-divider
when/if grey is used add this opacity too: opacity: 0.4;
var for primary one - --color-primary
*/
}
</style>
6 changes: 3 additions & 3 deletions components/blocks/SpacerBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ const props = defineProps({
padding: 0;

&--small {
height: 1.875rem;
height: 15px @(--sm) 30px;
}

&--medium {
height: 3.125rem;
height: 25px @(--sm) 50px;
}

&--large {
height: 4.375rem;
height: 48px @(--sm) 96px;
}
}
</style>