Skip to content

Commit

Permalink
NeoModalHead to tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
shashkovdanil committed Dec 10, 2023
1 parent a408c8f commit 7232e9f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 47 deletions.
30 changes: 0 additions & 30 deletions libs/ui/src/components/NeoModalHead/NeoModalHead.scss

This file was deleted.

28 changes: 11 additions & 17 deletions libs/ui/src/components/NeoModalHead/NeoModalHead.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<template>
<header v-if="isMobile" class="modal-card-head">
<div class="modal-card-title">
<a class="has-text-inherit" @click.stop="emit('close')">
<NeoIcon icon="chevron-left" />
</a>
{{ title }}
</div>
<header
class="flex lg:hidden py-0 px-tw-5 min-h-[64px] items-center border-b border-border-color bg-background-color-inverse">
<button
type="button"
class="w-full h-full text-left cursor-pointer p-0 bg-transparent text-base/normal text-text-color-inverse"
@click="emit('close')">
<NeoIcon icon="chevron-left" />
<span>{{ title }}</span>
</button>
</header>
<header
v-else
class="modal-card-head is-flex is-justify-content-space-between border-bottom">
<span class="modal-card-title is-size-6 has-text-weight-bold">
class="hidden lg:flex py-4 px-tw-8 justify-between items-center border-b border-border-color bg-background-color">
<span class="text-base font-bold">
{{ title }}
</span>
<NeoButton
Expand All @@ -25,18 +26,11 @@
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { NeoButton, NeoIcon } from '@kodadot1/brick'
defineProps<{
title: string
}>()
const isMobile = ref(window.innerWidth < 1024)
const emit = defineEmits(['close'])
</script>

<style lang="scss" scoped>
@import './NeoModalHead.scss';
</style>
5 changes: 5 additions & 0 deletions libs/ui/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ module.exports = {
'icon-spin':
'icon-spin infinite linear var(--oruga-icon-spin-duration, 1.5s)',
},
// TODO: remove it after removing bulma
padding: {
'tw-5': '1.25rem',
'tw-8': '2rem',
},
},
},
plugins: [],
Expand Down

0 comments on commit 7232e9f

Please sign in to comment.