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

drawing #576

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
36 changes: 28 additions & 8 deletions src/components/Toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ const shouldIncreaseUIContrast = computed(() => store.state.currentUser.shouldIn
nav.toolbar(v-if="visible")
//- Box
.segmented-buttons
.button-wrap(:title="boxBadgeLabel")
button(
:class="{ active: currentUserToolbarIsBox, 'translucent-button': !shouldIncreaseUIContrast }"
@click="toggleToolbar('box')"
)
img.icon.box-icon(src="@/assets/box.svg")
.label-badge.toolbar-badge-wrap.jiggle(v-if="currentUserToolbarIsBox")
span {{boxBadgeLabel}}
button(
:title="boxBadgeLabel"
:class="{ active: currentUserToolbarIsBox, 'translucent-button': !shouldIncreaseUIContrast }"
@click="toggleToolbar('box')"
)
img.icon.box-icon(src="@/assets/box.svg")
.label-badge.toolbar-badge-wrap.jiggle(v-if="currentUserToolbarIsBox")
span {{boxBadgeLabel}}
button
span A
</template>

<style lang="stylus">
Expand All @@ -64,4 +66,22 @@ nav.toolbar(v-if="visible")
span
width 100%
color var(--primary)
.segmented-buttons
display flex
flex-flow column
> button
border-radius 0
width 32px
&:first-child
border-radius 0
border-top-left-radius var(--entity-radius)
border-top-right-radius var(--entity-radius)
&:last-child
border-radius 0
border-bottom-left-radius var(--entity-radius)
border-bottom-right-radius var(--entity-radius)
> button + button
margin 0
margin-top -1px

</style>