From eecee183c827fd3ab89d40e2df8e0a63a635c841 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Wed, 13 May 2020 10:58:42 +0300 Subject: [PATCH] Redesign content submenu --- src/AppMenu.vue | 81 ++++++++++++++++++- src/assets/styles/app/_content.scss | 42 ---------- src/assets/styles/app/_menu.scss | 23 ++++++ src/views/accessibility/AccessibilityDemo.vue | 4 +- src/views/datatable/DataTableBasicDemo.vue | 7 -- src/views/datatable/DataTableColGroupDemo.vue | 7 -- .../datatable/DataTableColResizeDemo.vue | 6 -- .../datatable/DataTableColToggleDemo.vue | 7 -- .../datatable/DataTableContextMenuDemo.vue | 6 -- src/views/datatable/DataTableCrudDemo.vue | 6 -- src/views/datatable/DataTableDemo.vue | 6 +- .../datatable/DataTableDynamicColumnsDemo.vue | 6 -- src/views/datatable/DataTableEditDemo.vue | 10 --- src/views/datatable/DataTableExportDemo.vue | 6 -- src/views/datatable/DataTableFilterDemo.vue | 6 -- src/views/datatable/DataTableLazyDemo.vue | 6 -- .../datatable/DataTablePaginatorDemo.vue | 8 +- src/views/datatable/DataTableReorderDemo.vue | 6 -- .../datatable/DataTableResponsiveDemo.vue | 6 -- .../datatable/DataTableRowExpandDemo.vue | 6 -- src/views/datatable/DataTableRowGroupDemo.vue | 6 -- src/views/datatable/DataTableScrollDemo.vue | 6 -- .../datatable/DataTableSelectionDemo.vue | 6 -- src/views/datatable/DataTableSizeDemo.vue | 6 -- src/views/datatable/DataTableSortDemo.vue | 6 -- src/views/datatable/DataTableStateDemo.vue | 6 -- src/views/datatable/DataTableStyleDemo.vue | 6 -- src/views/datatable/DataTableSubMenu.vue | 30 ------- .../datatable/DataTableTemplatingDemo.vue | 6 -- src/views/galleria/GalleriaBasicDemo.vue | 6 -- src/views/galleria/GalleriaCaptionDemo.vue | 6 -- src/views/galleria/GalleriaCircularDemo.vue | 6 -- src/views/galleria/GalleriaDemo.vue | 4 - src/views/galleria/GalleriaFullScreenDemo.vue | 6 -- src/views/galleria/GalleriaIndicatorDemo.vue | 6 -- src/views/galleria/GalleriaPreviewDemo.vue | 6 -- src/views/galleria/GalleriaResponsiveDemo.vue | 6 -- src/views/galleria/GalleriaSubMenu.vue | 15 ---- src/views/galleria/GalleriaThumbnailDemo.vue | 6 -- src/views/tree/TreeDemo.vue | 6 +- src/views/tree/TreeFilterDemo.vue | 6 -- src/views/tree/TreeLazyDemo.vue | 6 -- src/views/tree/TreeSelectionDemo.vue | 6 -- src/views/tree/TreeSubMenu.vue | 11 --- src/views/tree/TreeTemplatingDemo.vue | 7 -- .../treetable/TreeTableColResizeDemo.vue | 6 -- .../treetable/TreeTableColToggleDemo.vue | 6 -- src/views/treetable/TreeTableDemo.vue | 6 +- src/views/treetable/TreeTableFilterDemo.vue | 6 -- src/views/treetable/TreeTableLazyDemo.vue | 7 -- .../treetable/TreeTablePaginatorDemo.vue | 7 -- .../treetable/TreeTableResponsiveDemo.vue | 6 -- .../treetable/TreeTableSelectionDemo.vue | 6 -- src/views/treetable/TreeTableSizeDemo.vue | 6 -- src/views/treetable/TreeTableSortDemo.vue | 6 -- src/views/treetable/TreeTableSubMenu.vue | 17 ---- .../treetable/TreeTableTemplatingDemo.vue | 6 -- 57 files changed, 106 insertions(+), 421 deletions(-) delete mode 100755 src/views/datatable/DataTableSubMenu.vue delete mode 100755 src/views/galleria/GalleriaSubMenu.vue delete mode 100755 src/views/tree/TreeSubMenu.vue delete mode 100755 src/views/treetable/TreeTableSubMenu.vue diff --git a/src/AppMenu.vue b/src/AppMenu.vue index 00c4ac91a..21b6d6e6c 100755 --- a/src/AppMenu.vue +++ b/src/AppMenu.vue @@ -60,15 +60,71 @@
Carousel - DataTable + +
+ DataTable +
    +
  • Basic
  • +
  • Dynamic
  • +
  • Templating
  • +
  • Size
  • +
  • ColGroup
  • +
  • Paginator
  • +
  • Sort
  • +
  • Filter
  • +
  • Selection
  • +
  • Lazy
  • +
  • Scroll
  • +
  • Expand
  • +
  • Edit
  • +
  • ColToggle
  • +
  • ColResize
  • +
  • Reorder
  • +
  • RowGroup
  • +
  • ContextMenu
  • +
  • Responsive
  • +
  • Export
  • +
  • State
  • +
  • Style
  • +
  • Crud
  • +
