From b1d9dd91ef4062553faabac014297d1e4144e1ac Mon Sep 17 00:00:00 2001 From: Gabor Szarnyas Date: Fri, 29 Nov 2024 07:44:45 +0100 Subject: [PATCH 1/2] Cleanup CSS headers --- css/blog.scss | 5 +---- css/communityextensions.scss | 3 --- css/communityextensions_screenshot.scss | 3 --- css/copy_button.scss | 3 --- css/darkmode.scss | 3 --- css/docu.scss | 3 --- css/foundation.scss | 2 -- css/home.scss | 9 +-------- css/main.scss | 5 +---- css/mobilestyles.scss | 3 --- css/page404.scss | 3 --- css/search.scss | 3 --- css/syntax_highlighting.scss | 3 --- 13 files changed, 3 insertions(+), 45 deletions(-) diff --git a/css/blog.scss b/css/blog.scss index af12bc03f0..a7d2d89878 100644 --- a/css/blog.scss +++ b/css/blog.scss @@ -1,7 +1,4 @@ ---- ---- - -@use "sass:color"; +@use 'sass:color'; @import 'variables'; @mixin button { diff --git a/css/communityextensions.scss b/css/communityextensions.scss index a4189e6282..be3a621b17 100644 --- a/css/communityextensions.scss +++ b/css/communityextensions.scss @@ -1,6 +1,3 @@ ---- ---- - $ce_purple: #A293FF; $ce_purplelight: #f2f0fe; diff --git a/css/communityextensions_screenshot.scss b/css/communityextensions_screenshot.scss index a13ce9d16f..818069d566 100644 --- a/css/communityextensions_screenshot.scss +++ b/css/communityextensions_screenshot.scss @@ -1,6 +1,3 @@ ---- ---- - $ce_purple: #A293FF; $ce_purplelight: #f2f0fe; diff --git a/css/copy_button.scss b/css/copy_button.scss index ad3be3674f..c8827a682b 100644 --- a/css/copy_button.scss +++ b/css/copy_button.scss @@ -1,6 +1,3 @@ ---- ---- - pre.highlight > button, .highlight button.copy{ position: absolute; diff --git a/css/darkmode.scss b/css/darkmode.scss index e7a53db86d..5e238c624d 100644 --- a/css/darkmode.scss +++ b/css/darkmode.scss @@ -1,6 +1,3 @@ ---- ---- - @import 'variables'; html.disable-transitions * { diff --git a/css/docu.scss b/css/docu.scss index 765c8374ba..a73a94b622 100644 --- a/css/docu.scss +++ b/css/docu.scss @@ -1,6 +1,3 @@ ---- ---- - @import 'variables'; body{ diff --git a/css/foundation.scss b/css/foundation.scss index c90b24ec0c..5fa6a5ab18 100644 --- a/css/foundation.scss +++ b/css/foundation.scss @@ -1,5 +1,3 @@ ---- ---- @import 'variables'; /** ADDITIONAL CSS FOR FOUNDATION PAGE **/ diff --git a/css/home.scss b/css/home.scss index c72001e73b..21412754bd 100644 --- a/css/home.scss +++ b/css/home.scss @@ -1,11 +1,4 @@ ---- ---- - - - -/** DUCKDB HOME CSS **/ - -@use "sass:color"; +@use 'sass:color'; @import 'variables'; @import 'mixins'; diff --git a/css/main.scss b/css/main.scss index 9191f9600c..bfef42443b 100644 --- a/css/main.scss +++ b/css/main.scss @@ -1,7 +1,4 @@ ---- ---- - -@use "sass:color"; +@use 'sass:color'; @import 'variables'; /** DUCKDB MAIN CSS **/ diff --git a/css/mobilestyles.scss b/css/mobilestyles.scss index d52ddd1440..4d3d59038e 100644 --- a/css/mobilestyles.scss +++ b/css/mobilestyles.scss @@ -1,6 +1,3 @@ ---- ---- - @media only screen and (min-width: 1680px) { body.documentation main .wrap { width: calc(100% - 350px); diff --git a/css/page404.scss b/css/page404.scss index e492e681a5..62e8da0f28 100644 --- a/css/page404.scss +++ b/css/page404.scss @@ -1,6 +1,3 @@ ---- ---- - @import 'variables'; /** ADDITIONAL CSS FOR 404 PAGE **/ diff --git a/css/search.scss b/css/search.scss index 2fe38f288f..6d5e6b5528 100644 --- a/css/search.scss +++ b/css/search.scss @@ -1,6 +1,3 @@ ---- ---- - body.search{ height: 100vh; overflow: hidden; diff --git a/css/syntax_highlighting.scss b/css/syntax_highlighting.scss index f08c8ead57..8044af4872 100644 --- a/css/syntax_highlighting.scss +++ b/css/syntax_highlighting.scss @@ -1,6 +1,3 @@ ---- ---- - @import 'variables'; /* SYNTAX HIGHLIGHTING COLORS */ From 23a1e126345c7ebdac77698d84585ac1ff2d7476 Mon Sep 17 00:00:00 2001 From: Gabor Szarnyas Date: Fri, 29 Nov 2024 07:48:02 +0100 Subject: [PATCH 2/2] Remove unused imports --- css/blog.scss | 1 - css/darkmode.scss | 2 -- css/docu.scss | 2 -- css/foundation.scss | 2 -- css/home.scss | 3 --- css/main.scss | 1 - css/page404.scss | 2 -- css/syntax_highlighting.scss | 2 -- 8 files changed, 15 deletions(-) diff --git a/css/blog.scss b/css/blog.scss index a7d2d89878..06874c8829 100644 --- a/css/blog.scss +++ b/css/blog.scss @@ -1,5 +1,4 @@ @use 'sass:color'; -@import 'variables'; @mixin button { color: black; diff --git a/css/darkmode.scss b/css/darkmode.scss index 5e238c624d..bf804ba460 100644 --- a/css/darkmode.scss +++ b/css/darkmode.scss @@ -1,5 +1,3 @@ -@import 'variables'; - html.disable-transitions * { transition: none !important; } diff --git a/css/docu.scss b/css/docu.scss index a73a94b622..e810d5e72c 100644 --- a/css/docu.scss +++ b/css/docu.scss @@ -1,5 +1,3 @@ -@import 'variables'; - body{ background: var(--main-body-background-color, #FAFAFA); font-size: 100%; diff --git a/css/foundation.scss b/css/foundation.scss index 5fa6a5ab18..642138a2bf 100644 --- a/css/foundation.scss +++ b/css/foundation.scss @@ -1,5 +1,3 @@ -@import 'variables'; - /** ADDITIONAL CSS FOR FOUNDATION PAGE **/ @mixin button { diff --git a/css/home.scss b/css/home.scss index 21412754bd..b8d430169e 100644 --- a/css/home.scss +++ b/css/home.scss @@ -1,7 +1,4 @@ @use 'sass:color'; -@import 'variables'; -@import 'mixins'; - body.landing{ font-size: $fontSizep; diff --git a/css/main.scss b/css/main.scss index bfef42443b..aa87100400 100644 --- a/css/main.scss +++ b/css/main.scss @@ -1,5 +1,4 @@ @use 'sass:color'; -@import 'variables'; /** DUCKDB MAIN CSS **/ diff --git a/css/page404.scss b/css/page404.scss index 62e8da0f28..dddd77d1ba 100644 --- a/css/page404.scss +++ b/css/page404.scss @@ -1,5 +1,3 @@ -@import 'variables'; - /** ADDITIONAL CSS FOR 404 PAGE **/ body.notfound{ diff --git a/css/syntax_highlighting.scss b/css/syntax_highlighting.scss index 8044af4872..2d85119b47 100644 --- a/css/syntax_highlighting.scss +++ b/css/syntax_highlighting.scss @@ -1,5 +1,3 @@ -@import 'variables'; - /* SYNTAX HIGHLIGHTING COLORS */ // comments