diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..b58ab0c --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "oxc.oxc-vscode" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 9ee1cc6..67515c9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,11 +1,28 @@ { + "[typescript]": { + "editor.defaultFormatter": "oxc.oxc-vscode", + "editor.formatOnSave": true + }, + "[vue]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "editor.codeActionsOnSave": { + "source.fixAll.oxc": "always" + }, + "editor.defaultFormatter": "oxc.oxc-vscode", + "editor.formatOnSave": true, "editor.quickSuggestions": { "strings": "on" }, + "eslint.enable": false, "files.associations": { "*.css": "tailwindcss" }, "graphql-config.load.rootDir": "wp-content/themes/moonshine", + "oxc.fmt.configPath": ".oxfmtrc.json", + "oxc.path.oxfmt": "wp-content/themes/moonshine/node_modules/.bin/oxfmt", + "oxc.path.oxlint": "wp-content/themes/moonshine/node_modules/.bin/oxlint", + "oxc.typeAware": true, "tailwindCSS.classAttributes": [ "class", "ui" diff --git a/wp-content/themes/moonshine/.oxfmtrc.json b/wp-content/themes/moonshine/.oxfmtrc.json new file mode 100644 index 0000000..6cb97e3 --- /dev/null +++ b/wp-content/themes/moonshine/.oxfmtrc.json @@ -0,0 +1,25 @@ +{ + "arrowParens": "always", + "indentStyle": "space", + "indentWidth": 2, + "quoteStyle": "double", + "semi": true, + "trailingComma": "es5", + "experimentalSortImports": { + "groups": [ + ["side-effect"], + ["builtin"], + ["external", "type-external"], + ["internal", "type-internal"], + ["parent", "type-parent"], + ["sibling", "type-sibling"], + ["index", "type-index"] + ] + }, + "experimentalTailwindcss": { + "stylesheet": "./app/assets/css/_main.css", + "attributes": ["class", "className"], + "functions": ["clsx", "cn"], + "preserveWhitespace": true + } +} diff --git a/wp-content/themes/moonshine/.oxlintrc.json b/wp-content/themes/moonshine/.oxlintrc.json new file mode 100644 index 0000000..a10227a --- /dev/null +++ b/wp-content/themes/moonshine/.oxlintrc.json @@ -0,0 +1,17 @@ +{ + "extends": ["recommended"], + "plugins": ["vue"], + "env": { + "browser": true, + "node": true + }, + "settings": { + "vue": { + "version": 3 + } + }, + "rules": { + "vue/max-attributes-per-line": "off", + "vue/no-v-html": "off" + } +} diff --git a/wp-content/themes/moonshine/CHANGELOG.md b/wp-content/themes/moonshine/CHANGELOG.md index 812a7ba..03d15ef 100644 --- a/wp-content/themes/moonshine/CHANGELOG.md +++ b/wp-content/themes/moonshine/CHANGELOG.md @@ -190,7 +190,6 @@ ## v0.1.1 - ### 🚀 Enhancements - Initial Moonshine theme - Headless WordPress theme based on Nuxt (b3134fe) diff --git a/wp-content/themes/moonshine/README.md b/wp-content/themes/moonshine/README.md index 9bbf876..f143c02 100644 --- a/wp-content/themes/moonshine/README.md +++ b/wp-content/themes/moonshine/README.md @@ -4,11 +4,11 @@ Thème WordPress en headless basé sur Nuxt. ## Variables d'environnement -| Nom | Description | Exemple | Requise | -|-----|-------------|---------|---------| -| `NUXT_SITE_ENV` | Environnement | staging \| production | ➖ | -| `NUXT_SITE_URL` | URL du frontend Nuxt | https://www.example.com | ➖ | -| `NUXT_WP_URL` | URL du backend WordPress | https://wp.exemple.com | ✅ | +| Nom | Description | Exemple | Requise | +| --------------- | ------------------------ | ----------------------- | ------- | +| `NUXT_SITE_ENV` | Environnement | staging \| production | ➖ | +| `NUXT_SITE_URL` | URL du frontend Nuxt | https://www.example.com | ➖ | +| `NUXT_WP_URL` | URL du backend WordPress | https://wp.exemple.com | ✅ | ## Secrets diff --git a/wp-content/themes/moonshine/acf-json/group_abstract_builder.json b/wp-content/themes/moonshine/acf-json/group_abstract_builder.json index 30bbd1d..6fe4d45 100644 --- a/wp-content/themes/moonshine/acf-json/group_abstract_builder.json +++ b/wp-content/themes/moonshine/acf-json/group_abstract_builder.json @@ -1,252 +1,240 @@ { - "key": "group_abstract_builder", - "title": "Abstract - Builder", - "fields": [ - { - "key": "field_builder_sections", - "label": "Section(s)", - "name": "sections", - "aria-label": "", - "type": "flexible_content", - "instructions": "", - "required": 0, - "conditional_logic": 0, - "wrapper": { + "key": "group_abstract_builder", + "title": "Abstract - Builder", + "fields": [ + { + "key": "field_builder_sections", + "label": "Section(s)", + "name": "sections", + "aria-label": "", + "type": "flexible_content", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "acfe_flexible_advanced": 1, + "acfe_flexible_stylised_button": 0, + "acfe_flexible_hide_empty_message": 0, + "acfe_flexible_empty_message": "", + "acfe_flexible_layouts_templates": 0, + "acfe_flexible_layouts_placeholder": 0, + "acfe_flexible_layouts_thumbnails": 0, + "acfe_flexible_async": [], + "acfe_flexible_add_actions": ["copy", "title", "toggle"], + "acfe_flexible_remove_button": [], + "acfe_flexible_remove_top_actions": [], + "acfe_flexible_modal_edit": { + "acfe_flexible_modal_edit_enabled": "1", + "acfe_flexible_modal_edit_size": "xlarge" + }, + "acfe_flexible_modal": { + "acfe_flexible_modal_enabled": "0", + "acfe_flexible_modal_title": false, + "acfe_flexible_modal_size": "xlarge", + "acfe_flexible_modal_col": "4", + "acfe_flexible_modal_categories": false + }, + "acfe_flexible_modal_settings": { + "acfe_flexible_modal_settings_enabled": "1", + "acfe_flexible_modal_settings_size": "large", + "acfe_flexible_modal_settings_close": "1", + "acfe_flexible_modal_settings_close_label": "" + }, + "layouts": { + "layout_6852f761e95b0": { + "key": "layout_6852f761e95b0", + "name": "text_block", + "label": "Bloc de texte", + "display": "block", + "sub_fields": [ + { + "key": "field_68eeceb62b8a6", + "label": "Contenu", + "name": "content", + "aria-label": "", + "type": "wysiwyg", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { "width": "", "class": "", "id": "" - }, - "acfe_flexible_advanced": 1, - "acfe_flexible_stylised_button": 0, - "acfe_flexible_hide_empty_message": 0, - "acfe_flexible_empty_message": "", - "acfe_flexible_layouts_templates": 0, - "acfe_flexible_layouts_placeholder": 0, - "acfe_flexible_layouts_thumbnails": 0, - "acfe_flexible_async": [], - "acfe_flexible_add_actions": [ - "copy", - "title", - "toggle" - ], - "acfe_flexible_remove_button": [], - "acfe_flexible_remove_top_actions": [], - "acfe_flexible_modal_edit": { - "acfe_flexible_modal_edit_enabled": "1", - "acfe_flexible_modal_edit_size": "xlarge" - }, - "acfe_flexible_modal": { - "acfe_flexible_modal_enabled": "0", - "acfe_flexible_modal_title": false, - "acfe_flexible_modal_size": "xlarge", - "acfe_flexible_modal_col": "4", - "acfe_flexible_modal_categories": false - }, - "acfe_flexible_modal_settings": { - "acfe_flexible_modal_settings_enabled": "1", - "acfe_flexible_modal_settings_size": "large", - "acfe_flexible_modal_settings_close": "1", - "acfe_flexible_modal_settings_close_label": "" - }, - "layouts": { - "layout_6852f761e95b0": { - "key": "layout_6852f761e95b0", - "name": "text_block", - "label": "Bloc de texte", - "display": "block", - "sub_fields": [ - { - "key": "field_68eeceb62b8a6", - "label": "Contenu", - "name": "content", - "aria-label": "", - "type": "wysiwyg", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "default_value": "", - "acfe_wysiwyg_height": 300, - "acfe_wysiwyg_max_height": "", - "acfe_wysiwyg_valid_elements": "", - "acfe_wysiwyg_custom_style": "", - "acfe_wysiwyg_disable_wp_style": 0, - "acfe_wysiwyg_autoresize": 0, - "acfe_wysiwyg_disable_resize": 0, - "acfe_wysiwyg_remove_path": 0, - "acfe_wysiwyg_menubar": 0, - "acfe_wysiwyg_transparent": 0, - "acfe_wysiwyg_merge_toolbar": 0, - "acfe_wysiwyg_custom_toolbar": 0, - "required_message": "", - "allow_in_bindings": 0, - "tabs": "all", - "toolbar": "full", - "media_upload": 1, - "delay": 0, - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "content", - "graphql_non_null": 1, - "acfe_wysiwyg_auto_init": 0, - "acfe_wysiwyg_min_height": 300, - "acfe_wysiwyg_toolbar_buttons": [] - } - ], - "min": "", - "max": "", - "acfe_flexible_modal_edit_size": "", - "acfe_flexible_settings": [ - "group_layout_contained" - ], - "acfe_flexible_settings_size": "large", - "acfe_flexible_render_template": false, - "acfe_flexible_render_style": false, - "acfe_flexible_render_script": false, - "acfe_flexible_thumbnail": false, - "acfe_flexible_category": false - }, - "layout_697caf9a3e05b": { - "key": "layout_697caf9a3e05b", - "name": "hero_split", - "label": "Héro en moitié", - "display": "block", - "sub_fields": [ - { - "key": "field_697cafb13e05d", - "label": "Content", - "name": "content", - "aria-label": "", - "type": "wysiwyg", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "default_value": "", - "allow_in_bindings": 0, - "tabs": "all", - "toolbar": "full", - "media_upload": 0, - "delay": 0, - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "content", - "graphql_non_null": 1 - }, - { - "key": "field_697cafc43e05e", - "label": "Media", - "name": "media", - "aria-label": "", - "type": "clone", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "graphql_field_name": "media", - "clone": [ - "group_abstract_media" - ], - "display": "seamless", - "layout": "block", - "prefix_label": 0, - "prefix_name": 0, - "acfe_seamless_style": 0, - "acfe_clone_modal": 0, - "acfe_clone_modal_close": 0, - "acfe_clone_modal_button": "", - "acfe_clone_modal_size": "large" - }, - { - "key": "field_697cafdc3e05f", - "label": "Position de l'image", - "name": "reverse", - "aria-label": "", - "type": "true_false", - "instructions": "", - "required": 0, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "message": "", - "default_value": 0, - "allow_in_bindings": 0, - "ui_on_text": "Gauche", - "ui_off_text": "Droite", - "ui": 1, - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "reverse", - "graphql_non_null": 1 - } - ], - "min": "", - "max": "", - "acfe_flexible_modal_edit_size": "", - "acfe_flexible_settings": "", - "acfe_flexible_settings_size": "large", - "acfe_flexible_render_template": false, - "acfe_flexible_render_style": false, - "acfe_flexible_render_script": false, - "acfe_flexible_thumbnail": false, - "acfe_flexible_category": false - } - }, - "min": "", - "max": "", - "button_label": "Ajouter un élément", - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "sections", - "graphql_non_null": 0, - "acfe_flexible_layouts_previews": false, - "acfe_flexible_close_button_label": "", - "acfe_flexible_layouts_state": false - } - ], - "location": [ - [ - { - "param": "abstract" + }, + "default_value": "", + "acfe_wysiwyg_height": 300, + "acfe_wysiwyg_max_height": "", + "acfe_wysiwyg_valid_elements": "", + "acfe_wysiwyg_custom_style": "", + "acfe_wysiwyg_disable_wp_style": 0, + "acfe_wysiwyg_autoresize": 0, + "acfe_wysiwyg_disable_resize": 0, + "acfe_wysiwyg_remove_path": 0, + "acfe_wysiwyg_menubar": 0, + "acfe_wysiwyg_transparent": 0, + "acfe_wysiwyg_merge_toolbar": 0, + "acfe_wysiwyg_custom_toolbar": 0, + "required_message": "", + "allow_in_bindings": 0, + "tabs": "all", + "toolbar": "full", + "media_upload": 1, + "delay": 0, + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "content", + "graphql_non_null": 1, + "acfe_wysiwyg_auto_init": 0, + "acfe_wysiwyg_min_height": 300, + "acfe_wysiwyg_toolbar_buttons": [] } - ] - ], - "menu_order": 0, - "position": "acf_after_title", - "style": "seamless", - "label_placement": "top", - "instruction_placement": "label", - "hide_on_screen": [ - "the_content" - ], - "active": true, - "description": "", - "show_in_rest": 0, - "display_title": "", - "acfe_autosync": [ - "json" - ], - "acfe_form": 0, - "show_in_graphql": 1, - "graphql_field_name": "GroupAbstractBuilder", - "map_graphql_types_from_location_rules": 0, - "graphql_types": "", - "acfe_meta": "", - "acfe_note": "", - "modified": 1769779666 + ], + "min": "", + "max": "", + "acfe_flexible_modal_edit_size": "", + "acfe_flexible_settings": ["group_layout_contained"], + "acfe_flexible_settings_size": "large", + "acfe_flexible_render_template": false, + "acfe_flexible_render_style": false, + "acfe_flexible_render_script": false, + "acfe_flexible_thumbnail": false, + "acfe_flexible_category": false + }, + "layout_697caf9a3e05b": { + "key": "layout_697caf9a3e05b", + "name": "hero_split", + "label": "Héro en moitié", + "display": "block", + "sub_fields": [ + { + "key": "field_697cafb13e05d", + "label": "Content", + "name": "content", + "aria-label": "", + "type": "wysiwyg", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "allow_in_bindings": 0, + "tabs": "all", + "toolbar": "full", + "media_upload": 0, + "delay": 0, + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "content", + "graphql_non_null": 1 + }, + { + "key": "field_697cafc43e05e", + "label": "Media", + "name": "media", + "aria-label": "", + "type": "clone", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "graphql_field_name": "media", + "clone": ["group_abstract_media"], + "display": "seamless", + "layout": "block", + "prefix_label": 0, + "prefix_name": 0, + "acfe_seamless_style": 0, + "acfe_clone_modal": 0, + "acfe_clone_modal_close": 0, + "acfe_clone_modal_button": "", + "acfe_clone_modal_size": "large" + }, + { + "key": "field_697cafdc3e05f", + "label": "Position de l'image", + "name": "reverse", + "aria-label": "", + "type": "true_false", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "message": "", + "default_value": 0, + "allow_in_bindings": 0, + "ui_on_text": "Gauche", + "ui_off_text": "Droite", + "ui": 1, + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "reverse", + "graphql_non_null": 1 + } + ], + "min": "", + "max": "", + "acfe_flexible_modal_edit_size": "", + "acfe_flexible_settings": "", + "acfe_flexible_settings_size": "large", + "acfe_flexible_render_template": false, + "acfe_flexible_render_style": false, + "acfe_flexible_render_script": false, + "acfe_flexible_thumbnail": false, + "acfe_flexible_category": false + } + }, + "min": "", + "max": "", + "button_label": "Ajouter un élément", + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "sections", + "graphql_non_null": 0, + "acfe_flexible_layouts_previews": false, + "acfe_flexible_close_button_label": "", + "acfe_flexible_layouts_state": false + } + ], + "location": [ + [ + { + "param": "abstract" + } + ] + ], + "menu_order": 0, + "position": "acf_after_title", + "style": "seamless", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": ["the_content"], + "active": true, + "description": "", + "show_in_rest": 0, + "display_title": "", + "acfe_autosync": ["json"], + "acfe_form": 0, + "show_in_graphql": 1, + "graphql_field_name": "GroupAbstractBuilder", + "map_graphql_types_from_location_rules": 0, + "graphql_types": "", + "acfe_meta": "", + "acfe_note": "", + "modified": 1769779666 } diff --git a/wp-content/themes/moonshine/acf-json/group_abstract_media.json b/wp-content/themes/moonshine/acf-json/group_abstract_media.json index 43b596f..34141ce 100644 --- a/wp-content/themes/moonshine/acf-json/group_abstract_media.json +++ b/wp-content/themes/moonshine/acf-json/group_abstract_media.json @@ -1,123 +1,121 @@ { - "key": "group_abstract_media", - "title": "Abstract - Media", - "fields": [ - { - "key": "field_697caec68536d", - "label": "Image", - "name": "image", - "aria-label": "", - "type": "image", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "33", - "class": "", - "id": "" - }, - "uploader": "", - "return_format": "array", - "library": "all", - "acfe_thumbnail": 0, - "min_width": "", - "min_height": "", - "min_size": "", - "max_width": "", - "max_height": "", - "max_size": "", - "mime_types": "", - "allow_in_bindings": 0, - "preview_size": "medium", - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "image" - }, - { - "key": "field_697caf018536e", - "label": "Ratio d'aspect", - "name": "aspect_ratio", - "aria-label": "", - "type": "button_group", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "33", - "class": "", - "id": "" - }, - "choices": { - "square": "Carré (1:1)", - "video": "Vidéo (16:9)", - "portrait": "Portrait (2:3)", - "auto": "Aspect d'origine" - }, - "default_value": "auto", - "return_format": "value", - "allow_null": 0, - "allow_in_bindings": 0, - "layout": "horizontal", - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "aspectRatio", - "graphql_non_null": 1 - }, - { - "key": "field_697caf378536f", - "label": "Ajustement de l'image", - "name": "object_fit", - "aria-label": "", - "type": "button_group", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "33", - "class": "", - "id": "" - }, - "choices": { - "cover": "Recadrer si nécessaire", - "contain": "Contenir sans recadrage" - }, - "default_value": "cover", - "return_format": "value", - "allow_null": 0, - "allow_in_bindings": 0, - "layout": "horizontal", - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "objectFit", - "graphql_non_null": 1 - } - ], - "location": [ - [ - { - "param": "abstract" - } - ] - ], - "menu_order": 0, - "position": "normal", - "style": "seamless", - "label_placement": "top", - "instruction_placement": "label", - "hide_on_screen": "", - "active": true, - "description": "", - "show_in_rest": 0, - "display_title": "", - "acfe_autosync": [ - "json" - ], - "acfe_form": 0, - "show_in_graphql": 1, - "graphql_field_name": "GroupAbstractMedia", - "map_graphql_types_from_location_rules": 0, - "graphql_types": "", - "acfe_meta": "", - "acfe_note": "", - "modified": 1769779078 + "key": "group_abstract_media", + "title": "Abstract - Media", + "fields": [ + { + "key": "field_697caec68536d", + "label": "Image", + "name": "image", + "aria-label": "", + "type": "image", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "33", + "class": "", + "id": "" + }, + "uploader": "", + "return_format": "array", + "library": "all", + "acfe_thumbnail": 0, + "min_width": "", + "min_height": "", + "min_size": "", + "max_width": "", + "max_height": "", + "max_size": "", + "mime_types": "", + "allow_in_bindings": 0, + "preview_size": "medium", + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "image" + }, + { + "key": "field_697caf018536e", + "label": "Ratio d'aspect", + "name": "aspect_ratio", + "aria-label": "", + "type": "button_group", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "33", + "class": "", + "id": "" + }, + "choices": { + "square": "Carré (1:1)", + "video": "Vidéo (16:9)", + "portrait": "Portrait (2:3)", + "auto": "Aspect d'origine" + }, + "default_value": "auto", + "return_format": "value", + "allow_null": 0, + "allow_in_bindings": 0, + "layout": "horizontal", + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "aspectRatio", + "graphql_non_null": 1 + }, + { + "key": "field_697caf378536f", + "label": "Ajustement de l'image", + "name": "object_fit", + "aria-label": "", + "type": "button_group", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "33", + "class": "", + "id": "" + }, + "choices": { + "cover": "Recadrer si nécessaire", + "contain": "Contenir sans recadrage" + }, + "default_value": "cover", + "return_format": "value", + "allow_null": 0, + "allow_in_bindings": 0, + "layout": "horizontal", + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "objectFit", + "graphql_non_null": 1 + } + ], + "location": [ + [ + { + "param": "abstract" + } + ] + ], + "menu_order": 0, + "position": "normal", + "style": "seamless", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": "", + "active": true, + "description": "", + "show_in_rest": 0, + "display_title": "", + "acfe_autosync": ["json"], + "acfe_form": 0, + "show_in_graphql": 1, + "graphql_field_name": "GroupAbstractMedia", + "map_graphql_types_from_location_rules": 0, + "graphql_types": "", + "acfe_meta": "", + "acfe_note": "", + "modified": 1769779078 } diff --git a/wp-content/themes/moonshine/acf-json/group_abstract_social.json b/wp-content/themes/moonshine/acf-json/group_abstract_social.json index 913fe51..b50a427 100644 --- a/wp-content/themes/moonshine/acf-json/group_abstract_social.json +++ b/wp-content/themes/moonshine/acf-json/group_abstract_social.json @@ -1,86 +1,84 @@ { - "key": "group_abstract_social", - "title": "Abstract - Social", - "fields": [ + "key": "group_abstract_social", + "title": "Abstract - Social", + "fields": [ + { + "key": "field_6855a1d643408", + "label": "Médias sociaux", + "name": "profiles", + "aria-label": "", + "type": "repeater", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "acfe_repeater_stylised_button": 0, + "layout": "table", + "pagination": 0, + "min": 0, + "max": 0, + "collapsed": "", + "button_label": "Ajouter un élément", + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "profiles", + "graphql_non_null": 1, + "rows_per_page": 20, + "sub_fields": [ { - "key": "field_6855a1d643408", - "label": "Médias sociaux", - "name": "profiles", - "aria-label": "", - "type": "repeater", - "instructions": "", - "required": 0, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "acfe_repeater_stylised_button": 0, - "layout": "table", - "pagination": 0, - "min": 0, - "max": 0, - "collapsed": "", - "button_label": "Ajouter un élément", - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "profiles", - "graphql_non_null": 1, - "rows_per_page": 20, - "sub_fields": [ - { - "key": "field_6855a7e143409", - "label": "URL", - "name": "url", - "aria-label": "", - "type": "url", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "default_value": "", - "allow_in_bindings": 0, - "placeholder": "", - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "url", - "graphql_non_null": 1, - "parent_repeater": "field_6855a1d643408" - } - ] + "key": "field_6855a7e143409", + "label": "URL", + "name": "url", + "aria-label": "", + "type": "url", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "allow_in_bindings": 0, + "placeholder": "", + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "url", + "graphql_non_null": 1, + "parent_repeater": "field_6855a1d643408" } - ], - "location": [ - [ - { - "param": "abstract" - } - ] - ], - "menu_order": 0, - "position": "normal", - "style": "seamless", - "label_placement": "top", - "instruction_placement": "label", - "hide_on_screen": "", - "active": true, - "description": "", - "show_in_rest": 0, - "display_title": "", - "acfe_autosync": [ - "json" - ], - "acfe_form": 0, - "show_in_graphql": 1, - "graphql_field_name": "GroupAbstractSocial", - "map_graphql_types_from_location_rules": 0, - "graphql_types": "", - "acfe_meta": "", - "acfe_note": "", - "modified": 1769788591 + ] + } + ], + "location": [ + [ + { + "param": "abstract" + } + ] + ], + "menu_order": 0, + "position": "normal", + "style": "seamless", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": "", + "active": true, + "description": "", + "show_in_rest": 0, + "display_title": "", + "acfe_autosync": ["json"], + "acfe_form": 0, + "show_in_graphql": 1, + "graphql_field_name": "GroupAbstractSocial", + "map_graphql_types_from_location_rules": 0, + "graphql_types": "", + "acfe_meta": "", + "acfe_note": "", + "modified": 1769788591 } diff --git a/wp-content/themes/moonshine/acf-json/group_layout_contained.json b/wp-content/themes/moonshine/acf-json/group_layout_contained.json index c4cb85a..21a630a 100644 --- a/wp-content/themes/moonshine/acf-json/group_layout_contained.json +++ b/wp-content/themes/moonshine/acf-json/group_layout_contained.json @@ -1,149 +1,147 @@ { - "key": "group_layout_contained", - "title": "Layout - Contained", - "fields": [ - { - "key": "field_68dc29d78941c", - "label": "Conteneur", - "name": "container", - "aria-label": "", - "type": "select", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "choices": { - "default": "1536px", - "xl": "1280px", - "lg": "1024px", - "fluid": "Largeur fluide", - "none": "Pleine largeur" - }, - "default_value": "default", - "return_format": "value", - "multiple": 0, - "max": "", - "prepend": "", - "append": "", - "required_message": "", - "allow_null": 0, - "allow_in_bindings": 0, - "ui": 0, - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "container", - "graphql_non_null": 1, - "ajax": 0, - "placeholder": "", - "create_options": 0, - "save_options": 0, - "allow_custom": 0, - "search_placeholder": "", - "min": "" - }, - { - "key": "field_693c8c3b5ce50", - "label": "Espacement vertical", - "name": "vertical_padding", - "aria-label": "", - "type": "select", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "choices": { - "sm": "Petit (12px)", - "md": "Medium (24px)", - "lg": "Grand (48px)" - }, - "default_value": "md", - "return_format": "value", - "multiple": 0, - "allow_null": 0, - "allow_in_bindings": 0, - "ui": 0, - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "verticalPadding", - "graphql_non_null": 1, - "ajax": 0, - "placeholder": "", - "create_options": 0, - "save_options": 0, - "allow_custom": 0, - "search_placeholder": "" - }, - { - "key": "field_693c8c945ce51", - "label": "Couleur d'arrière-plan", - "name": "bg_color", - "aria-label": "", - "type": "select", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "choices": { - "default": "Par défaut", - "muted": "Atténué", - "inverted": "Inversé" - }, - "default_value": "default", - "return_format": "value", - "multiple": 0, - "allow_null": 0, - "allow_in_bindings": 0, - "ui": 0, - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "bgColor", - "graphql_non_null": 1, - "ajax": 0, - "placeholder": "", - "create_options": 0, - "save_options": 0, - "allow_custom": 0, - "search_placeholder": "" - } - ], - "location": [ - [ - { - "param": "abstract" - } - ] - ], - "menu_order": 0, - "position": "normal", - "style": "default", - "label_placement": "top", - "instruction_placement": "label", - "hide_on_screen": "", - "active": true, - "description": "", - "show_in_rest": 0, - "display_title": "", - "acfe_autosync": [ - "json" - ], - "acfe_form": 0, - "show_in_graphql": 1, - "graphql_field_name": "GroupLayoutContained", - "map_graphql_types_from_location_rules": 0, - "graphql_types": "", - "acfe_meta": "", - "acfe_note": "", - "modified": 1768358794 + "key": "group_layout_contained", + "title": "Layout - Contained", + "fields": [ + { + "key": "field_68dc29d78941c", + "label": "Conteneur", + "name": "container", + "aria-label": "", + "type": "select", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "choices": { + "default": "1536px", + "xl": "1280px", + "lg": "1024px", + "fluid": "Largeur fluide", + "none": "Pleine largeur" + }, + "default_value": "default", + "return_format": "value", + "multiple": 0, + "max": "", + "prepend": "", + "append": "", + "required_message": "", + "allow_null": 0, + "allow_in_bindings": 0, + "ui": 0, + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "container", + "graphql_non_null": 1, + "ajax": 0, + "placeholder": "", + "create_options": 0, + "save_options": 0, + "allow_custom": 0, + "search_placeholder": "", + "min": "" + }, + { + "key": "field_693c8c3b5ce50", + "label": "Espacement vertical", + "name": "vertical_padding", + "aria-label": "", + "type": "select", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "choices": { + "sm": "Petit (12px)", + "md": "Medium (24px)", + "lg": "Grand (48px)" + }, + "default_value": "md", + "return_format": "value", + "multiple": 0, + "allow_null": 0, + "allow_in_bindings": 0, + "ui": 0, + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "verticalPadding", + "graphql_non_null": 1, + "ajax": 0, + "placeholder": "", + "create_options": 0, + "save_options": 0, + "allow_custom": 0, + "search_placeholder": "" + }, + { + "key": "field_693c8c945ce51", + "label": "Couleur d'arrière-plan", + "name": "bg_color", + "aria-label": "", + "type": "select", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "choices": { + "default": "Par défaut", + "muted": "Atténué", + "inverted": "Inversé" + }, + "default_value": "default", + "return_format": "value", + "multiple": 0, + "allow_null": 0, + "allow_in_bindings": 0, + "ui": 0, + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "bgColor", + "graphql_non_null": 1, + "ajax": 0, + "placeholder": "", + "create_options": 0, + "save_options": 0, + "allow_custom": 0, + "search_placeholder": "" + } + ], + "location": [ + [ + { + "param": "abstract" + } + ] + ], + "menu_order": 0, + "position": "normal", + "style": "default", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": "", + "active": true, + "description": "", + "show_in_rest": 0, + "display_title": "", + "acfe_autosync": ["json"], + "acfe_form": 0, + "show_in_graphql": 1, + "graphql_field_name": "GroupLayoutContained", + "map_graphql_types_from_location_rules": 0, + "graphql_types": "", + "acfe_meta": "", + "acfe_note": "", + "modified": 1768358794 } diff --git a/wp-content/themes/moonshine/acf-json/group_options_site.json b/wp-content/themes/moonshine/acf-json/group_options_site.json index 8b32168..78c1fda 100644 --- a/wp-content/themes/moonshine/acf-json/group_options_site.json +++ b/wp-content/themes/moonshine/acf-json/group_options_site.json @@ -1,158 +1,154 @@ { - "key": "group_options_site", - "title": "Options - Site", - "fields": [ + "key": "group_options_site", + "title": "Options - Site", + "fields": [ + { + "key": "field_697220310aaaf", + "label": "Email", + "name": "email", + "aria-label": "", + "type": "email", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "allow_in_bindings": 0, + "placeholder": "", + "prepend": "", + "append": "", + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "email", + "graphql_non_null": 1 + }, + { + "key": "field_697cbf414fdd5", + "label": "Phone number", + "name": "phone_number", + "aria-label": "", + "type": "phone", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "initial_country": "CA", + "return_format": "national", + "allow_in_bindings": 0, + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "phoneNumber", + "graphql_non_null": 1 + }, + { + "key": "field_697cd4c5fc56a", + "label": "Médias sociaux", + "name": "social", + "aria-label": "", + "type": "clone", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "graphql_field_name": "social", + "clone": ["group_abstract_social"], + "display": "seamless", + "layout": "block", + "prefix_label": 0, + "prefix_name": 0, + "acfe_seamless_style": 0, + "acfe_clone_modal": 0, + "acfe_clone_modal_close": 0, + "acfe_clone_modal_button": "", + "acfe_clone_modal_size": "large" + }, + { + "key": "field_697cc921234cc", + "label": "Liens globaux", + "name": "links", + "aria-label": "", + "type": "group", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "layout": "row", + "acfe_seamless_style": 0, + "acfe_group_modal": 0, + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "links", + "graphql_non_null": 0, + "sub_fields": [ { - "key": "field_697220310aaaf", - "label": "Email", - "name": "email", - "aria-label": "", - "type": "email", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "default_value": "", - "allow_in_bindings": 0, - "placeholder": "", - "prepend": "", - "append": "", - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "email", - "graphql_non_null": 1 - }, - { - "key": "field_697cbf414fdd5", - "label": "Phone number", - "name": "phone_number", - "aria-label": "", - "type": "phone", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "initial_country": "CA", - "return_format": "national", - "allow_in_bindings": 0, - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "phoneNumber", - "graphql_non_null": 1 - }, - { - "key": "field_697cd4c5fc56a", - "label": "Médias sociaux", - "name": "social", - "aria-label": "", - "type": "clone", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "graphql_field_name": "social", - "clone": [ - "group_abstract_social" - ], - "display": "seamless", - "layout": "block", - "prefix_label": 0, - "prefix_name": 0, - "acfe_seamless_style": 0, - "acfe_clone_modal": 0, - "acfe_clone_modal_close": 0, - "acfe_clone_modal_button": "", - "acfe_clone_modal_size": "large" - }, - { - "key": "field_697cc921234cc", - "label": "Liens globaux", - "name": "links", - "aria-label": "", - "type": "group", - "instructions": "", - "required": 0, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "layout": "row", - "acfe_seamless_style": 0, - "acfe_group_modal": 0, - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "links", - "graphql_non_null": 0, - "sub_fields": [ - { - "key": "field_697cc93e234cd", - "label": "Contact", - "name": "contact", - "aria-label": "", - "type": "link", - "instructions": "", - "required": 1, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "return_format": "array", - "allow_in_bindings": 0, - "show_in_graphql": 1, - "graphql_description": "", - "graphql_field_name": "contact", - "graphql_non_null": 1 - } - ], - "acfe_group_modal_close": 0, - "acfe_group_modal_button": "", - "acfe_group_modal_size": "large" + "key": "field_697cc93e234cd", + "label": "Contact", + "name": "contact", + "aria-label": "", + "type": "link", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "return_format": "array", + "allow_in_bindings": 0, + "show_in_graphql": 1, + "graphql_description": "", + "graphql_field_name": "contact", + "graphql_non_null": 1 } - ], - "location": [ - [ - { - "param": "options_page", - "operator": "==", - "value": "site-options" - } - ] - ], - "menu_order": 0, - "position": "normal", - "style": "seamless", - "label_placement": "top", - "instruction_placement": "label", - "hide_on_screen": "", - "active": true, - "description": "", - "show_in_rest": 0, - "display_title": "", - "acfe_autosync": [ - "json" - ], - "acfe_form": 0, - "show_in_graphql": 1, - "graphql_field_name": "GroupSiteOptions", - "map_graphql_types_from_location_rules": 0, - "graphql_types": "", - "acfe_meta": "", - "acfe_note": "", - "modified": 1769788698 + ], + "acfe_group_modal_close": 0, + "acfe_group_modal_button": "", + "acfe_group_modal_size": "large" + } + ], + "location": [ + [ + { + "param": "options_page", + "operator": "==", + "value": "site-options" + } + ] + ], + "menu_order": 0, + "position": "normal", + "style": "seamless", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": "", + "active": true, + "description": "", + "show_in_rest": 0, + "display_title": "", + "acfe_autosync": ["json"], + "acfe_form": 0, + "show_in_graphql": 1, + "graphql_field_name": "GroupSiteOptions", + "map_graphql_types_from_location_rules": 0, + "graphql_types": "", + "acfe_meta": "", + "acfe_note": "", + "modified": 1769788698 } diff --git a/wp-content/themes/moonshine/acf-json/group_post_page.json b/wp-content/themes/moonshine/acf-json/group_post_page.json index 05a5495..2e6329d 100644 --- a/wp-content/themes/moonshine/acf-json/group_post_page.json +++ b/wp-content/themes/moonshine/acf-json/group_post_page.json @@ -1,66 +1,60 @@ { - "key": "group_post_page", - "title": "Post - Page", - "fields": [ - { - "key": "field_690cbda0abcbb", - "label": "Constructeur de page", - "name": "builder", - "aria-label": "", - "type": "clone", - "instructions": "", - "required": 0, - "conditional_logic": 0, - "wrapper": { - "width": "", - "class": "", - "id": "" - }, - "graphql_field_name": "builder", - "clone": [ - "group_abstract_builder" - ], - "display": "seamless", - "layout": "block", - "prefix_label": 0, - "prefix_name": 0, - "acfe_seamless_style": 0, - "acfe_clone_modal": 0, - "acfe_clone_modal_close": 0, - "acfe_clone_modal_button": "", - "acfe_clone_modal_size": "large" - } - ], - "location": [ - [ - { - "param": "post_type", - "operator": "==", - "value": "page" - } - ] - ], - "menu_order": 0, - "position": "normal", - "style": "seamless", - "label_placement": "top", - "instruction_placement": "label", - "hide_on_screen": [ - "the_content" - ], - "active": true, - "description": "", - "show_in_rest": 0, - "display_title": "", - "acfe_autosync": [ - "json" - ], - "acfe_form": 0, - "show_in_graphql": 1, - "graphql_field_name": "GroupPostPage", - "map_graphql_types_from_location_rules": 0, - "graphql_types": "", - "acfe_meta": "", - "acfe_note": "", - "modified": 1768336934 + "key": "group_post_page", + "title": "Post - Page", + "fields": [ + { + "key": "field_690cbda0abcbb", + "label": "Constructeur de page", + "name": "builder", + "aria-label": "", + "type": "clone", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "graphql_field_name": "builder", + "clone": ["group_abstract_builder"], + "display": "seamless", + "layout": "block", + "prefix_label": 0, + "prefix_name": 0, + "acfe_seamless_style": 0, + "acfe_clone_modal": 0, + "acfe_clone_modal_close": 0, + "acfe_clone_modal_button": "", + "acfe_clone_modal_size": "large" + } + ], + "location": [ + [ + { + "param": "post_type", + "operator": "==", + "value": "page" + } + ] + ], + "menu_order": 0, + "position": "normal", + "style": "seamless", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": ["the_content"], + "active": true, + "description": "", + "show_in_rest": 0, + "display_title": "", + "acfe_autosync": ["json"], + "acfe_form": 0, + "show_in_graphql": 1, + "graphql_field_name": "GroupPostPage", + "map_graphql_types_from_location_rules": 0, + "graphql_types": "", + "acfe_meta": "", + "acfe_note": "", + "modified": 1768336934 } diff --git a/wp-content/themes/moonshine/acf-json/ui_options_page_site.json b/wp-content/themes/moonshine/acf-json/ui_options_page_site.json index 1dac9e3..061c425 100644 --- a/wp-content/themes/moonshine/acf-json/ui_options_page_site.json +++ b/wp-content/themes/moonshine/acf-json/ui_options_page_site.json @@ -1,25 +1,25 @@ { - "key": "ui_options_page_site", - "title": "Options du site", - "active": true, - "menu_order": 0, - "page_title": "Options du site", - "menu_slug": "site-options", - "parent_slug": "options-general.php", - "advanced_configuration": 1, - "icon_url": "", - "menu_title": "", - "position": "", - "redirect": false, - "description": "", - "menu_icon": [], - "update_button": "Mise à jour", - "updated_message": "Options mises à jours", - "capability": "edit_posts", - "data_storage": "options", - "post_id": "", - "autoload": 0, - "show_in_graphql": 1, - "graphql_type_name": "SiteOptions", - "modified": 1769693948 + "key": "ui_options_page_site", + "title": "Options du site", + "active": true, + "menu_order": 0, + "page_title": "Options du site", + "menu_slug": "site-options", + "parent_slug": "options-general.php", + "advanced_configuration": 1, + "icon_url": "", + "menu_title": "", + "position": "", + "redirect": false, + "description": "", + "menu_icon": [], + "update_button": "Mise à jour", + "updated_message": "Options mises à jours", + "capability": "edit_posts", + "data_storage": "options", + "post_id": "", + "autoload": 0, + "show_in_graphql": 1, + "graphql_type_name": "SiteOptions", + "modified": 1769693948 } diff --git a/wp-content/themes/moonshine/app/assets/css/_main.css b/wp-content/themes/moonshine/app/assets/css/_main.css index f0f8540..26fc853 100644 --- a/wp-content/themes/moonshine/app/assets/css/_main.css +++ b/wp-content/themes/moonshine/app/assets/css/_main.css @@ -1,4 +1,4 @@ -@import "tailwindcss" theme(static) source("../../.."); +@import "tailwindcss" theme(static) source("../../.."); @import "@nuxt/ui"; @import "./a11y.css"; diff --git a/wp-content/themes/moonshine/app/assets/css/containers.css b/wp-content/themes/moonshine/app/assets/css/containers.css index f4c4c58..0e0aa98 100644 --- a/wp-content/themes/moonshine/app/assets/css/containers.css +++ b/wp-content/themes/moonshine/app/assets/css/containers.css @@ -8,13 +8,27 @@ } /* Container sizes */ -@utility container { @apply mx-auto px-container max-w-(--breakpoint-2xl); } -@utility container-xl { @apply container max-w-(--breakpoint-xl); } -@utility container-lg { @apply container max-w-(--breakpoint-lg); } -@utility container-md { @apply container max-w-(--breakpoint-md); } -@utility container-sm { @apply container max-w-(--breakpoint-sm); } -@utility container-fluid { @apply container max-w-screen; } -@utility container-none { @apply w-full max-w-screen; } +@utility container { + @apply mx-auto px-container max-w-(--breakpoint-2xl); +} +@utility container-xl { + @apply container max-w-(--breakpoint-xl); +} +@utility container-lg { + @apply container max-w-(--breakpoint-lg); +} +@utility container-md { + @apply container max-w-(--breakpoint-md); +} +@utility container-sm { + @apply container max-w-(--breakpoint-sm); +} +@utility container-fluid { + @apply container max-w-screen; +} +@utility container-none { + @apply w-full max-w-screen; +} /* Split containers */ :root { @@ -42,6 +56,12 @@ } } -@utility container-left { @apply ml-(--container-outside-margin) px-container;} -@utility container-right { @apply mr-(--container-outside-margin) px-container;} -@utility container-half { width: calc(var(--container-width) / 2);} +@utility container-left { + @apply ml-(--container-outside-margin) px-container; +} +@utility container-right { + @apply mr-(--container-outside-margin) px-container; +} +@utility container-half { + width: calc(var(--container-width) / 2); +} diff --git a/wp-content/themes/moonshine/app/assets/css/links.css b/wp-content/themes/moonshine/app/assets/css/links.css index 76b2b65..879dcb4 100644 --- a/wp-content/themes/moonshine/app/assets/css/links.css +++ b/wp-content/themes/moonshine/app/assets/css/links.css @@ -2,6 +2,12 @@ @custom-variant links (& a:not([class*='link-']):not([class*='button-'])); /* Link styles */ -@utility link-base { @apply cursor-pointer disabled-default transition; } -@utility link-underline { @apply link-base underline hover:decoration-primary; } -@utility link-opacity { @apply link-base hover:opacity-80; } +@utility link-base { + @apply cursor-pointer disabled-default transition; +} +@utility link-underline { + @apply link-base underline hover:decoration-primary; +} +@utility link-opacity { + @apply link-base hover:opacity-80; +} diff --git a/wp-content/themes/moonshine/app/assets/css/prose.css b/wp-content/themes/moonshine/app/assets/css/prose.css index 64ce6be..f0d01e7 100644 --- a/wp-content/themes/moonshine/app/assets/css/prose.css +++ b/wp-content/themes/moonshine/app/assets/css/prose.css @@ -1,15 +1,25 @@ @utility prose { /* Headings (allow class overrides) */ - h1:not([class*="heading-"]) { @apply heading-1; } - h2:not([class*="heading-"]) { @apply heading-2; } - h3:not([class*="heading-"]) { @apply heading-3; } - h4:not([class*="heading-"]) { @apply heading-4; } + h1:not([class*="heading-"]) { + @apply heading-1; + } + h2:not([class*="heading-"]) { + @apply heading-2; + } + h3:not([class*="heading-"]) { + @apply heading-3; + } + h4:not([class*="heading-"]) { + @apply heading-4; + } /* Links */ @apply links:link-underline; /* Paragraphs */ - p:not([class*="paragraph-"]) { @apply paragraph-base; } + p:not([class*="paragraph-"]) { + @apply paragraph-base; + } /* Spacing */ @apply space-y-2; diff --git a/wp-content/themes/moonshine/app/assets/css/typography.css b/wp-content/themes/moonshine/app/assets/css/typography.css index 8cb8f84..43fa932 100644 --- a/wp-content/themes/moonshine/app/assets/css/typography.css +++ b/wp-content/themes/moonshine/app/assets/css/typography.css @@ -1,10 +1,24 @@ /* Heading styles */ -@utility heading-base { @apply font-bold tracking-tight }; -@utility heading-1 { @apply heading-base text-4xl; } -@utility heading-2 { @apply heading-base text-3xl; } -@utility heading-3 { @apply heading-base text-2xl; } -@utility heading-4 { @apply heading-base text-xl; } +@utility heading-base { + @apply font-bold tracking-tight; +} +@utility heading-1 { + @apply heading-base text-4xl; +} +@utility heading-2 { + @apply heading-base text-3xl; +} +@utility heading-3 { + @apply heading-base text-2xl; +} +@utility heading-4 { + @apply heading-base text-xl; +} /* Paragraph styles */ -@utility paragraph-base { @apply font-sans; } -@utility paragraph-lead { @apply paragraph-base text-2xl; } +@utility paragraph-base { + @apply font-sans; +} +@utility paragraph-lead { + @apply paragraph-base text-2xl; +} diff --git a/wp-content/themes/moonshine/app/components/acf/AcfLinkButton.vue b/wp-content/themes/moonshine/app/components/acf/AcfLinkButton.vue index 10e80cd..275a616 100644 --- a/wp-content/themes/moonshine/app/components/acf/AcfLinkButton.vue +++ b/wp-content/themes/moonshine/app/components/acf/AcfLinkButton.vue @@ -2,7 +2,7 @@ import type { AcfLinkFragment } from "#graphql/operations"; import type { ButtonProps } from "@nuxt/ui"; -type AcfLinkButtonProps = & Omit & { +type AcfLinkButtonProps = Omit & { link?: AcfLinkFragment; showLabel?: boolean; }; diff --git a/wp-content/themes/moonshine/app/components/acf/AcfMedia.fragment.gql b/wp-content/themes/moonshine/app/components/acf/AcfMedia.fragment.gql index 7cce4d9..54c042f 100644 --- a/wp-content/themes/moonshine/app/components/acf/AcfMedia.fragment.gql +++ b/wp-content/themes/moonshine/app/components/acf/AcfMedia.fragment.gql @@ -1,5 +1,9 @@ fragment AcfMedia on GroupAbstractMedia_Fields { - image { node { ... AcfImage } } + image { + node { + ...AcfImage + } + } aspectRatio objectFit } diff --git a/wp-content/themes/moonshine/app/components/acf/AcfSocial.vue b/wp-content/themes/moonshine/app/components/acf/AcfSocial.vue index b652bfd..df3e8eb 100644 --- a/wp-content/themes/moonshine/app/components/acf/AcfSocial.vue +++ b/wp-content/themes/moonshine/app/components/acf/AcfSocial.vue @@ -4,7 +4,14 @@ defineProps<{ social?: AcfSocialOutput }>();