+
+
+ DataView FullCalendar OrderList OrganizationChart Paginator PickList - Tree - TreeTable + +
+ Tree +
    +
  • Selection
  • +
  • Lazy
  • +
  • Templating
  • +
  • Filter
  • +
+
+
+ +
+ TreeTable +
    +
  • Templating
  • +
  • Size
  • +
  • Paginator
  • +
  • Sort
  • +
  • Filter
  • +
  • Selection
  • +
  • Lazy
  • +
  • ColToggle
  • +
  • Resize
  • +
  • Responsive
  • +
+
+
@@ -150,9 +206,26 @@ Image
- Galleria + +
+ Galleria +
    +
  • Documentation
  • +
  • Basic
  • +
  • Indicator
  • +
  • Thumbnail
  • +
  • Preview
  • +
  • Responsive
  • +
  • FullScreen
  • +
  • Circular
  • +
  • Caption
  • +
+
+
+ + Misc diff --git a/src/assets/styles/app/_content.scss b/src/assets/styles/app/_content.scss index 770fbb2f6..7611b870d 100644 --- a/src/assets/styles/app/_content.scss +++ b/src/assets/styles/app/_content.scss @@ -5,48 +5,6 @@ .content-section { padding: 2rem; - &.content-submenu { - background-color: var(--layer-1); - color: var(--text-color); - - ul { - margin: 0; - padding: 0; - width: 100%; - - li { - list-style: none; - width: 20%; - display: inline-block; - padding: .25rem; - - a { - color: var(--text-color); - display: block; - width: 100%; - border: 1px solid transparent; - padding: .5rem 1rem; - border-radius: 3px; - transition: background-color .2s; - - &:hover { - background-color: var(--layer-2); - } - - &:focus { - outline: 0 none; - transition: box-shadow .2s; - box-shadow: 0 0 0 0.2em $focusBorderColor; - } - - &.router-link-exact-active { - font-weight: 700; - } - } - } - } - } - &.introduction { background-color: var(--primary-color); color: var(--primary-color-text); diff --git a/src/assets/styles/app/_menu.scss b/src/assets/styles/app/_menu.scss index b9f94e0e7..f54f45eb3 100644 --- a/src/assets/styles/app/_menu.scss +++ b/src/assets/styles/app/_menu.scss @@ -56,6 +56,29 @@ font-weight: 700; } } + + > div { + &.router-link-active { + > a { + font-weight: 700; + } + + ul { + display: block; + } + } + + ul { + display: none; + padding: .5rem 0; + margin: 0; + list-style-type: none; + + a { + padding: .5rem .5rem .5rem 2rem; + } + } + } } } } \ No newline at end of file diff --git a/src/views/accessibility/AccessibilityDemo.vue b/src/views/accessibility/AccessibilityDemo.vue index 8627c5b0f..d9442664b 100644 --- a/src/views/accessibility/AccessibilityDemo.vue +++ b/src/views/accessibility/AccessibilityDemo.vue @@ -9,9 +9,9 @@

WCAG

-

The Web Content Accessibility Guidelines (WCAG) are part of a series of web accessibility guidelines published by the Web Accessibility Initiative (WAI) +

The Web Content Accessibility Guidelines (WCAG) are part of a series of web accessibility guidelines published by the Web Accessibility Initiative (WAI) of the World Wide Web Consortium (W3C), the main international standards organization for the Internet.

- +

Accessible Components

PrimeVue components are implemented based on the WCAG guidelines and follow the best practices outlined here.

    diff --git a/src/views/datatable/DataTableBasicDemo.vue b/src/views/datatable/DataTableBasicDemo.vue index 723c79b35..f182f0fa1 100755 --- a/src/views/datatable/DataTableBasicDemo.vue +++ b/src/views/datatable/DataTableBasicDemo.vue @@ -1,7 +1,5 @@