2024-06-28 15:39:26 +07:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import RecusiveSection from "@/components/dynamic-page/page-section/RecusiveSection.vue";
|
|
|
|
|
import { getInputValue } from "@/utils/parseSQL";
|
|
|
|
|
import { enumPageSectionLayouts, enumPageSectionTemplate, enumPageSectionKey } from "~/definitions/enum";
|
2024-07-01 16:04:16 +07:00
|
|
|
import type { PageSection } from "@/server/models/dynamic-page/index";
|
2024-06-28 15:39:26 +07:00
|
|
|
|
2024-07-03 15:33:51 +07:00
|
|
|
const emit = defineEmits(["dropComponent", "dropData", "selectComponent"]);
|
|
|
|
|
|
2024-06-28 15:39:26 +07:00
|
|
|
const props = defineProps<{
|
|
|
|
|
layout?: string;
|
|
|
|
|
content?: any;
|
|
|
|
|
settings: any;
|
|
|
|
|
section: PageSection;
|
|
|
|
|
}>();
|
|
|
|
|
|
|
|
|
|
const defineTypeRecusive = {
|
|
|
|
|
COMPONENT: "component",
|
|
|
|
|
SECTION: "section",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const designObject = computed(() => {
|
2024-07-03 15:33:51 +07:00
|
|
|
// không truyền lable là chữ lên sẽ lỗi
|
2024-06-28 15:39:26 +07:00
|
|
|
return props?.settings?.label ? getInputValue(props.settings.label, "OBJECT") : {};
|
|
|
|
|
});
|
|
|
|
|
|
2024-07-05 10:29:08 +07:00
|
|
|
const SETTING_OPTIONS = computed(() => {
|
|
|
|
|
let _setting_options = {};
|
|
|
|
|
switch (props.layout) {
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_TWO"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 2,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_ONE_TWO_THREE"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 3,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_ONE_FIVE"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 2,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_FIVE_THREE_TWO_TWO"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 4,
|
|
|
|
|
};
|
|
|
|
|
break;
|
2024-07-05 11:41:38 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_FIVE_TWO_TWO_THREE"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 4,
|
|
|
|
|
};
|
|
|
|
|
break;
|
2024-07-05 10:29:08 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_TWO_FIVE_THREE_TWO"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 4,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_ONE_FOUR"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 2,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_LEFT_TWO"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 2,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_RIGHT_TWO"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 2,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_THREE"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 3,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_FOUR"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 4,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_CENTER_TWO"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 3,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_CENTER_THREE"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 3,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_CENTER_FOUR"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 3,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_ONE"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 1,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_TWO"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 2,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_THREE"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 3,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_FOUR"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 4,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_FIVE"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 5,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_SIX"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 6,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_SEVEN"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 7,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_EIGHT"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 8,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_NINE"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 9,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["HORIZONTAL_TEN"]:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 10,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
_setting_options = {
|
|
|
|
|
MAX_ELEMENT: 1,
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _setting_options;
|
|
|
|
|
});
|
|
|
|
|
|
2024-06-28 15:39:26 +07:00
|
|
|
const CLASS_FOR_SECTION = computed(() => {
|
|
|
|
|
let _classForSection = {};
|
|
|
|
|
switch (props.layout) {
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_TWO"]:
|
2024-06-28 15:39:26 +07:00
|
|
|
_classForSection = {
|
|
|
|
|
section_layout: "section_layout two_col_layout",
|
|
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
|
|
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_LEFT_TWO"]:
|
2024-07-01 16:04:16 +07:00
|
|
|
_classForSection = {
|
2024-07-08 17:38:54 +07:00
|
|
|
section_layout: "section_layout twelve_col_layout",
|
2024-07-09 08:33:33 +07:00
|
|
|
0: "md:col-span-8 col-span-12",
|
|
|
|
|
1: "md:col-span-4 col-span-12",
|
2024-07-01 16:04:16 +07:00
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_RIGHT_TWO"]:
|
2024-07-01 16:04:16 +07:00
|
|
|
_classForSection = {
|
2024-07-09 09:23:17 +07:00
|
|
|
section_layout: "section_layout grid-cols-12",
|
|
|
|
|
0: "md:col-span-4 col-span-12",
|
|
|
|
|
1: "md:col-span-8 col-span-12",
|
2024-07-01 16:04:16 +07:00
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_ONE_FIVE"]:
|
2024-06-28 15:39:26 +07:00
|
|
|
_classForSection = {
|
2024-07-08 17:38:54 +07:00
|
|
|
section_layout: "section_layout grid-cols-12",
|
|
|
|
|
0: "lg:col-span-2 lg:block hidden",
|
|
|
|
|
1: "lg:col-span-10 col-span-12",
|
2024-06-28 15:39:26 +07:00
|
|
|
};
|
|
|
|
|
break;
|
2024-07-05 09:45:00 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_FIVE_THREE_TWO_TWO"]:
|
|
|
|
|
_classForSection = {
|
|
|
|
|
section_layout: "section_layout twelve_col_layout",
|
|
|
|
|
0: "col-span-5",
|
|
|
|
|
1: "col-span-3",
|
|
|
|
|
2: "col-span-2",
|
|
|
|
|
3: "col-span-2",
|
|
|
|
|
};
|
|
|
|
|
break;
|
2024-07-05 11:41:38 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_FIVE_TWO_TWO_THREE"]:
|
|
|
|
|
_classForSection = {
|
2024-07-09 09:23:17 +07:00
|
|
|
section_layout: "section_layout grid-cols-12",
|
|
|
|
|
0: "md:col-span-5 col-span-12",
|
|
|
|
|
1: "md:col-span-2 sm:col-span-6 col-span-1",
|
|
|
|
|
2: "md:col-span-2 sm:col-span-6 col-span-2",
|
|
|
|
|
3: "md:col-span-3 col-span-12",
|
2024-07-05 11:41:38 +07:00
|
|
|
};
|
|
|
|
|
break;
|
2024-07-05 09:45:00 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_TWO_FIVE_THREE_TWO"]:
|
|
|
|
|
_classForSection = {
|
2024-07-09 09:23:17 +07:00
|
|
|
section_layout: "section_layout grid-cols-12",
|
|
|
|
|
0: "col-span-2 md:block hidden",
|
|
|
|
|
1: "md:col-span-5 sm:col-span-7 col-span-12",
|
|
|
|
|
2: "md:col-span-3 sm:col-span-5 col-span-12",
|
|
|
|
|
3: "col-span-2 md:block hidden",
|
2024-07-05 09:45:00 +07:00
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_ONE_FOUR"]:
|
2024-06-28 15:39:26 +07:00
|
|
|
_classForSection = {
|
2024-07-03 15:33:51 +07:00
|
|
|
section_layout: "section_layout five_col_layout",
|
|
|
|
|
1: "col-span-4",
|
2024-06-28 15:39:26 +07:00
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_THREE"]:
|
2024-06-28 15:39:26 +07:00
|
|
|
_classForSection = {
|
2024-07-08 17:38:54 +07:00
|
|
|
section_layout: "section_layout grid-cols-12",
|
|
|
|
|
0: "sm:col-span-4 col-span-12",
|
|
|
|
|
1: "sm:col-span-4 col-span-12",
|
|
|
|
|
2: "sm:col-span-4 col-span-12"
|
2024-06-28 15:39:26 +07:00
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_FOUR"]:
|
2024-06-28 15:39:26 +07:00
|
|
|
_classForSection = {
|
|
|
|
|
section_layout: "section_layout four_col_layout",
|
|
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_CENTER_TWO"]:
|
2024-06-28 15:39:26 +07:00
|
|
|
_classForSection = {
|
|
|
|
|
section_layout: "section_layout four_col_layout",
|
|
|
|
|
1: "col-span-2",
|
|
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_CENTER_THREE"]:
|
2024-06-28 15:39:26 +07:00
|
|
|
_classForSection = {
|
|
|
|
|
section_layout: "section_layout five_col_layout",
|
|
|
|
|
1: "col-span-3",
|
|
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_CENTER_FOUR"]:
|
2024-06-28 15:39:26 +07:00
|
|
|
_classForSection = {
|
2024-07-08 17:38:54 +07:00
|
|
|
section_layout: "section_layout grid-cols-12",
|
|
|
|
|
0: "lg:col-span-2 md:col-span-6 col-span-12 lg:order-1 md:order-2 order-2",
|
|
|
|
|
1: "lg:col-span-8 md:col-span-12 col-span-12 lg:order-2 md:order-1 order-1",
|
|
|
|
|
2: "lg:col-span-2 md:col-span-6 col-span-12 lg:order-3 md:order-3 order-3",
|
|
|
|
|
|
2024-06-28 15:39:26 +07:00
|
|
|
};
|
|
|
|
|
break;
|
2024-07-03 15:33:51 +07:00
|
|
|
case enumPageSectionLayouts[enumPageSectionTemplate[enumPageSectionKey.NONE]["NONE"]]["VERTICAL_ONE_TWO_THREE"]:
|
|
|
|
|
_classForSection = {
|
2024-07-08 17:38:54 +07:00
|
|
|
section_layout: "section_layout grid-cols-12",
|
|
|
|
|
0: "col-span-2 lg:block hidden",
|
|
|
|
|
1: "lg:col-span-4 md:col-span-5 col-span-12",
|
|
|
|
|
2: "lg:col-span-6 md:col-span-7 col-span-12",
|
2024-07-03 15:33:51 +07:00
|
|
|
};
|
|
|
|
|
break;
|
2024-06-28 15:39:26 +07:00
|
|
|
default:
|
|
|
|
|
_classForSection = {
|
|
|
|
|
section_layout: "section_layout basic_column",
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return _classForSection;
|
|
|
|
|
});
|
|
|
|
|
|
2024-07-03 15:33:51 +07:00
|
|
|
const handleActiveItem = (key: string, keyActive: string, index: number, defaultValue: any) => {
|
|
|
|
|
const designObject = props?.section?.settings?.label ? getInputValue(props.section.settings.label, "OBJECT") : {};
|
|
|
|
|
const updatedDesignObject = { ...designObject };
|
|
|
|
|
|
|
|
|
|
if (Array.isArray(designObject[keyActive])) {
|
|
|
|
|
const isActive = designObject[keyActive].includes(Number(index) + 1);
|
|
|
|
|
return {
|
|
|
|
|
...updatedDesignObject,
|
|
|
|
|
[key]: isActive ? designObject[key] : defaultValue,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
delete updatedDesignObject[key];
|
|
|
|
|
return updatedDesignObject;
|
|
|
|
|
};
|
|
|
|
|
|
2024-06-28 15:39:26 +07:00
|
|
|
const LAYOUT_PARSE = computed(() => {
|
|
|
|
|
return props.settings?.label ? getInputValue(props.settings.label, "OBJECT") : {};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const mapActivesToItems = (index: number) => {
|
|
|
|
|
if (LAYOUT_PARSE.value && LAYOUT_PARSE.value.listCss) {
|
|
|
|
|
return LAYOUT_PARSE.value.listCss[index] || {};
|
2024-07-03 15:33:51 +07:00
|
|
|
}
|
2024-06-28 15:39:26 +07:00
|
|
|
return {};
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<div class="section_layout border-custom" :class="[CLASS_FOR_SECTION.section_layout]" :style="LAYOUT_PARSE['div.section_layout']">
|
|
|
|
|
<div
|
|
|
|
|
class="section_child"
|
2024-07-05 10:39:07 +07:00
|
|
|
v-for="(position, index) in props.content || Array(SETTING_OPTIONS?.MAX_ELEMENT).fill({})"
|
2024-06-28 15:39:26 +07:00
|
|
|
:key="index"
|
|
|
|
|
:class="['border-custom', CLASS_FOR_SECTION[index]]"
|
|
|
|
|
:style="mapActivesToItems(index)['div.section_child']"
|
|
|
|
|
>
|
|
|
|
|
<RecusiveSection :type="position.type" :id="position.data" :section="props.section" />
|
|
|
|
|
</div>
|
2024-07-09 08:33:33 +07:00
|
|
|
<div v-if="LAYOUT_PARSE['div.background']?.includes('display:block;')" class="attributeBackground" :style="LAYOUT_PARSE['div.background']"></div>
|
2024-06-28 15:39:26 +07:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2024-06-28 16:14:06 +07:00
|
|
|
.border-pri {
|
|
|
|
|
&.section_layout {
|
|
|
|
|
gap: 5px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-28 15:39:26 +07:00
|
|
|
.section_layout {
|
|
|
|
|
display: grid;
|
2024-07-05 10:39:07 +07:00
|
|
|
position: relative;
|
|
|
|
|
|
2024-07-09 08:33:33 +07:00
|
|
|
.attributeBackground {
|
|
|
|
|
position: absolute;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
display: none;
|
|
|
|
|
left: -50vw;
|
|
|
|
|
width: 150vw;
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-05 10:39:07 +07:00
|
|
|
.section_child {
|
|
|
|
|
z-index: 1;
|
|
|
|
|
}
|
|
|
|
|
.attributeBackground {
|
|
|
|
|
position: absolute;
|
|
|
|
|
height: 100%;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
display: none;
|
|
|
|
|
left: -50vw;
|
|
|
|
|
width: 150vw;
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-28 15:39:26 +07:00
|
|
|
&.smartphone_layout {
|
|
|
|
|
grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
|
|
|
|
|
}
|
|
|
|
|
&.basic_column {
|
|
|
|
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.two_col_layout {
|
|
|
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.three_col_layout {
|
|
|
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
&.four_col_layout {
|
|
|
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
&.five_col_layout {
|
|
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
&.six_col_layout {
|
|
|
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
|
|
|
}
|
2024-07-05 10:39:07 +07:00
|
|
|
&.seven_col_layout {
|
|
|
|
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
&.eight_col_layout {
|
|
|
|
|
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
&.nine_col_layout {
|
|
|
|
|
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
&.ten_col_layout {
|
|
|
|
|
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
&.eleven_col_layout {
|
|
|
|
|
grid-template-columns: repeat(11, minmax(0, 1fr));
|
|
|
|
|
}
|
|
|
|
|
&.twelve_col_layout {
|
|
|
|
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
|
|
|
}
|
2024-07-08 17:38:54 +07:00
|
|
|
// .col-span-2 {
|
|
|
|
|
// grid-column: span 2 / span 2;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-3 {
|
|
|
|
|
// grid-column: span 3 / span 3;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-4 {
|
|
|
|
|
// grid-column: span 4 / span 4;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-5 {
|
|
|
|
|
// grid-column: span 5 / span 5;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-6 {
|
|
|
|
|
// grid-column: span 6 / span 6;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-7 {
|
|
|
|
|
// grid-column: span 7 / span 7;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-8 {
|
|
|
|
|
// grid-column: span 8 / span 8;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-9 {
|
|
|
|
|
// grid-column: span 9 / span 9;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-10 {
|
|
|
|
|
// grid-column: span 10 / span 10;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-11 {
|
|
|
|
|
// grid-column: span 11 / span 11;
|
|
|
|
|
// }
|
|
|
|
|
// .col-span-12 {
|
|
|
|
|
// grid-column: span 12 / span 12;
|
|
|
|
|
// }
|
2024-06-28 15:39:26 +07:00
|
|
|
.border-custom {
|
|
|
|
|
border-color: #e5e5e5 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|