From 3bc41f8a59f89447cc5e33e417b7c38b3bd939bd Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 12 Jun 2018 12:54:34 -0300 Subject: [PATCH] Removes cards view mode from theme as it will be a component given by plugin --- src/assets/scss/_view-mode-cards.scss | 51 --------------------------- src/assets/scss/style.scss | 2 -- src/functions.php | 6 ---- src/tainacan/view-mode-cards.php | 41 --------------------- src/tainacan/view-mode-profile.php | 2 +- 5 files changed, 1 insertion(+), 101 deletions(-) delete mode 100644 src/assets/scss/_view-mode-cards.scss delete mode 100644 src/tainacan/view-mode-cards.php diff --git a/src/assets/scss/_view-mode-cards.scss b/src/assets/scss/_view-mode-cards.scss deleted file mode 100644 index ec1a8b7..0000000 --- a/src/assets/scss/_view-mode-cards.scss +++ /dev/null @@ -1,51 +0,0 @@ -.tainacan-cards-container { - min-height: 200px; - padding: 30px 4.166666667%; - - .tainacan-card { - padding: 12px 44px 24px 44px; - - img { - width: 130px; - height: auto; - border-radius: 2px; - } - - .metadata-title { - flex-shrink: 0; - font-size: 0.875rem; - margin-bottom: 0.875rem; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - } - .media { - .media-body { - flex: 1; - font-size: 0.6875rem; - color: gray; - overflow: hidden; - - .metadata-label { - font-size: 0.75rem; - line-height: 1.0; - margin-bottom: 0.2rem; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - } - - .metadata-value { - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - } - - } - } - - - } -} - - diff --git a/src/assets/scss/style.scss b/src/assets/scss/style.scss index 3224880..2262df6 100644 --- a/src/assets/scss/style.scss +++ b/src/assets/scss/style.scss @@ -201,8 +201,6 @@ form{ @import "_footer"; -@import "_view-mode-cards.scss"; - @import "_view-mode-grid.scss"; @import "_view-mode-mosaic.scss"; diff --git a/src/functions.php b/src/functions.php index fb04a44..d097c14 100644 --- a/src/functions.php +++ b/src/functions.php @@ -54,12 +54,6 @@ if(!function_exists('tainacan_setup')) { add_theme_support( 'custom-logo', $logo_args ); if (function_exists('tainacan_register_view_mode')) { - tainacan_register_view_mode('cards', [ - 'label' => 'Cards view', - 'description' => 'A cards view, flexible for metadata', - 'icon' => '', - 'dynamic_metadata' => true, - ]); tainacan_register_view_mode('grid', [ 'label' => 'Grid view', 'description' => 'A grid view', diff --git a/src/tainacan/view-mode-cards.php b/src/tainacan/view-mode-cards.php deleted file mode 100644 index 5266ecd..0000000 --- a/src/tainacan/view-mode-cards.php +++ /dev/null @@ -1,41 +0,0 @@ - - -
- -
- -
-
- - - - - -
- - - - 'mr-4')); ?> - - - - -
-
-
- - -
-
- - -
- Nenhum item encontrado -
- diff --git a/src/tainacan/view-mode-profile.php b/src/tainacan/view-mode-profile.php index 4ae83ec..a3ac356 100644 --- a/src/tainacan/view-mode-profile.php +++ b/src/tainacan/view-mode-profile.php @@ -10,7 +10,7 @@ - 'mr-4')); ?> + 'mr-4')); ?>