From dcb0ac850c84dd9eefe78e327ccb00b76fba02e5 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Mon, 11 Jun 2018 00:42:30 +0300 Subject: [PATCH] Delete unnecessary datatables css --- .../SharedThemeGlobalStyleContributor.cs | 3 +- .../compilerconfig.json | 3 ++ .../compilerconfig.json.defaults | 49 +++++++++++++++++++ .../datatables/datatables.css | 20 -------- .../datatables/datatables.min.css | 1 - .../datatables/datatables.scss | 24 --------- 6 files changed, 53 insertions(+), 47 deletions(-) create mode 100644 src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/compilerconfig.json create mode 100644 src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/compilerconfig.json.defaults delete mode 100644 src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.css delete mode 100644 src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.min.css delete mode 100644 src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.scss diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/Bundling/SharedThemeGlobalStyleContributor.cs b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/Bundling/SharedThemeGlobalStyleContributor.cs index b40668c697..c7bc3ff815 100644 --- a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/Bundling/SharedThemeGlobalStyleContributor.cs +++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/Bundling/SharedThemeGlobalStyleContributor.cs @@ -17,8 +17,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Bundling { public override void ConfigureBundle(BundleConfigurationContext context) { - //TODO: Should this go to Basic Theme??? - context.Files.Add("/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.css"); + } } } \ No newline at end of file diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/compilerconfig.json b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/compilerconfig.json new file mode 100644 index 0000000000..ee76e9b485 --- /dev/null +++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/compilerconfig.json @@ -0,0 +1,3 @@ +[ + +] \ No newline at end of file diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/compilerconfig.json.defaults b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/compilerconfig.json.defaults new file mode 100644 index 0000000000..c75eb7d519 --- /dev/null +++ b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/compilerconfig.json.defaults @@ -0,0 +1,49 @@ +{ + "compilers": { + "less": { + "autoPrefix": "", + "cssComb": "none", + "ieCompat": true, + "strictMath": false, + "strictUnits": false, + "relativeUrls": true, + "rootPath": "", + "sourceMapRoot": "", + "sourceMapBasePath": "", + "sourceMap": false + }, + "sass": { + "includePath": "", + "indentType": "space", + "indentWidth": 2, + "outputStyle": "nested", + "Precision": 5, + "relativeUrls": true, + "sourceMapRoot": "", + "sourceMap": false + }, + "stylus": { + "sourceMap": false + }, + "babel": { + "sourceMap": false + }, + "coffeescript": { + "bare": false, + "runtimeMode": "node", + "sourceMap": false + } + }, + "minifiers": { + "css": { + "enabled": true, + "termSemicolons": true, + "gzip": false + }, + "javascript": { + "enabled": true, + "termSemicolons": true, + "gzip": false + } + } +} \ No newline at end of file diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.css b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.css deleted file mode 100644 index 7c9595825c..0000000000 --- a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.css +++ /dev/null @@ -1,20 +0,0 @@ -.table tbody td, .table tbody { - height: initial; - font-size: 1em; - padding-top: 0.5em; - padding-bottom: 0.5em; } - -.table td:first-child, .table th:first-child { - padding-left: 0.5em; - height: initial; } - -.pagination { - background-color: initial; } - -.table thead td, .table thead th { - height: initial; } - -table.dataTable thead .sorting::before, table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_desc::before, table.dataTable thead .sorting_asc_disabled::before, table.dataTable thead .sorting_desc_disabled::before, -table.dataTable thead .sorting::after, table.dataTable thead .sorting_asc::after, table.dataTable thead .sorting_desc::after, table.dataTable thead .sorting_asc_disabled::after, table.dataTable thead .sorting_desc_disabled::after { - bottom: 1.5em; } - diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.min.css b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.min.css deleted file mode 100644 index 9c54d19453..0000000000 --- a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.min.css +++ /dev/null @@ -1 +0,0 @@ -.table tbody td,.table tbody{height:initial;font-size:1em;padding-top:.5em;padding-bottom:.5em;}.table td:first-child,.table th:first-child{padding-left:.5em;height:initial;}.pagination{background-color:initial;}.table thead td,.table thead th{height:initial;}table.dataTable thead .sorting::before,table.dataTable thead .sorting_asc::before,table.dataTable thead .sorting_desc::before,table.dataTable thead .sorting_asc_disabled::before,table.dataTable thead .sorting_desc_disabled::before,table.dataTable thead .sorting::after,table.dataTable thead .sorting_asc::after,table.dataTable thead .sorting_desc::after,table.dataTable thead .sorting_asc_disabled::after,table.dataTable thead .sorting_desc_disabled::after{bottom:1.5em;} \ No newline at end of file diff --git a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.scss b/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.scss deleted file mode 100644 index f0612fed96..0000000000 --- a/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore.mvc.ui.theme.shared/datatables/datatables.scss +++ /dev/null @@ -1,24 +0,0 @@ -.table tbody td, .table tbody { - height: initial; - font-size: 1em; - padding-top: 0.5em; - padding-bottom: 0.5em; -} - -.table td:first-child, .table th:first-child { - padding-left: 0.5em; - height: initial; -} - -.pagination { - background-color: initial; -} - -.table thead td, .table thead th { - height: initial; -} - -table.dataTable thead .sorting::before, table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_desc::before, table.dataTable thead .sorting_asc_disabled::before, table.dataTable thead .sorting_desc_disabled::before, -table.dataTable thead .sorting::after, table.dataTable thead .sorting_asc::after, table.dataTable thead .sorting_desc::after, table.dataTable thead .sorting_asc_disabled::after, table.dataTable thead .sorting_desc_disabled::after { - bottom: 1.5em; -} \ No newline at end of file