Skip to content

Commit

Permalink
wip: tailwind rework
Browse files Browse the repository at this point in the history
see #1105
  • Loading branch information
davidsneighbour committed Aug 12, 2024
1 parent d71d542 commit 8661166
Show file tree
Hide file tree
Showing 11 changed files with 576 additions and 325 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ assets/dist/*
resources
static/documentation/styles
.frontmatter/database/*
# generated tailwind files
assets/css/theme.css

#####################################################################
# ignores via API
Expand Down
16 changes: 16 additions & 0 deletions assets/css/tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*******************************************************************************
* Keep styles in files, only `@import`s here
******************************************************************************/
@import "tailwindcss/base";

/* @import "01-base/fonts"; */

@import "tailwindcss/components";

/* @import "03-components/headernavigation"; */

@import "tailwindcss/utilities";

/* @import "05-utilities/icons"; */

@import "tailwindcss/variants";
12 changes: 6 additions & 6 deletions assets/js/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import Alpine from 'alpinejs';
import collapse from '@alpinejs/collapse';
import intersect from '@alpinejs/intersect'

import ClickSpark from './components/click-effect';
import ProgressBar from './components/progress-bar';
import ClickSpark from './components/click-effect.ts';
import ProgressBar from './components/progress-bar.js';

import './scripts/keyboard-layout';
import './scripts/theme-changes';
import './scripts/keyboard-layout.ts';
import './scripts/theme-changes.ts';
import { initializeAndSwitchClassOnScroll } from './scripts/navbar-opacity.ts';

// import bootstrap scripts
import './scripts/bs-tooltips';
import './scripts/bs-tooltips.ts';

// @ts-ignore - importing parameters from GoHugo
import * as params from '@params';
// import * as params from '@params';

// import custom elements
customElements.define("click-effect", ClickSpark);
Expand Down
2 changes: 1 addition & 1 deletion assets/js/scripts/keyboard-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { install } from '@github/hotkey'

// setup all hotkeys on the page
for (const el of document.querySelectorAll('[data-hotkey]')) {
install(el as HTMLElement)
install(el)
}
2 changes: 1 addition & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@charset 'utf-8';
// @charset 'utf-8';

/// BS: configuration
@import "bootstrap/scss/functions";
Expand Down
Loading

0 comments on commit 8661166

Please sign in to comment.