From 4129c35c025fa215615812c186bf5f28daad8d45 Mon Sep 17 00:00:00 2001 From: irkode Date: Wed, 21 Aug 2024 07:40:02 +0000 Subject: [PATCH] pack Bulma 0.8.1 for Hugo --- .github/workflows/build.yml | 110 - assets/bulma/CHANGELOG.md | 1384 ++ assets/bulma/LICENSE | 21 + assets/bulma/README.md | 130 + assets/bulma/bulma.sass | 9 + assets/bulma/css/bulma.css | 10858 ++++++++++++++++ assets/bulma/css/bulma.css.map | 1 + assets/bulma/css/bulma.min.css | 1 + assets/bulma/package.json | 78 + assets/bulma/sass/.DS_Store | Bin 0 -> 6148 bytes assets/bulma/sass/base/_all.sass | 5 + assets/bulma/sass/base/generic.sass | 142 + assets/bulma/sass/base/helpers.sass | 281 + assets/bulma/sass/base/minireset.sass | 79 + assets/bulma/sass/components/_all.sass | 15 + assets/bulma/sass/components/breadcrumb.sass | 75 + assets/bulma/sass/components/card.sass | 79 + assets/bulma/sass/components/dropdown.sass | 81 + assets/bulma/sass/components/level.sass | 77 + assets/bulma/sass/components/list.sass | 39 + assets/bulma/sass/components/media.sass | 50 + assets/bulma/sass/components/menu.sass | 57 + assets/bulma/sass/components/message.sass | 99 + assets/bulma/sass/components/modal.sass | 113 + assets/bulma/sass/components/navbar.sass | 442 + assets/bulma/sass/components/pagination.sass | 150 + assets/bulma/sass/components/panel.sass | 119 + assets/bulma/sass/components/tabs.sass | 151 + assets/bulma/sass/elements/_all.sass | 15 + assets/bulma/sass/elements/box.sass | 24 + assets/bulma/sass/elements/button.sass | 323 + assets/bulma/sass/elements/container.sass | 24 + assets/bulma/sass/elements/content.sass | 155 + assets/bulma/sass/elements/form.sass | 1 + assets/bulma/sass/elements/icon.sass | 21 + assets/bulma/sass/elements/image.sass | 71 + assets/bulma/sass/elements/notification.sass | 43 + assets/bulma/sass/elements/other.sass | 39 + assets/bulma/sass/elements/progress.sass | 67 + assets/bulma/sass/elements/table.sass | 127 + assets/bulma/sass/elements/tag.sass | 128 + assets/bulma/sass/elements/title.sass | 70 + assets/bulma/sass/form/_all.sass | 8 + assets/bulma/sass/form/checkbox-radio.sass | 21 + assets/bulma/sass/form/file.sass | 180 + assets/bulma/sass/form/input-textarea.sass | 64 + assets/bulma/sass/form/select.sass | 85 + assets/bulma/sass/form/shared.sass | 55 + assets/bulma/sass/form/tools.sass | 205 + assets/bulma/sass/grid/_all.sass | 4 + assets/bulma/sass/grid/columns.sass | 504 + assets/bulma/sass/grid/tiles.sass | 34 + assets/bulma/sass/layout/_all.sass | 5 + assets/bulma/sass/layout/footer.sass | 9 + assets/bulma/sass/layout/hero.sass | 145 + assets/bulma/sass/layout/section.sass | 13 + assets/bulma/sass/utilities/.DS_Store | Bin 0 -> 6148 bytes assets/bulma/sass/utilities/_all.sass | 8 + assets/bulma/sass/utilities/animations.sass | 5 + assets/bulma/sass/utilities/controls.sass | 50 + .../sass/utilities/derived-variables.sass | 106 + assets/bulma/sass/utilities/functions.sass | 110 + .../sass/utilities/initial-variables.sass | 77 + assets/bulma/sass/utilities/mixins.sass | 261 + 64 files changed, 17593 insertions(+), 110 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 assets/bulma/CHANGELOG.md create mode 100644 assets/bulma/LICENSE create mode 100644 assets/bulma/README.md create mode 100644 assets/bulma/bulma.sass create mode 100644 assets/bulma/css/bulma.css create mode 100644 assets/bulma/css/bulma.css.map create mode 100644 assets/bulma/css/bulma.min.css create mode 100644 assets/bulma/package.json create mode 100644 assets/bulma/sass/.DS_Store create mode 100644 assets/bulma/sass/base/_all.sass create mode 100644 assets/bulma/sass/base/generic.sass create mode 100644 assets/bulma/sass/base/helpers.sass create mode 100644 assets/bulma/sass/base/minireset.sass create mode 100644 assets/bulma/sass/components/_all.sass create mode 100644 assets/bulma/sass/components/breadcrumb.sass create mode 100644 assets/bulma/sass/components/card.sass create mode 100644 assets/bulma/sass/components/dropdown.sass create mode 100644 assets/bulma/sass/components/level.sass create mode 100644 assets/bulma/sass/components/list.sass create mode 100644 assets/bulma/sass/components/media.sass create mode 100644 assets/bulma/sass/components/menu.sass create mode 100644 assets/bulma/sass/components/message.sass create mode 100644 assets/bulma/sass/components/modal.sass create mode 100644 assets/bulma/sass/components/navbar.sass create mode 100644 assets/bulma/sass/components/pagination.sass create mode 100644 assets/bulma/sass/components/panel.sass create mode 100644 assets/bulma/sass/components/tabs.sass create mode 100644 assets/bulma/sass/elements/_all.sass create mode 100644 assets/bulma/sass/elements/box.sass create mode 100644 assets/bulma/sass/elements/button.sass create mode 100644 assets/bulma/sass/elements/container.sass create mode 100644 assets/bulma/sass/elements/content.sass create mode 100644 assets/bulma/sass/elements/form.sass create mode 100644 assets/bulma/sass/elements/icon.sass create mode 100644 assets/bulma/sass/elements/image.sass create mode 100644 assets/bulma/sass/elements/notification.sass create mode 100644 assets/bulma/sass/elements/other.sass create mode 100644 assets/bulma/sass/elements/progress.sass create mode 100644 assets/bulma/sass/elements/table.sass create mode 100644 assets/bulma/sass/elements/tag.sass create mode 100644 assets/bulma/sass/elements/title.sass create mode 100644 assets/bulma/sass/form/_all.sass create mode 100644 assets/bulma/sass/form/checkbox-radio.sass create mode 100644 assets/bulma/sass/form/file.sass create mode 100644 assets/bulma/sass/form/input-textarea.sass create mode 100644 assets/bulma/sass/form/select.sass create mode 100644 assets/bulma/sass/form/shared.sass create mode 100644 assets/bulma/sass/form/tools.sass create mode 100644 assets/bulma/sass/grid/_all.sass create mode 100644 assets/bulma/sass/grid/columns.sass create mode 100644 assets/bulma/sass/grid/tiles.sass create mode 100644 assets/bulma/sass/layout/_all.sass create mode 100644 assets/bulma/sass/layout/footer.sass create mode 100644 assets/bulma/sass/layout/hero.sass create mode 100644 assets/bulma/sass/layout/section.sass create mode 100644 assets/bulma/sass/utilities/.DS_Store create mode 100644 assets/bulma/sass/utilities/_all.sass create mode 100644 assets/bulma/sass/utilities/animations.sass create mode 100644 assets/bulma/sass/utilities/controls.sass create mode 100644 assets/bulma/sass/utilities/derived-variables.sass create mode 100644 assets/bulma/sass/utilities/functions.sass create mode 100644 assets/bulma/sass/utilities/initial-variables.sass create mode 100644 assets/bulma/sass/utilities/mixins.sass diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index d08b9ff..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,110 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Build Bulma 4 Hugo - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -jobs: - build: - runs-on: windows-latest - - env: - GH_TOKEN: ${{ github.token }} - BULMA_URL: "https://api.github.com/repos/jgthms/bulma" - permissions: - contents: write - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 - - # Runs a set of commands using the runners shell - - name: Configure Git - run: | - git config --local core.autocrlf "false" - git config --local user.name ${{ secrets.GH_USER_NAME }} - git config --global user.email ${{ secrets.GH_USER_MAIL }} - git fetch --tags - - - name: Prepare repository - run: | - # cleanup rubbish from the past - Remove-Item -Recurse .\assets -ErrorAction SilentlyContinue - Remove-Item -Recurse .\.github -ErrorAction SilentlyContinue - Remove-Item .\.gitignore -ErrorAction SilentlyContinue - [void](Test-Path .\assets -ErrorAction Stop) - [void](Test-Path .\.github -ErrorAction Stop) - [void](Test-Path .\.gitignore -ErrorAction Stop) - - - name: Download Bulma - run: | - $Tags = git tag | %{ $_ -replace "^v","" } - Write-Output "Known Bulma tags:" - $tags | Format-Table | Out-Host - # get list of Bulma Releases - $BulmaReleases = Invoke-RestMethod -FollowRelLink -Uri "$($Env:BULMA_URL)/releases?per_page=100" | %{$_}| ForEach-Object { - if ($_.tag_name -and (-Not ($_.draft -and $_.prerelease))) { - [PSCustomObject]@{ - release = [version]$_.tag_name - known = [bool]$($Tags -contains $_.tag_name) - archive = [string]$_.assets.name - download = [string]$_.assets.browser_download_url - } - } - } | Sort-Object -Property release - Write-Output "All new BULMA Releases" - $BulmaReleases | FT | Out-Host - $BulmaRelease = $BulmaReleases | Where-Object { -Not $_.known } | Select-Object -First 1 - if ($BulmaRelease) { - Write-Output "Downloading Bulma $($BulmaRelease.release)" - Invoke-WebRequest -Uri $BulmaRelease.download -OutFile $BulmaRelease.archive - [void](Test-Path $BulmaRelease.archive -ErrorAction Stop) - $bulmaFolder = (Get-Item $BulmaRelease.archive).Basename - - [void](New-Item -Type Directory ./assets -ErrorAction Stop) - [void](Test-Path .\assets -PathType Container -ErrorAction Stop) - Expand-Archive -LiteralPath $BulmaRelease.archive -DestinationPath .\assets - if (Test-Path .\assets\__MACOSX) { Remove-Item .\assets\__MACOSX -ErrorAction SilentlyContinue -Recurse } - Rename-Item .\assets\$bulmaFolder "bulma" - [void](Test-Path ./assets/bulma -PathType Container -ErrorAction Stop) - if ((Get-ChildItem .\assets).Count -ne 1) { - Write-Error "Unknown Bulma archive content found (expected 'bulma' only):" - Get-ChildItem .\assets | Out-Host - Write-Error "Aborting - please check" - } - echo "BULMA_RELEASE=$($BulmaRelease.release)" | Out-File $Env:GITHUB_ENV -Append -Encoding utf8 - echo "BULMA_ARCHIVE=$($BulmaRelease.archive)" | Out-File $Env:GITHUB_ENV -Append -Encoding utf8 - Write-Output "download successful: $($BulmaRelease.archive)" - $notes = @("### This release contains the following style files:`n", "- CSS`n") - $notes += Get-ChildItem -Path .\assets\bulma -filter "*.css" -recurse | Resolve-Path -Relative | %{ " - $_" } - $notes += "`n - SASS`n " - $notes += Get-ChildItem -Path .\assets\bulma -filter "*.sass" | Resolve-Path -Relative | %{ " - $_" } - $notes += "`nRelease details on the [official release page](https://github.com/jgthms/bulma/releases/tag/$($BulmaRelease.release))" - $notes | Set-Content -encoding utf8 notes.md - Get-Content notes.md - } else { - Write-Output "No new Bulma Version found to pack" - } - - name: Create Release - if: ${{ env.BULMA_RELEASE }} - run: | - Write-Host "Creating Release for $ENV:BULMA_RELEASE : $ENV:BULMA_ARCHIVE" - $BulmaRelease = "$ENV:BULMA_RELEASE" - $BulmaArchive = "$ENV:BULMA_ARCHIVE" - $bulmaBranch = "bulma-$BulmaRelease" - git checkout -b $bulmaBranch - git add assets .github - git commit -m "pack Bulma $BulmaRelease for Hugo" - git push --set-upstream origin $bulmaBranch - # git tag -a "v$BulmaRelease" -m "packed Bulma release $BulmaRelease" - # git push --tags - git checkout main - gh release create "v$BulmaRelease" --title "Bulma4Hugo v$BulmaRelease" --target $bulmaBranch --latest --notes-file notes.md - git branch -D $bulmaBranch - git push origin --delete $bulmaBranch diff --git a/assets/bulma/CHANGELOG.md b/assets/bulma/CHANGELOG.md new file mode 100644 index 0000000..80db155 --- /dev/null +++ b/assets/bulma/CHANGELOG.md @@ -0,0 +1,1384 @@ +# Bulma Changelog + +## Next release + +### Improvements + +* #2709 Add light colors to the `notification` element +* #2740 Fixes #2739 -> Add variables size for layout `hero` +* Fix #2741 -> Create `bulmaRgba()` function to support `inherit` value +* #2756 Add `$button-text-decoration` variable + +### Bug fixes + +* #2664 Fixes #2671 -> Add `$panel-colors` variable + +## 0.8.0 + +### Big update + +#### Larger form controls + +Controls and buttons are now `2.5em` high. You can revert this resizing by setting these previous values: + +```sass +$control-height: 2.25em +$control-padding-vertical: calc(0.375em - #{$control-border-width}) +$control-padding-horizontal: calc(0.625em - #{$control-border-width}) +$button-padding-vertical: calc(0.375em - #{$button-border-width}) +$button-padding-horizontal: 0.75em +``` + +#### Light and dark colors + +Each main color (`"primary"`, `"info"`, `"success"`, `"warning"`, `"danger"`) now has a `*-light` and `*-dark` version. They are calculated using 2 new color functions: + +* `findLightColor()` which finds the light version of a color +* `findDarkolor()` which finds the dark version of a color + +The light colors are used by the `button` element, while the light and dark colors are used by the `message` component. + +#### Panel colors + +The `panel` component is now available in all the different colors. + +#### 4-value color map + +The `$colors` Sass map now accepts, for each of its values, a map of up to **4** values. For example: the key `"info"` now has the `($info, $info-invert, $info-light, $info-dark)` map. + +If you provide a `$custom-colors` map, you can decide to provide a map of 1, 2, 3 or 4 values for each value. If fewer than 4 are provided, Bulma will calculate the remaining ones: + +```scss +$custom-colors: ( + "lime": (lime), + "tomato": (tomato, white), + "orange": ($orange, $orange-invert, $orange-light), + "lavender": ($lavender, $lavender-invert, $lavender-light, $lavender-dark) +); +``` + +This is processed by the updated `mergeColorMaps()` Sass function. + +#### Scheme variables + +There are 6 new `$scheme` derived variables: `$scheme-main` `$scheme-main-bis` `$scheme-main-ter` `$scheme-invert` `$scheme-invert-bis` `$scheme-invert-ter` +They replace the `$white` and `$black` occurences in the codebase. This makes it easy to create a "Dark mode" simply by swapping the values: + +```sass +$scheme-main: $black +$scheme-invert: $white +// etc. +``` + +That is also why most of the codebase now references **derived** variables (`$text`, `$background`, `$border` etc.) instead of **initial** ones (`$grey`, `$grey-lighter`, `$grey-darker` etc.): updating the derived variables will affect all elements and components directly. + +#### Initial variables + +* `$green: hsl(141, 53%, 53%)` +* `$cyan: hsl(204, 71%, 53%)` +* `$red: hsl(348, 86%, 61%)` + +#### Derived variables + +* `$primary-invert: findColorInvert($primary)` +* `$primary-light: findLightColor($primary)` +* `$primary-dark: findDarkColor($primary)` +* `$info-invert: findColorInvert($info)` +* `$info-light: findLightColor($info)` +* `$info-dark: findDarkColor($info)` +* `$success-invert: findColorInvert($success)` +* `$success-light: findLightColor($success)` +* `$success-dark: findDarkColor($success)` +* `$warning-invert: findColorInvert($warning)` +* `$warning-light: findLightColor($warning)` +* `$warning-dark: findDarkColor($warning)` +* `$danger-invert: findColorInvert($danger)` +* `$danger-light: findLightColor($danger)` +* `$danger-dark: findDarkColor($danger)` +* `$light-invert: findColorInvert($light)` +* `$dark-invert: findColorInvert($dark)` + +* `$scheme-main: $white` +* `$scheme-main-bis: $white-bis` +* `$scheme-main-ter: $white-ter` +* `$scheme-invert: $black` +* `$scheme-invert-bis: $black-bis` +* `$scheme-invert-ter: $black-ter` + +### Other variables + +* `$control-height: 2.5em` +* `$control-padding-vertical: calc(0.5em - #{$control-border-width})` +* `$control-padding-horizontal: calc(0.75em - #{$control-border-width})` +* `$media-border-color: rgba($border, 0.5)` +* `$notification-code-background-color: $scheme-main` +* `$panel-radius: $radius-large` +* `$panel-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02)` +* `$textarea-padding: $control-padding-horizontal` +* `$textarea-max-height: 40em` +* `$textarea-min-height: 8em` + +### Bug fixes + +* Fix #2647 -> Missing meta tags in snippet +* Fix #2031, Fix #2483 -> Invalid output when declaring a custom shade map +* Fix #2060 -> `height: auto` on HTML `audio` element breaks height of element +* Fix #706 -> Derive `-invert` variables using `findColorInvert()` +* #1608 Fix #1552 -> `.container.is-fluid` margins + +### New features + +* #2563 `.image` has a new `.is-fullwidth` modifier + +## 0.7.5 + +### Deprecation warning + +The `form.sass` file is **deprecated**. It has moved into its own `/form` folder. If you were importing `form.sass`, please import `sass/form/_all.sass` now. +If you were simply importing the whole of Bulma with `@import "~/bulma/bulma.sass"` or similar, you won't have to change anything, and everything will work as before. + +### New features + +#### Support for overriding the `font-family` + +You can now specify a different `font-family` for the `.title`, `.subtitle` and `.button` by using the variables `$title-family`, `$subtitle-family` and `$button-family` respectively. + +Simply set a value when importing Bulma: + +```scss +$title-family: "Georgia", serif; +``` + +* #2375 Add `.is-relative` helper +* #2321 Make `.navbar` focus behave like hover for the navigation +* #2290 Fix #1186 -> Reset the offset on columns +* #2231 Add `.has-text-weight-medium` helper +* #2224 Add customizable border radius to progress bar +* #2480 Add `$footer-color` variable + +### Improvements + +* #2396 Update docs with webpack 4 example +* #2381 Make centered buttons have equal margin +* Fix #2297 -> Remove `.container` fixed width values, use `flex-grow` +* #2478 Move form.sass into its own folder + +### Bug fixes + +* #2420 Fix #2414 -> Fix `align` attribute in `td/th` being ignored +* #2463 Remove duplicate `.has-addons` in `tag.sass` +* #2253 Fix `$gap` variable default value +* #2273 Fix #2258 -> Fix Indeterminate Progress Bar animation in Firefox +* #2175 Proper aligning for `.tabs` within `.content` +* #2476 Fix #2441 -> Correct active pagination link text colour on hero + +Fix #1979 -> Correct loading spinner color when a button is: + +* outlined and hovered/focused +* outlined, inverted and hovered/focused + +### New variables + +#### Initial variables + +* `$block-spacing` + +#### Base + +* `$body-font-size` +* `$small-font-size` +* `$pre-font-size` +* `$pre-padding` +* `$pre-code-font-size` + +#### Components + +* `$card-header-padding` +* `$card-content-padding` +* `$card-media-margin` +* `$dropdown-menu-min-width` +* `$dropdown-content-padding-bottom` +* `$dropdown-content-padding-top` +* `$level-item-spacing` +* `$menu-list-line-height` +* `$menu-list-link-padding` +* `$menu-nested-list-margin` +* `$menu-nested-list-padding-left` +* `$menu-label-font-size` +* `$menu-label-letter-spacing` +* `$menu-label-spacing` +* `$pagination-item-font-size` +* `$pagination-item-margin` +* `$pagination-item-padding-left` +* `$pagination-item-padding-right` +* `$panel-margin` +* `$panel-tabs-font-size` + +#### Elements + +* `$container-offset` + +#### Grid + +* `$tile-spacing` + +## 0.7.3 + +### New features + +* #2145 Fix #372 -> New indeterminate progress bars +* #2206 Fix #2046 -> New variables `$table-head-background-color`, `$table-body-background-color` and `$table-foot-background-color` for the `.table` element +* #592 -> Give arbitrary elements access to the image/ratio classes +* #1682 Fix #1681 -> Adds disabled styles for `
` +* #2201 Fix #1875 -> `.buttons` and `.tags` group sizing (`.are-small`, `.are-medium`, `.are-large`) + +### Improvements + +* #1978 Fix #1696 -> Force `box-sizing: border-box` on `details` element +* #2167 Fix #1878 -> New `$footer-padding` variable +* #2168 -> New `$input-placeholder-color` and `$input-disabled-placeholder-color` variables + +### Bug fixes + +* #2157 Fix #1656 -> Allow border radius if only one `.control` in `.field` +* #2091 Fix #2091 -> Remove CSS rule which causes `.tag.has-addons` to not work correctly +* #2186 Fix #1130 -> Prevent `.dropdown` links underlining in `.message` component +* Fix #2154 -> Move `.hero.is-fullheight-with-navbar` to `navbar.sass` file + +### Deprecation + +* `.control.has-icon` deprecated in favor of `.control.has-icons` + +## 0.7.2 + +### New features + +* #1884 New `$navbar-burger-color` variable +* #1679 Add breakpoint based column gaps +* #1905 Fix `modal` for IE11 #1902 +* #1919 New `is-arrowless` class for navbar items +* #1949 New `is-fullheight-with-navbar` class for heros +* #1764 New `.is-sr-only` helper +* #2109 Add and use `$navbar-breakpoint` variable +* New variables `$control-height`, `$control-line-height`, `$pagination-min-width`, `$input-height` +* #1720 Add list element feature +* #2123 Add `.content ol` types: `.is-lower-roman`, `.is-upper-roman`, `.is-lower-alpha`, `.is-upper-alpha`, and support for the `type=` HTML attribute + +### Improvements + +* #1964 Allow `.notification` to have a `.dropdown-item` +* #1999 Change `$border` to `$grey-lighter` in mixins +* #2085 `.media-content` will allow scrolling horizontally if the content is too wide +* #1744 Fix #1710 by using `$table-striped-row-even-hover-background-color` only for even rows +* #2074 Allow `