diff --git a/assets/styles/custom.css b/assets/styles/custom.css index ae0f44b..497f5ab 100644 --- a/assets/styles/custom.css +++ b/assets/styles/custom.css @@ -40,7 +40,7 @@ img.wide { margin-left: 0; max-width: 70%; width: 70%; - transform: translateX(20%); + /* transform: translateX(20%); */ } figure.image.wide { diff --git a/assets/styles/style.scss b/assets/styles/style.scss index 01e458b..5d710a1 100644 --- a/assets/styles/style.scss +++ b/assets/styles/style.scss @@ -11,17 +11,27 @@ figure { margin: auto !important; } +.content { + & p { + @apply mb-2; + } + + & audio { + @apply w-full; + } + + & a { + @apply text-primary-600 underline; + } + + & document { + @apply cursor-pointer text-primary-600 underline; + } +} div[layout="ARTICLE_DETAIL_EMAGAZINE"] { & p,& figure.align-center-image, & #sub, & #title, & #intro { @apply lg:max-w-640px mx-auto; } +} - // @at-root .section_layout{ - - // & div[layout="BREADCRUM_DEFAULT"] { - // @apply lg:max-w-640px mx-auto; - // } - // } - -} \ No newline at end of file diff --git a/components/article/immerse/ArticleRelation.vue b/components/article/immerse/ArticleRelation.vue new file mode 100644 index 0000000..54de5a7 --- /dev/null +++ b/components/article/immerse/ArticleRelation.vue @@ -0,0 +1,22 @@ + + + \ No newline at end of file diff --git a/components/article/immerse/Attachment.vue b/components/article/immerse/Attachment.vue new file mode 100644 index 0000000..58bf8bf --- /dev/null +++ b/components/article/immerse/Attachment.vue @@ -0,0 +1,14 @@ + + + \ No newline at end of file diff --git a/components/article/immerse/Document.vue b/components/article/immerse/Document.vue new file mode 100644 index 0000000..58bf8bf --- /dev/null +++ b/components/article/immerse/Document.vue @@ -0,0 +1,14 @@ + + + \ No newline at end of file diff --git a/components/article/immerse/Poll.vue b/components/article/immerse/Poll.vue new file mode 100644 index 0000000..f177f4c --- /dev/null +++ b/components/article/immerse/Poll.vue @@ -0,0 +1,56 @@ + + \ No newline at end of file diff --git a/components/article/immerse/Quiz.vue b/components/article/immerse/Quiz.vue new file mode 100644 index 0000000..d02bc47 --- /dev/null +++ b/components/article/immerse/Quiz.vue @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/components/article/immerse/Survey.vue b/components/article/immerse/Survey.vue new file mode 100644 index 0000000..e10ba2d --- /dev/null +++ b/components/article/immerse/Survey.vue @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/components/article/immerse/Tag.vue b/components/article/immerse/Tag.vue new file mode 100644 index 0000000..8e93693 --- /dev/null +++ b/components/article/immerse/Tag.vue @@ -0,0 +1,15 @@ + + + \ No newline at end of file diff --git a/components/dynamic-page/page-component/templates/other/breadcrumb/Default.vue b/components/dynamic-page/page-component/templates/other/breadcrumb/Default.vue index 2150d7a..d51b547 100644 --- a/components/dynamic-page/page-component/templates/other/breadcrumb/Default.vue +++ b/components/dynamic-page/page-component/templates/other/breadcrumb/Default.vue @@ -2,30 +2,40 @@ import { useDynamicPageStore } from "~/stores/dynamic-page"; if(!localStorage.getItem('step')) { - localStorage.setItem('step', 0) + localStorage.setItem('step', '0') } -useDynamicPageStore().step = localStorage.getItem('step') ?? 0 +useDynamicPageStore().step = Number(localStorage.getItem('step')) ?? 0 function increase() { useDynamicPageStore().step = Number(useDynamicPageStore().step) + 2 - localStorage.setItem('step', useDynamicPageStore().step) + localStorage.setItem('step', useDynamicPageStore().step.toString()) } function decrease() { useDynamicPageStore().step = Number(useDynamicPageStore().step) - 2 - localStorage.setItem('step', useDynamicPageStore().step) + localStorage.setItem('step', useDynamicPageStore().step.toString()) } +onMounted(() => { + let detailEmagazine = document.querySelector('div[layout="ARTICLE_DETAIL_EMAGAZINE"]') + let breakcrumb = document.querySelector('div[layout="BREADCRUM_DEFAULT"]') + if( detailEmagazine && breakcrumb) { + breakcrumb.classList.add('lg:max-w-640px','mx-auto') + } + + console.log('b') +}) +