mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-19 01:07:39 +00:00
rework to 2000's-ish style site
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<script setup lang="ts">
|
||||
const props = defineProps<{
|
||||
bleed?: boolean | string;
|
||||
}>();
|
||||
|
||||
const isBleed = computed(
|
||||
() =>
|
||||
props.bleed === true ||
|
||||
props.bleed === '' ||
|
||||
props.bleed === 'true',
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="notice" :class="{ 'notice--bleed': isBleed }">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.notice {
|
||||
background: var(--navy);
|
||||
color: #f6f7f9;
|
||||
padding: 1rem 1.15rem;
|
||||
margin: 1.5rem 0;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.notice :deep(a) {
|
||||
color: var(--accent-soft);
|
||||
}
|
||||
|
||||
.notice :deep(a:hover) {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.notice :deep(p:last-child) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.notice--bleed {
|
||||
box-sizing: border-box;
|
||||
width: 100vw;
|
||||
max-width: 100vw;
|
||||
margin: 1.5rem 0 1.5rem calc(-1 * var(--col-left));
|
||||
padding: 1.15rem var(--col-left);
|
||||
padding-right: calc(100vw - var(--col-left) - var(--col));
|
||||
border-radius: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user