├── .github ├── FUNDING.yml └── workflows │ ├── build.yml │ ├── early-access.yml │ └── release.yml ├── .gitignore ├── LICENSE ├── README.adoc ├── VERSION ├── build.gradle ├── gradle.properties ├── gradle ├── LICENSE_HEADER └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── images ├── alerts.png ├── buttons.png ├── labels.png ├── panels.png └── splitmenu-buttons.png ├── jreleaser.yml ├── settings.gradle └── subprojects ├── bootstrapfx-core ├── bootstrapfx-core.gradle └── src │ └── main │ ├── java │ ├── module-info.java │ └── org │ │ └── kordamp │ │ └── bootstrapfx │ │ ├── BootstrapFX.java │ │ └── scene │ │ └── layout │ │ └── Panel.java │ └── resources │ └── org │ └── kordamp │ └── bootstrapfx │ ├── bootstrap │ ├── _alerts.scss │ ├── _badges.scss │ ├── _breadcrumbs.scss │ ├── _button-groups.scss │ ├── _buttons.scss │ ├── _carousel.scss │ ├── _close.scss │ ├── _code.scss │ ├── _component-animations.scss │ ├── _dropdowns.scss │ ├── _forms.scss │ ├── _glyphicons.scss │ ├── _grid.scss │ ├── _input-groups.scss │ ├── _javafx.scss │ ├── _jumbotron.scss │ ├── _labels.scss │ ├── _list-group.scss │ ├── _media.scss │ ├── _mixins.scss │ ├── _modals.scss │ ├── _navbar.scss │ ├── _navs.scss │ ├── _normalize.scss │ ├── _pager.scss │ ├── _pagination.scss │ ├── _panels.scss │ ├── _popovers.scss │ ├── _print.scss │ ├── _progress-bars.scss │ ├── _responsive-embed.scss │ ├── _responsive-utilities.scss │ ├── _scaffolding.scss │ ├── _tables.scss │ ├── _theme.scss │ ├── _thumbnails.scss │ ├── _tooltip.scss │ ├── _tooltips.scss │ ├── _type.scss │ ├── _utilities.scss │ ├── _variables.scss │ ├── _wells.scss │ └── mixins │ │ ├── _alerts.scss │ │ ├── _background-variant.scss │ │ ├── _border-radius.scss │ │ ├── _buttons.scss │ │ ├── _center-block.scss │ │ ├── _clearfix.scss │ │ ├── _forms.scss │ │ ├── _gradients.scss │ │ ├── _grid-framework.scss │ │ ├── _grid.scss │ │ ├── _hide-text.scss │ │ ├── _image.scss │ │ ├── _labels.scss │ │ ├── _list-group.scss │ │ ├── _nav-divider.scss │ │ ├── _nav-vertical-align.scss │ │ ├── _opacity.scss │ │ ├── _pagination.scss │ │ ├── _panels.scss │ │ ├── _progress-bar.scss │ │ ├── _reset-filter.scss │ │ ├── _reset-text.scss │ │ ├── _resize.scss │ │ ├── _responsive-visibility.scss │ │ ├── _shadow.scss │ │ ├── _size.scss │ │ ├── _tab-focus.scss │ │ ├── _table-row.scss │ │ ├── _text-emphasis.scss │ │ ├── _text-overflow.scss │ │ ├── _tooltip.scss │ │ └── _vendor-prefixes.scss │ └── bootstrapfx.scss └── sampler ├── sampler.gradle └── src └── main ├── java ├── module-info.java └── org │ └── kordamp │ └── bootstrapfx │ └── sampler │ ├── DemoTabPane.java │ ├── Sampler.java │ └── XMLEditor.java └── resources └── org └── kordamp └── bootstrapfx └── sampler ├── alerts.fxml ├── button_groups.fxml ├── buttons.fxml ├── labels.fxml ├── panels.fxml ├── paragraph.fxml ├── progressbars.fxml ├── sampler.css ├── sampler.fxml ├── split_menu_buttons.fxml ├── text.fxml ├── text2.fxml ├── tooltips.fxml └── xml-highlighting.css /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | patreon: aalmiray 2 | github: aalmiray 3 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build 2 | 3 | on: 4 | pull_request: 5 | 6 | jobs: 7 | build: 8 | name: Build 9 | strategy: 10 | fail-fast: false 11 | matrix: 12 | os: [ ubuntu-latest, macos-latest, windows-latest ] 13 | runs-on: ${{ matrix.os }} 14 | if: startsWith(github.event.head_commit.message, 'Releasing version') != true 15 | 16 | steps: 17 | - uses: actions/checkout@v2 18 | 19 | - name: Set up Java 20 | uses: actions/setup-java@v2 21 | with: 22 | java-version: 11 23 | distribution: 'zulu' 24 | 25 | - uses: actions/cache@v2 26 | with: 27 | path: ~/.gradle/caches 28 | key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('**/gradle.properties') }} 29 | restore-keys: | 30 | ${{ runner.os }}-gradle- 31 | 32 | - uses: actions/cache@v2 33 | with: 34 | path: ~/.gradle/wrapper 35 | key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradlew') }} 36 | restore-keys: | 37 | ${{ runner.os }}-gradlew- 38 | 39 | - name: Build 40 | run: ./gradlew build -S 41 | 42 | - name: Show Reports 43 | uses: actions/upload-artifact@v1 44 | if: failure() 45 | with: 46 | name: reports-${{ runner.os }} 47 | path: build/ 48 | -------------------------------------------------------------------------------- /.github/workflows/early-access.yml: -------------------------------------------------------------------------------- 1 | name: EarlyAccess 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | 7 | jobs: 8 | earlyaccess: 9 | name: EarlyAccess 10 | if: github.repository == 'kordamp/bootstrapfx' && startsWith(github.event.head_commit.message, 'Releasing version') != true 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@v2 15 | with: 16 | fetch-depth: 0 17 | 18 | - name: Set up Java 19 | uses: actions/setup-java@v2 20 | with: 21 | java-version: 11 22 | distribution: 'zulu' 23 | 24 | - uses: actions/cache@v2 25 | with: 26 | path: ~/.gradle/caches 27 | key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('**/gradle.properties') }} 28 | restore-keys: | 29 | ${{ runner.os }}-gradle- 30 | 31 | - uses: actions/cache@v2 32 | with: 33 | path: ~/.gradle/wrapper 34 | key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradlew') }} 35 | restore-keys: | 36 | ${{ runner.os }}-gradlew- 37 | 38 | - name: Build 39 | run: ./gradlew -Prelease=true build -S 40 | 41 | - name: Version 42 | id: vars 43 | run: echo ::set-output name=version::$(cat VERSION) 44 | 45 | - name: Release 46 | uses: jreleaser/release-action@v1 47 | with: 48 | version: early-access 49 | arguments: release 50 | env: 51 | JRELEASER_PROJECT_VERSION: ${{ steps.vars.outputs.version }} 52 | JRELEASER_GITHUB_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} 53 | JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} 54 | JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} 55 | JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} 56 | 57 | - name: JReleaser output 58 | if: always() 59 | uses: actions/upload-artifact@v2 60 | with: 61 | name: artifact 62 | path: | 63 | out/jreleaser/trace.log 64 | out/jreleaser/output.properties 65 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | workflow_dispatch: 5 | inputs: 6 | version: 7 | description: "Release version" 8 | required: true 9 | 10 | jobs: 11 | release: 12 | name: Release 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/checkout@v2 16 | with: 17 | fetch-depth: 0 18 | 19 | - name: Set up Java 20 | uses: actions/setup-java@v2 21 | with: 22 | java-version: 11 23 | distribution: 'zulu' 24 | 25 | - uses: actions/cache@v2 26 | with: 27 | path: ~/.gradle/caches 28 | key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('**/gradle.properties') }} 29 | restore-keys: | 30 | ${{ runner.os }}-gradle- 31 | 32 | - uses: actions/cache@v2 33 | with: 34 | path: ~/.gradle/wrapper 35 | key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradlew') }} 36 | restore-keys: | 37 | ${{ runner.os }}-gradlew- 38 | 39 | - name: Set release version 40 | run: | 41 | VERSION=${{ github.event.inputs.version }} 42 | echo $VERSION > VERSION 43 | git add VERSION 44 | git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" 45 | git config --global user.name "GitHub Action" 46 | git commit -a -m "Releasing version $VERSION" 47 | git push origin main 48 | 49 | - name: Build 50 | run: | 51 | ./gradlew -Prelease=true build -S 52 | 53 | - name: Deploy 54 | env: 55 | GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} 56 | GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} 57 | GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} 58 | run: | 59 | ./gradlew -Prelease=true -Pfull-release=true \ 60 | -PsonatypeUsername=${{ secrets.SONATYPE_USERNAME }} \ 61 | -PsonatypePassword=${{ secrets.SONATYPE_PASSWORD }} \ 62 | build publishToSonatype -S 63 | 64 | - name: Release 65 | uses: jreleaser/release-action@v1 66 | with: 67 | version: early-access 68 | arguments: full-release 69 | env: 70 | JRELEASER_PROJECT_VERSION: ${{ github.event.inputs.version }} 71 | JRELEASER_GITHUB_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} 72 | JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} 73 | JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} 74 | JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} 75 | JRELEASER_TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }} 76 | JRELEASER_TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }} 77 | JRELEASER_TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }} 78 | JRELEASER_TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} 79 | 80 | - name: JReleaser output 81 | if: always() 82 | uses: actions/upload-artifact@v2 83 | with: 84 | name: artifact 85 | path: | 86 | out/jreleaser/trace.log 87 | out/jreleaser/output.properties 88 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | *.iml 3 | *.ipr 4 | *.iws 5 | .idea 6 | build 7 | out 8 | target 9 | .classpath 10 | .project 11 | .DS_Store 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 Andres Almiray 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 0.5.0-SNAPSHOT 2 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: MIT 3 | * 4 | * Copyright (c) 2015-2021 Andres Almiray. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | 25 | plugins { 26 | id 'com.google.osdetector' 27 | } 28 | 29 | project.rootProject.ext.theVersion = file('VERSION').text.trim() 30 | 31 | allprojects { p -> 32 | p.version = p.rootProject.ext.theVersion 33 | } 34 | 35 | ext.platform = osdetector.os == 'osx' ? 'mac' : osdetector.os == 'windows' ? 'win' : osdetector.os 36 | 37 | config { 38 | info { 39 | description = 'BootstrapFX: CSS and widgets' 40 | inceptionYear = '2015' 41 | tags = ['javafx','css','bootstrap'] 42 | 43 | specification { enabled = false } 44 | } 45 | 46 | licensing { 47 | licenses { 48 | inherits = false 49 | license { 50 | id = 'MIT' 51 | primary = true 52 | } 53 | } 54 | } 55 | 56 | docs { 57 | javadoc { 58 | autoLinks { 59 | enabled = false 60 | } 61 | options { 62 | addBooleanOption('javafx', true) 63 | } 64 | aggregate { 65 | enabled = false 66 | } 67 | } 68 | } 69 | } 70 | 71 | allprojects { 72 | apply plugin: 'idea' 73 | } 74 | 75 | idea { 76 | project { 77 | jdkName sourceCompatibility 78 | languageLevel sourceCompatibility 79 | 80 | ipr { 81 | withXml { provider -> 82 | def node = provider.asNode() 83 | node.component.find { it.'@name' == 'VcsDirectoryMappings' }?.mapping[0].'@vcs' = 'Git' 84 | } 85 | } 86 | } 87 | } 88 | 89 | allprojects { 90 | license { 91 | exclude '**/*.fxml' 92 | exclude '**/*.scss' 93 | } 94 | } -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # 2 | # SPDX-License-Identifier: MIT 3 | # 4 | # Copyright (c) 2015-2021 Andres Almiray. 5 | # 6 | # Permission is hereby granted, free of charge, to any person obtaining a copy 7 | # of this software and associated documentation files (the "Software"), to deal 8 | # in the Software without restriction, including without limitation the rights 9 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | # copies of the Software, and to permit persons to whom the Software is 11 | # furnished to do so, subject to the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included in 14 | # all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | # THE SOFTWARE. 23 | # 24 | 25 | group = org.kordamp.bootstrapfx 26 | sourceCompatibility = 11 27 | targetCompatibility = 11 28 | javafxVersion = 11 29 | 30 | kordampPluginVersion = 0.45.0 31 | kordampBuildVersion = 2.4.0 32 | osPluginVersion = 1.7.0 33 | freefairPluginVersion = 5.3.0 34 | modularityPluginVersion = 1.8.3 35 | java9cPluginVersion = 0.2.3 36 | 37 | org.gradle.daemon = true 38 | org.gradle.caching = true 39 | org.gradle.parallel = false 40 | -------------------------------------------------------------------------------- /gradle/LICENSE_HEADER: -------------------------------------------------------------------------------- 1 | SPDX-License-Identifier: MIT 2 | 3 | Copyright (c) ${copyrightYear} ${author}. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kordamp/bootstrapfx/f54f4d6bba4f8e67ede971391881283ce214a211/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /images/alerts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kordamp/bootstrapfx/f54f4d6bba4f8e67ede971391881283ce214a211/images/alerts.png -------------------------------------------------------------------------------- /images/buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kordamp/bootstrapfx/f54f4d6bba4f8e67ede971391881283ce214a211/images/buttons.png -------------------------------------------------------------------------------- /images/labels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kordamp/bootstrapfx/f54f4d6bba4f8e67ede971391881283ce214a211/images/labels.png -------------------------------------------------------------------------------- /images/panels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kordamp/bootstrapfx/f54f4d6bba4f8e67ede971391881283ce214a211/images/panels.png -------------------------------------------------------------------------------- /images/splitmenu-buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kordamp/bootstrapfx/f54f4d6bba4f8e67ede971391881283ce214a211/images/splitmenu-buttons.png -------------------------------------------------------------------------------- /jreleaser.yml: -------------------------------------------------------------------------------- 1 | # 2 | # SPDX-License-Identifier: MIT 3 | # 4 | # Copyright (c) 2015-2021 Andres Almiray. 5 | # 6 | # Permission is hereby granted, free of charge, to any person obtaining a copy 7 | # of this software and associated documentation files (the "Software"), to deal 8 | # in the Software without restriction, including without limitation the rights 9 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | # copies of the Software, and to permit persons to whom the Software is 11 | # furnished to do so, subject to the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included in 14 | # all copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | # THE SOFTWARE. 23 | # 24 | 25 | project: 26 | name: bootstrapfx 27 | description: 'BootstrapFX: CSS and widgets' 28 | longDescription: | 29 | BootstrapFX is a partial port of [Twitter Bootstrap](http://getbootstrap.com) for JavaFX. It mainly provides a CSS 30 | stylesheet that closely resembles the original while being custom tailored for JavaFX's unique CSS flavor. 31 | 32 | It's worth mentioning that Twitter Bootstrap delivers more than just a standardized look for common widgets. It also 33 | provides new widgets, behavior and a grid system. Some of these features may be ported at a later stage to BootstrapFX. 34 | 35 | website: https://github.com/kordamp/bootstrapfx 36 | authors: 37 | - Andres Almiray 38 | license: MIT 39 | 40 | release: 41 | github: 42 | username: aalmiray 43 | overwrite: true 44 | changelog: 45 | formatted: ALWAYS 46 | change: '- {{commitShortHash}} {{commitTitle}}' 47 | labelers: 48 | - label: 'feature' 49 | title: 'Resolves #' 50 | body: 'Resolves #' 51 | - label: 'issue' 52 | title: 'Fixes #' 53 | body: 'Fixes #' 54 | - label: 'issue' 55 | title: 'Relates to #' 56 | body: 'Relates to #' 57 | - label: 'task' 58 | title: '[chore]' 59 | categories: 60 | - title: '🚀 Features' 61 | labels: 62 | - 'feature' 63 | - title: '✅ Issues' 64 | labels: 65 | - 'issue' 66 | - title: '🧰 Tasks' 67 | labels: 68 | - 'task' 69 | replacers: 70 | - search: '\[chore\] ' 71 | replace: '' 72 | 73 | announce: 74 | twitter: 75 | active: release 76 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: MIT 3 | * 4 | * Copyright (c) 2015-2021 Andres Almiray. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | 25 | pluginManagement { 26 | repositories { 27 | gradlePluginPortal() 28 | mavenCentral() 29 | mavenLocal() 30 | } 31 | plugins { 32 | id 'org.javamodularity.moduleplugin' version modularityPluginVersion 33 | id 'io.freefair.jsass-java' version freefairPluginVersion 34 | id 'com.google.osdetector' version osPluginVersion 35 | id 'org.jonnyzzz.java9c' version java9cPluginVersion 36 | } 37 | } 38 | 39 | buildscript { 40 | repositories { 41 | gradlePluginPortal() 42 | mavenCentral() 43 | mavenLocal() 44 | } 45 | dependencies { 46 | classpath "org.kordamp.gradle:kordamp-parentbuild:$kordampBuildVersion" 47 | } 48 | } 49 | apply plugin: 'org.kordamp.gradle.kordamp-parentbuild' 50 | 51 | rootProject.name = 'bootstrapfx' 52 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/bootstrapfx-core.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: MIT 3 | * 4 | * Copyright (c) 2015-2021 Andres Almiray. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | plugins { 25 | id 'java-library' 26 | id 'org.jonnyzzz.java9c' 27 | id 'org.javamodularity.moduleplugin' 28 | id 'io.freefair.jsass-java' 29 | } 30 | 31 | processResources { 32 | // jsass-java includes all *.scss files in the final JAR 33 | exclude('**/*.scss') 34 | } 35 | 36 | dependencies { 37 | compileOnly "org.openjfx:javafx-base:${javafxVersion}:${platform}" 38 | compileOnly "org.openjfx:javafx-graphics:${javafxVersion}:${platform}" 39 | compileOnly "org.openjfx:javafx-controls:${javafxVersion}:${platform}" 40 | } -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/java/module-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: MIT 3 | * 4 | * Copyright (c) 2015-2021 Andres Almiray. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | /** 25 | * @author Andres Almiray 26 | */ 27 | module org.kordamp.bootstrapfx.core { 28 | exports org.kordamp.bootstrapfx; 29 | exports org.kordamp.bootstrapfx.scene.layout; 30 | 31 | requires transitive javafx.base; 32 | requires transitive javafx.graphics; 33 | requires javafx.controls; 34 | } 35 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/java/org/kordamp/bootstrapfx/BootstrapFX.java: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: MIT 3 | * 4 | * Copyright (c) 2015-2021 Andres Almiray. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | package org.kordamp.bootstrapfx; 25 | 26 | /** 27 | * @author Andres Almiray 28 | */ 29 | public final class BootstrapFX { 30 | private BootstrapFX() { 31 | // noop 32 | } 33 | 34 | public static String bootstrapFXStylesheet() { 35 | return BootstrapFX.class.getResource("bootstrapfx.css").toExternalForm(); 36 | } 37 | } -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/java/org/kordamp/bootstrapfx/scene/layout/Panel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * SPDX-License-Identifier: MIT 3 | * 4 | * Copyright (c) 2015-2021 Andres Almiray. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy 7 | * of this software and associated documentation files (the "Software"), to deal 8 | * in the Software without restriction, including without limitation the rights 9 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | * copies of the Software, and to permit persons to whom the Software is 11 | * furnished to do so, subject to the following conditions: 12 | * 13 | * The above copyright notice and this permission notice shall be included in 14 | * all copies or substantial portions of the Software. 15 | * 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | * THE SOFTWARE. 23 | */ 24 | package org.kordamp.bootstrapfx.scene.layout; 25 | 26 | import javafx.beans.DefaultProperty; 27 | import javafx.beans.property.ObjectProperty; 28 | import javafx.beans.property.SimpleObjectProperty; 29 | import javafx.scene.Node; 30 | import javafx.scene.control.Label; 31 | import javafx.scene.control.Labeled; 32 | import javafx.scene.layout.BorderPane; 33 | import javafx.scene.layout.GridPane; 34 | import javafx.scene.layout.Priority; 35 | 36 | /** 37 | * @author Andres Almiray 38 | */ 39 | @DefaultProperty("body") 40 | public class Panel extends BorderPane { 41 | private ObjectProperty heading; 42 | private ObjectProperty body; 43 | private ObjectProperty footer; 44 | 45 | public Panel() { 46 | getStyleClass().setAll("panel"); 47 | } 48 | 49 | public Panel(String title) { 50 | this(); 51 | setText(title); 52 | } 53 | 54 | public final ObjectProperty headingProperty() { 55 | if (this.heading == null) { 56 | this.heading = new SimpleObjectProperty<>(this, "heading"); 57 | this.heading.addListener((v, o, n) -> { 58 | if (null != n) { 59 | GridPane box = new GridPane(); 60 | box.getStyleClass().setAll("panel-heading"); 61 | GridPane.setColumnIndex(n, 0); 62 | GridPane.setRowIndex(n, 0); 63 | GridPane.setHgrow(n, Priority.ALWAYS); 64 | GridPane.setVgrow(n, Priority.ALWAYS); 65 | box.getChildren().add(n); 66 | setTop(box); 67 | } 68 | }); 69 | } 70 | return this.heading; 71 | } 72 | 73 | public final void setHeading(Node content) { 74 | this.headingProperty().set(content); 75 | } 76 | 77 | public final Node getHeading() { 78 | return this.heading == null ? null : this.heading.get(); 79 | } 80 | 81 | public final ObjectProperty bodyProperty() { 82 | if (this.body == null) { 83 | this.body = new SimpleObjectProperty<>(this, "body"); 84 | this.body.addListener((v, o, n) -> { 85 | if (null != n) { 86 | GridPane box = new GridPane(); 87 | box.getStyleClass().setAll("panel-body"); 88 | GridPane.setColumnIndex(n, 0); 89 | GridPane.setRowIndex(n, 0); 90 | GridPane.setHgrow(n, Priority.ALWAYS); 91 | GridPane.setVgrow(n, Priority.ALWAYS); 92 | box.getChildren().add(n); 93 | setCenter(box); 94 | } 95 | }); 96 | } 97 | return this.body; 98 | } 99 | 100 | public final void setBody(Node body) { 101 | this.bodyProperty().set(body); 102 | } 103 | 104 | public final Node getBody() { 105 | return this.body == null ? null : this.body.get(); 106 | } 107 | 108 | public final ObjectProperty footerProperty() { 109 | if (this.footer == null) { 110 | this.footer = new SimpleObjectProperty<>(this, "footer"); 111 | this.footer.addListener((v, o, n) -> { 112 | if (null != n) { 113 | GridPane box = new GridPane(); 114 | box.getStyleClass().setAll("panel-footer"); 115 | GridPane.setColumnIndex(n, 0); 116 | GridPane.setRowIndex(n, 0); 117 | GridPane.setHgrow(n, Priority.ALWAYS); 118 | GridPane.setVgrow(n, Priority.ALWAYS); 119 | box.getChildren().add(n); 120 | setBottom(box); 121 | } 122 | }); 123 | } 124 | return this.footer; 125 | } 126 | 127 | public final void setFooter(Node content) { 128 | this.footerProperty().set(content); 129 | } 130 | 131 | public final Node getFooter() { 132 | return this.footer == null ? null : this.footer.get(); 133 | } 134 | 135 | public void setText(String text) { 136 | Label label = new Label(text); 137 | label.getStyleClass().add("panel-title"); 138 | headingProperty().set(label); 139 | } 140 | 141 | public String getText() { 142 | Node node = headingProperty().get(); 143 | if (node instanceof Labeled) { 144 | return ((Labeled) node).getText(); 145 | } 146 | return null; 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_alerts.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Alerts 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // ------------------------- 8 | 9 | .alert { 10 | -fx-padding: $alert-padding; 11 | -fx-border-width: 1px; 12 | -fx-border-style: solid; 13 | -fx-border-color: black; 14 | -fx-border-radius: $alert-border-radius; 15 | -fx-background-radius: $alert-border-radius; 16 | } 17 | 18 | //.alert { 19 | //-fx-padding: $alert-padding; 20 | // margin-bottom: $line-height-computed; 21 | //-fx-border-width: 1px; 22 | //-fx-border-style: solid; 23 | //-fx-border-color: black; 24 | //-fx-border-radius: $alert-border-radius; 25 | //-fx-max-width: 100%; 26 | //-fx-min-width: 100%; 27 | //-fx-pref-width: 100%; 28 | 29 | // Headings for larger alerts 30 | // h4 { 31 | // // margin-top: 0; 32 | // // Specified for the h4 to prevent conflicts of changing $headings-color 33 | // -fx-text-fill: inherit; 34 | // -fx-fill: inherit; 35 | // } 36 | 37 | // Provide class for links that match alerts 38 | // .alert-link { 39 | // -fx-font-weight: $alert-link-font-weight; 40 | // } 41 | 42 | // Improve alignment and spacing of inner content 43 | // > p, 44 | // > ul { 45 | // margin-bottom: 0; 46 | // } 47 | // 48 | // > p + p { 49 | // margin-top: 5px; 50 | // } 51 | //} 52 | 53 | // Dismissible alerts 54 | // 55 | // Expand the right padding and account for the close button's positioning. 56 | 57 | // .alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0. 58 | //.alert-dismissible { 59 | // padding-right: ($alert-padding + 20); 60 | // 61 | // // Adjust close link position 62 | // .close { 63 | // position: relative; 64 | // top: -2px; 65 | // right: -21px; 66 | // color: inherit; 67 | // } 68 | //} 69 | 70 | // Alternate styles 71 | // 72 | // Generate contextual modifier classes for colorizing the alert. 73 | 74 | .alert-success { 75 | @include alert-variant($alert-success-bg, $alert-success-border, $alert-success-text); 76 | } 77 | 78 | .alert-info { 79 | @include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text); 80 | } 81 | 82 | .alert-warning { 83 | @include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text); 84 | } 85 | 86 | .alert-danger { 87 | @include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text); 88 | } 89 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_badges.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Badges 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .badge { 8 | // display: inline-block; 9 | -fx-min-width: 10px; 10 | -fx-padding: 3px 7px 3px 7px; 11 | -fx-font-size: $font-size-small; 12 | -fx-font-weight: $badge-font-weight; 13 | -fx-text-fill: $badge-color; 14 | -fx-fill: $badge-color; 15 | // line-height: $badge-line-height; 16 | -fx-alignment: center; 17 | // white-space: nowrap; 18 | -fx-text-alignment: center; 19 | -fx-background-color: $badge-bg; 20 | -fx-border-radius: $badge-border-radius; 21 | -fx-background-radius: $badge-border-radius; 22 | 23 | // Empty badges collapse automatically (not available in IE8) 24 | // &:empty { 25 | // display: none; 26 | // } 27 | 28 | // Quick fix for badges in buttons 29 | // .btn & { 30 | // position: relative; 31 | // top: -1px; 32 | // } 33 | 34 | .btn-xs &, 35 | .btn-group-xs > .btn & { 36 | // top: 0; 37 | -fx-padding: 1px 5px 1px 5px; 38 | } 39 | 40 | // [converter] extracted a& to a.badge 41 | 42 | // Account for badges in navs 43 | .list-group-item.active > &, 44 | .nav-pills > .active > a > & { 45 | -fx-text-fill: $badge-active-color; 46 | -fx-fill: $badge-active-color; 47 | -fx-background-color: $badge-active-bg; 48 | } 49 | 50 | // .list-group-item > & { 51 | // float: right; 52 | // } 53 | 54 | // .list-group-item > & + & { 55 | // margin-right: 5px; 56 | // } 57 | // 58 | // .nav-pills > li > a > & { 59 | // margin-left: 3px; 60 | // } 61 | } 62 | 63 | // Hover state, but only for links 64 | a.badge { 65 | &:hover, 66 | &:focused { 67 | -fx-text-fill: $badge-link-hover-color; 68 | -fx-fill: $badge-link-hover-color; 69 | // text-decoration: none; 70 | -fx-cursor: default; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_breadcrumbs.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: $breadcrumb-padding-vertical $breadcrumb-padding-horizontal; 8 | margin-bottom: $line-height-computed; 9 | list-style: none; 10 | background-color: $breadcrumb-bg; 11 | border-radius: $border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | content: "#{$breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space 18 | padding: 0 5px; 19 | color: $breadcrumb-color; 20 | } 21 | } 22 | 23 | > .active { 24 | color: $breadcrumb-active-color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_carousel.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Carousel 3 | // -------------------------------------------------- 4 | 5 | 6 | // Wrapper for the slide container and indicators 7 | .carousel { 8 | position: relative; 9 | } 10 | 11 | .carousel-inner { 12 | position: relative; 13 | overflow: hidden; 14 | width: 100%; 15 | 16 | > .item { 17 | display: none; 18 | position: relative; 19 | @include transition(.6s ease-in-out left); 20 | 21 | // Account for jankitude on images 22 | > img, 23 | > a > img { 24 | @include img-responsive; 25 | line-height: 1; 26 | } 27 | 28 | // WebKit CSS3 transforms for supported devices 29 | @media all and (transform-3d), (-webkit-transform-3d) { 30 | @include transition-transform(0.6s ease-in-out); 31 | @include backface-visibility(hidden); 32 | @include perspective(1000px); 33 | 34 | &.next, 35 | &.active.right { 36 | @include translate3d(100%, 0, 0); 37 | left: 0; 38 | } 39 | &.prev, 40 | &.active.left { 41 | @include translate3d(-100%, 0, 0); 42 | left: 0; 43 | } 44 | &.next.left, 45 | &.prev.right, 46 | &.active { 47 | @include translate3d(0, 0, 0); 48 | left: 0; 49 | } 50 | } 51 | } 52 | 53 | > .active, 54 | > .next, 55 | > .prev { 56 | display: block; 57 | } 58 | 59 | > .active { 60 | left: 0; 61 | } 62 | 63 | > .next, 64 | > .prev { 65 | position: absolute; 66 | top: 0; 67 | width: 100%; 68 | } 69 | 70 | > .next { 71 | left: 100%; 72 | } 73 | > .prev { 74 | left: -100%; 75 | } 76 | > .next.left, 77 | > .prev.right { 78 | left: 0; 79 | } 80 | 81 | > .active.left { 82 | left: -100%; 83 | } 84 | > .active.right { 85 | left: 100%; 86 | } 87 | 88 | } 89 | 90 | // Left/right controls for nav 91 | // --------------------------- 92 | 93 | .carousel-control { 94 | position: absolute; 95 | top: 0; 96 | left: 0; 97 | bottom: 0; 98 | width: $carousel-control-width; 99 | @include opacity($carousel-control-opacity); 100 | font-size: $carousel-control-font-size; 101 | color: $carousel-control-color; 102 | text-align: center; 103 | text-shadow: $carousel-text-shadow; 104 | // We can't have this transition here because WebKit cancels the carousel 105 | // animation if you trip this while in the middle of another animation. 106 | 107 | // Set gradients for backgrounds 108 | &.left { 109 | @include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001)); 110 | } 111 | &.right { 112 | left: auto; 113 | right: 0; 114 | @include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5)); 115 | } 116 | 117 | // Hover/focus state 118 | &:hover, 119 | &:focus { 120 | outline: 0; 121 | color: $carousel-control-color; 122 | text-decoration: none; 123 | @include opacity(.9); 124 | } 125 | 126 | // Toggles 127 | .icon-prev, 128 | .icon-next, 129 | .glyphicon-chevron-left, 130 | .glyphicon-chevron-right { 131 | position: absolute; 132 | top: 50%; 133 | margin-top: -10px; 134 | z-index: 5; 135 | display: inline-block; 136 | } 137 | .icon-prev, 138 | .glyphicon-chevron-left { 139 | left: 50%; 140 | margin-left: -10px; 141 | } 142 | .icon-next, 143 | .glyphicon-chevron-right { 144 | right: 50%; 145 | margin-right: -10px; 146 | } 147 | .icon-prev, 148 | .icon-next { 149 | width: 20px; 150 | height: 20px; 151 | line-height: 1; 152 | font-family: serif; 153 | } 154 | 155 | 156 | .icon-prev { 157 | &:before { 158 | content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039) 159 | } 160 | } 161 | .icon-next { 162 | &:before { 163 | content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A) 164 | } 165 | } 166 | } 167 | 168 | // Optional indicator pips 169 | // 170 | // Add an unordered list with the following class and add a list item for each 171 | // slide your carousel holds. 172 | 173 | .carousel-indicators { 174 | position: absolute; 175 | bottom: 10px; 176 | left: 50%; 177 | z-index: 15; 178 | width: 60%; 179 | margin-left: -30%; 180 | padding-left: 0; 181 | list-style: none; 182 | text-align: center; 183 | 184 | li { 185 | display: inline-block; 186 | width: 10px; 187 | height: 10px; 188 | margin: 1px; 189 | text-indent: -999px; 190 | border: 1px solid $carousel-indicator-border-color; 191 | border-radius: 10px; 192 | cursor: pointer; 193 | 194 | // IE8-9 hack for event handling 195 | // 196 | // Internet Explorer 8-9 does not support clicks on elements without a set 197 | // `background-color`. We cannot use `filter` since that's not viewed as a 198 | // background color by the browser. Thus, a hack is needed. 199 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer 200 | // 201 | // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we 202 | // set alpha transparency for the best results possible. 203 | background-color: #000 \9; // IE8 204 | background-color: rgba(0,0,0,0); // IE9 205 | } 206 | .active { 207 | margin: 0; 208 | width: 12px; 209 | height: 12px; 210 | background-color: $carousel-indicator-active-bg; 211 | } 212 | } 213 | 214 | // Optional captions 215 | // ----------------------------- 216 | // Hidden by default for smaller viewports 217 | .carousel-caption { 218 | position: absolute; 219 | left: 15%; 220 | right: 15%; 221 | bottom: 20px; 222 | z-index: 10; 223 | padding-top: 20px; 224 | padding-bottom: 20px; 225 | color: $carousel-caption-color; 226 | text-align: center; 227 | text-shadow: $carousel-text-shadow; 228 | & .btn { 229 | text-shadow: none; // No shadow for button elements in carousel-caption 230 | } 231 | } 232 | 233 | 234 | // Scale up controls for tablets and up 235 | @media screen and (min-width: $screen-sm-min) { 236 | 237 | // Scale up the controls a smidge 238 | .carousel-control { 239 | .glyphicon-chevron-left, 240 | .glyphicon-chevron-right, 241 | .icon-prev, 242 | .icon-next { 243 | width: 30px; 244 | height: 30px; 245 | margin-top: -15px; 246 | font-size: 30px; 247 | } 248 | .glyphicon-chevron-left, 249 | .icon-prev { 250 | margin-left: -15px; 251 | } 252 | .glyphicon-chevron-right, 253 | .icon-next { 254 | margin-right: -15px; 255 | } 256 | } 257 | 258 | // Show and left align the captions 259 | .carousel-caption { 260 | left: 20%; 261 | right: 20%; 262 | padding-bottom: 30px; 263 | } 264 | 265 | // Move up the indicators 266 | .carousel-indicators { 267 | bottom: 20px; 268 | } 269 | } 270 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_close.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close { 7 | float: right; 8 | font-size: ($font-size-base * 1.5); 9 | font-weight: $close-font-weight; 10 | line-height: 1; 11 | color: $close-color; 12 | text-shadow: $close-text-shadow; 13 | @include opacity(.2); 14 | 15 | &:hover, 16 | &:focus { 17 | color: $close-color; 18 | text-decoration: none; 19 | cursor: pointer; 20 | @include opacity(.5); 21 | } 22 | 23 | // [converter] extracted button& to button.close 24 | } 25 | 26 | // Additional properties for button version 27 | // iOS requires the button element instead of an anchor tag. 28 | // If you want the anchor version, it requires `href="#"`. 29 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 30 | button.close { 31 | padding: 0; 32 | cursor: pointer; 33 | background: transparent; 34 | border: 0; 35 | -webkit-appearance: none; 36 | } 37 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_code.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Code (inline and block) 3 | // -------------------------------------------------- 4 | 5 | // Inline and block code styles 6 | .code, 7 | .kbd, 8 | .pre, 9 | .samp { 10 | -fx-font-family: $font-family-monospace; 11 | } 12 | 13 | // Inline code 14 | .code { 15 | -fx-padding: 2px 4px; 16 | -fx-font-size: 90%; 17 | -fx-text-fill: $code-color; 18 | -fx-fill: $code-color; 19 | -fx-background-color: $code-bg; 20 | -fx-border-radius: $border-radius-base; 21 | } 22 | 23 | // User input typically entered via keyboard 24 | .kbd { 25 | -fx-padding: 2px 4px; 26 | -fx-font-size: 90%; 27 | -fx-text-fill: $kbd-color; 28 | -fx-fill: $kbd-color; 29 | -fx-background-color: $kbd-bg; 30 | -fx-border-radius: $border-radius-small; 31 | box-shadow: 0 -1px 0 rgba(0, 0, 0, .25); 32 | 33 | .kbd { 34 | -fx-padding: 0; 35 | -fx-font-size: 100%; 36 | -fx-font-weight: bold; 37 | // box-shadow: none; 38 | } 39 | } 40 | 41 | // Blocks of code 42 | .pre { 43 | // display: block; 44 | -fx-padding: (($line-height-computed - 1) / 2); 45 | // margin: 0 0 ($line-height-computed / 2); 46 | -fx-font-size: ($font-size-base - 1); // 14px to 13px 47 | // line-height: $line-height-base; 48 | // word-break: break-all; 49 | // word-wrap: break-word; 50 | -fx-text-fill: $pre-color; 51 | -fx-fill: $pre-color; 52 | -fx-background-color: $pre-bg; 53 | -fx-border-width: 1px; 54 | -fx-border-style: solid; 55 | -fx-border-color:$pre-border-color; 56 | -fx-border-radius: $border-radius-base; 57 | 58 | // Account for some code outputs that place code tags in pre tags 59 | .code { 60 | -fx-padding: 0; 61 | -fx-font-size: inherit; 62 | -fx-text-fill: inherit; 63 | -fx-fill: inherit; 64 | // white-space: pre-wrap; 65 | -fx-background-color: transparent; 66 | -fx-border-radius: 0; 67 | } 68 | } 69 | 70 | /* 71 | // Enable scrollable blocks of code 72 | .pre-scrollable { 73 | max-height: $pre-scrollable-max-height; 74 | overflow-y: scroll; 75 | } 76 | */ 77 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_component-animations.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `.opacity()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552. 9 | 10 | .fade { 11 | opacity: 0; 12 | @include transition(opacity .15s linear); 13 | &.in { 14 | opacity: 1; 15 | } 16 | } 17 | 18 | .collapse { 19 | display: none; 20 | 21 | &.in { display: block; } 22 | // [converter] extracted tr&.in to tr.collapse.in 23 | // [converter] extracted tbody&.in to tbody.collapse.in 24 | } 25 | 26 | tr.collapse.in { display: table-row; } 27 | 28 | tbody.collapse.in { display: table-row-group; } 29 | 30 | .collapsing { 31 | position: relative; 32 | height: 0; 33 | overflow: hidden; 34 | @include transition-property(height, visibility); 35 | @include transition-duration(.35s); 36 | @include transition-timing-function(ease); 37 | } 38 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_dropdowns.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Dropdown menus 3 | // -------------------------------------------------- 4 | 5 | 6 | // Dropdown arrow/caret 7 | .caret { 8 | display: inline-block; 9 | width: 0; 10 | height: 0; 11 | margin-left: 2px; 12 | vertical-align: middle; 13 | border-top: $caret-width-base dashed; 14 | border-top: $caret-width-base solid \9; // IE8 15 | border-right: $caret-width-base solid transparent; 16 | border-left: $caret-width-base solid transparent; 17 | } 18 | 19 | // The dropdown wrapper (div) 20 | .dropup, 21 | .dropdown { 22 | position: relative; 23 | } 24 | 25 | // Prevent the focus on the dropdown toggle when closing dropdowns 26 | .dropdown-toggle:focus { 27 | outline: 0; 28 | } 29 | 30 | // The dropdown menu (ul) 31 | .dropdown-menu { 32 | position: absolute; 33 | top: 100%; 34 | left: 0; 35 | z-index: $zindex-dropdown; 36 | display: none; // none by default, but block on "open" of the menu 37 | float: left; 38 | min-width: 160px; 39 | padding: 5px 0; 40 | margin: 2px 0 0; // override default ul 41 | list-style: none; 42 | font-size: $font-size-base; 43 | text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer) 44 | background-color: $dropdown-bg; 45 | border: 1px solid $dropdown-fallback-border; // IE8 fallback 46 | border: 1px solid $dropdown-border; 47 | border-radius: $border-radius-base; 48 | @include box-shadow(0 6px 12px rgba(0,0,0,.175)); 49 | background-clip: padding-box; 50 | 51 | // Aligns the dropdown menu to right 52 | // 53 | // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]` 54 | &.pull-right { 55 | right: 0; 56 | left: auto; 57 | } 58 | 59 | // Dividers (basically an hr) within the dropdown 60 | .divider { 61 | @include nav-divider($dropdown-divider-bg); 62 | } 63 | 64 | // Links within the dropdown menu 65 | > li > a { 66 | display: block; 67 | padding: 3px 20px; 68 | clear: both; 69 | font-weight: normal; 70 | line-height: $line-height-base; 71 | color: $dropdown-link-color; 72 | white-space: nowrap; // prevent links from randomly breaking onto new lines 73 | } 74 | } 75 | 76 | // Hover/Focus state 77 | .dropdown-menu > li > a { 78 | &:hover, 79 | &:focus { 80 | text-decoration: none; 81 | color: $dropdown-link-hover-color; 82 | background-color: $dropdown-link-hover-bg; 83 | } 84 | } 85 | 86 | // Active state 87 | .dropdown-menu > .active > a { 88 | &, 89 | &:hover, 90 | &:focus { 91 | color: $dropdown-link-active-color; 92 | text-decoration: none; 93 | outline: 0; 94 | background-color: $dropdown-link-active-bg; 95 | } 96 | } 97 | 98 | // Disabled state 99 | // 100 | // Gray out text and ensure the hover/focus state remains gray 101 | 102 | .dropdown-menu > .disabled > a { 103 | &, 104 | &:hover, 105 | &:focus { 106 | color: $dropdown-link-disabled-color; 107 | } 108 | 109 | // Nuke hover/focus effects 110 | &:hover, 111 | &:focus { 112 | text-decoration: none; 113 | background-color: transparent; 114 | background-image: none; // Remove CSS gradient 115 | @include reset-filter; 116 | cursor: $cursor-disabled; 117 | } 118 | } 119 | 120 | // Open state for the dropdown 121 | .open { 122 | // Show the menu 123 | > .dropdown-menu { 124 | display: block; 125 | } 126 | 127 | // Remove the outline when :focus is triggered 128 | > a { 129 | outline: 0; 130 | } 131 | } 132 | 133 | // Menu positioning 134 | // 135 | // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown 136 | // menu with the parent. 137 | .dropdown-menu-right { 138 | left: auto; // Reset the default from `.dropdown-menu` 139 | right: 0; 140 | } 141 | // With v3, we enabled auto-flipping if you have a dropdown within a right 142 | // aligned nav component. To enable the undoing of that, we provide an override 143 | // to restore the default dropdown menu alignment. 144 | // 145 | // This is only for left-aligning a dropdown menu within a `.navbar-right` or 146 | // `.pull-right` nav component. 147 | .dropdown-menu-left { 148 | left: 0; 149 | right: auto; 150 | } 151 | 152 | // Dropdown section headers 153 | .dropdown-header { 154 | display: block; 155 | padding: 3px 20px; 156 | font-size: $font-size-small; 157 | line-height: $line-height-base; 158 | color: $dropdown-header-color; 159 | white-space: nowrap; // as with > li > a 160 | } 161 | 162 | // Backdrop to catch body clicks on mobile, etc. 163 | .dropdown-backdrop { 164 | position: fixed; 165 | left: 0; 166 | right: 0; 167 | bottom: 0; 168 | top: 0; 169 | z-index: ($zindex-dropdown - 10); 170 | } 171 | 172 | // Right aligned dropdowns 173 | .pull-right > .dropdown-menu { 174 | right: 0; 175 | left: auto; 176 | } 177 | 178 | // Allow for dropdowns to go bottom up (aka, dropup-menu) 179 | // 180 | // Just add .dropup after the standard .dropdown class and you're set, bro. 181 | // TODO: abstract this so that the navbar fixed styles are not placed here? 182 | 183 | .dropup, 184 | .navbar-fixed-bottom .dropdown { 185 | // Reverse the caret 186 | .caret { 187 | border-top: 0; 188 | border-bottom: $caret-width-base dashed; 189 | border-bottom: $caret-width-base solid \9; // IE8 190 | content: ""; 191 | } 192 | // Different positioning for bottom up menu 193 | .dropdown-menu { 194 | top: auto; 195 | bottom: 100%; 196 | margin-bottom: 2px; 197 | } 198 | } 199 | 200 | 201 | // Component alignment 202 | // 203 | // Reiterate per navbar.less and the modified component alignment there. 204 | 205 | @media (min-width: $grid-float-breakpoint) { 206 | .navbar-right { 207 | .dropdown-menu { 208 | right: 0; left: auto; 209 | } 210 | // Necessary for overrides of the default right aligned menu. 211 | // Will remove come v4 in all likelihood. 212 | .dropdown-menu-left { 213 | left: 0; right: auto; 214 | } 215 | } 216 | } 217 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_grid.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Grid system 3 | // -------------------------------------------------- 4 | 5 | 6 | // Container widths 7 | // 8 | // Set the container width, and override it for fixed navbars in media queries. 9 | 10 | .container { 11 | @include container-fixed; 12 | 13 | @media (min-width: $screen-sm-min) { 14 | width: $container-sm; 15 | } 16 | @media (min-width: $screen-md-min) { 17 | width: $container-md; 18 | } 19 | @media (min-width: $screen-lg-min) { 20 | width: $container-lg; 21 | } 22 | } 23 | 24 | 25 | // Fluid container 26 | // 27 | // Utilizes the mixin meant for fixed width containers, but without any defined 28 | // width for fluid, full width layouts. 29 | 30 | .container-fluid { 31 | @include container-fixed; 32 | } 33 | 34 | 35 | // Row 36 | // 37 | // Rows contain and clear the floats of your columns. 38 | 39 | .row { 40 | @include make-row; 41 | } 42 | 43 | 44 | // Columns 45 | // 46 | // Common styles for small and large grid columns 47 | 48 | @include make-grid-columns; 49 | 50 | 51 | // Extra small grid 52 | // 53 | // Columns, offsets, pushes, and pulls for extra small devices like 54 | // smartphones. 55 | 56 | @include make-grid(xs); 57 | 58 | 59 | // Small grid 60 | // 61 | // Columns, offsets, pushes, and pulls for the small device range, from phones 62 | // to tablets. 63 | 64 | @media (min-width: $screen-sm-min) { 65 | @include make-grid(sm); 66 | } 67 | 68 | 69 | // Medium grid 70 | // 71 | // Columns, offsets, pushes, and pulls for the desktop device range. 72 | 73 | @media (min-width: $screen-md-min) { 74 | @include make-grid(md); 75 | } 76 | 77 | 78 | // Large grid 79 | // 80 | // Columns, offsets, pushes, and pulls for the large desktop device range. 81 | 82 | @media (min-width: $screen-lg-min) { 83 | @include make-grid(lg); 84 | } 85 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_input-groups.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Input groups 3 | // -------------------------------------------------- 4 | 5 | // Base styles 6 | // ------------------------- 7 | .input-group { 8 | position: relative; // For dropdowns 9 | display: table; 10 | border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table 11 | 12 | // Undo padding and float of grid classes 13 | &[class*="col-"] { 14 | float: none; 15 | padding-left: 0; 16 | padding-right: 0; 17 | } 18 | 19 | .form-control { 20 | // Ensure that the input is always above the *appended* addon button for 21 | // proper border colors. 22 | position: relative; 23 | z-index: 2; 24 | 25 | // IE9 fubars the placeholder attribute in text inputs and the arrows on 26 | // select elements in input groups. To fix it, we float the input. Details: 27 | // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855 28 | float: left; 29 | 30 | width: 100%; 31 | margin-bottom: 0; 32 | } 33 | } 34 | 35 | // Sizing options 36 | // 37 | // Remix the default form control sizing classes into new ones for easier 38 | // manipulation. 39 | 40 | .input-group-lg > .form-control, 41 | .input-group-lg > .input-group-addon, 42 | .input-group-lg > .input-group-btn > .btn { 43 | @extend .input-lg; 44 | } 45 | .input-group-sm > .form-control, 46 | .input-group-sm > .input-group-addon, 47 | .input-group-sm > .input-group-btn > .btn { 48 | @extend .input-sm; 49 | } 50 | 51 | 52 | // Display as table-cell 53 | // ------------------------- 54 | .input-group-addon, 55 | .input-group-btn, 56 | .input-group .form-control { 57 | display: table-cell; 58 | 59 | &:not(:first-child):not(:last-child) { 60 | border-radius: 0; 61 | } 62 | } 63 | // Addon and addon wrapper for buttons 64 | .input-group-addon, 65 | .input-group-btn { 66 | width: 1%; 67 | white-space: nowrap; 68 | vertical-align: middle; // Match the inputs 69 | } 70 | 71 | // Text input groups 72 | // ------------------------- 73 | .input-group-addon { 74 | padding: $padding-base-vertical $padding-base-horizontal; 75 | font-size: $font-size-base; 76 | font-weight: normal; 77 | line-height: 1; 78 | color: $input-color; 79 | text-align: center; 80 | background-color: $input-group-addon-bg; 81 | border: 1px solid $input-group-addon-border-color; 82 | border-radius: $border-radius-base; 83 | 84 | // Sizing 85 | &.input-sm { 86 | padding: $padding-small-vertical $padding-small-horizontal; 87 | font-size: $font-size-small; 88 | border-radius: $border-radius-small; 89 | } 90 | &.input-lg { 91 | padding: $padding-large-vertical $padding-large-horizontal; 92 | font-size: $font-size-large; 93 | border-radius: $border-radius-large; 94 | } 95 | 96 | // Nuke default margins from checkboxes and radios to vertically center within. 97 | input[type="radio"], 98 | input[type="checkbox"] { 99 | margin-top: 0; 100 | } 101 | } 102 | 103 | // Reset rounded corners 104 | .input-group .form-control:first-child, 105 | .input-group-addon:first-child, 106 | .input-group-btn:first-child > .btn, 107 | .input-group-btn:first-child > .btn-group > .btn, 108 | .input-group-btn:first-child > .dropdown-toggle, 109 | .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), 110 | .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { 111 | @include border-right-radius(0); 112 | } 113 | .input-group-addon:first-child { 114 | border-right: 0; 115 | } 116 | .input-group .form-control:last-child, 117 | .input-group-addon:last-child, 118 | .input-group-btn:last-child > .btn, 119 | .input-group-btn:last-child > .btn-group > .btn, 120 | .input-group-btn:last-child > .dropdown-toggle, 121 | .input-group-btn:first-child > .btn:not(:first-child), 122 | .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { 123 | @include border-left-radius(0); 124 | } 125 | .input-group-addon:last-child { 126 | border-left: 0; 127 | } 128 | 129 | // Button input groups 130 | // ------------------------- 131 | .input-group-btn { 132 | position: relative; 133 | // Jankily prevent input button groups from wrapping with `white-space` and 134 | // `font-size` in combination with `inline-block` on buttons. 135 | font-size: 0; 136 | white-space: nowrap; 137 | 138 | // Negative margin for spacing, position for bringing hovered/focused/actived 139 | // element above the siblings. 140 | > .btn { 141 | position: relative; 142 | + .btn { 143 | margin-left: -1px; 144 | } 145 | // Bring the "active" button to the front 146 | &:hover, 147 | &:focus, 148 | &:active { 149 | z-index: 2; 150 | } 151 | } 152 | 153 | // Negative margin to only have a 1px border between the two 154 | &:first-child { 155 | > .btn, 156 | > .btn-group { 157 | margin-right: -1px; 158 | } 159 | } 160 | &:last-child { 161 | > .btn, 162 | > .btn-group { 163 | z-index: 2; 164 | margin-left: -1px; 165 | } 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_javafx.scss: -------------------------------------------------------------------------------- 1 | // 2 | // JavaFX specific 3 | // -------------------------------------------------- 4 | 5 | .tool-bar { 6 | -fx-background-color: white; 7 | -fx-border-color: transparent transparent $gray-lighter transparent; 8 | } 9 | 10 | .tool-bar:vertical { 11 | -fx-border-color: transparent $gray-lighter transparent transparent; 12 | -fx-background-insets: 0, 0 1 0 0; 13 | } 14 | 15 | .menu-item { 16 | -fx-min-width: 200; 17 | } 18 | 19 | .menu-item:focused { 20 | -fx-background-color: $progress-bg; 21 | } 22 | 23 | .menu-item:focused > * { 24 | -fx-text-fill: $gray-darker; 25 | } 26 | 27 | .menu-item:focused .arrow { 28 | -fx-background-color: $btn-default-color; 29 | } 30 | 31 | .check-menu-item:checked:hover > .left-container > .check, 32 | .check-menu-item:checked:focused > .left-container > .check, 33 | .radio-menu-item:checked:hover > .left-container > .radio, 34 | .radio-menu-item:checked:focused > .left-container > .radio { 35 | -fx-background-color: $btn-default-color; 36 | } 37 | 38 | .context-menu { 39 | -fx-border-radius: $border-radius-base; 40 | -fx-background-radius: $border-radius-base; 41 | -fx-border-color: #bebec0; 42 | } 43 | 44 | .context-menu > * { 45 | -fx-padding: 5 0 5 0; 46 | } 47 | 48 | .separator { 49 | -fx-padding: 5 0 5 0; 50 | } -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_jumbotron.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Jumbotron 3 | // -------------------------------------------------- 4 | 5 | 6 | .jumbotron { 7 | padding-top: $jumbotron-padding; 8 | padding-bottom: $jumbotron-padding; 9 | margin-bottom: $jumbotron-padding; 10 | color: $jumbotron-color; 11 | background-color: $jumbotron-bg; 12 | 13 | h1, 14 | .h1 { 15 | color: $jumbotron-heading-color; 16 | } 17 | 18 | p { 19 | margin-bottom: ($jumbotron-padding / 2); 20 | font-size: $jumbotron-font-size; 21 | font-weight: 200; 22 | } 23 | 24 | > hr { 25 | border-top-color: darken($jumbotron-bg, 10%); 26 | } 27 | 28 | .container &, 29 | .container-fluid & { 30 | border-radius: $border-radius-large; // Only round corners at higher resolutions if contained in a container 31 | } 32 | 33 | .container { 34 | max-width: 100%; 35 | } 36 | 37 | @media screen and (min-width: $screen-sm-min) { 38 | padding-top: ($jumbotron-padding * 1.6); 39 | padding-bottom: ($jumbotron-padding * 1.6); 40 | 41 | .container &, 42 | .container-fluid & { 43 | padding-left: ($jumbotron-padding * 2); 44 | padding-right: ($jumbotron-padding * 2); 45 | } 46 | 47 | h1, 48 | .h1 { 49 | font-size: $jumbotron-heading-font-size; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_labels.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Labels 3 | // -------------------------------------------------- 4 | 5 | .lbl { 6 | // display: inline; 7 | -fx-padding: .2em .6em .3em .6em; 8 | -fx-font-size: 75%; 9 | -fx-font-weight: bold; 10 | // line-height: 1; 11 | -fx-text-fill: $label-color; 12 | -fx-fill: $label-color; 13 | -fx-text-alignment: center; 14 | // white-space: nowrap; 15 | -fx-alignment: baseline-center; 16 | -fx-border-radius: .25em; 17 | -fx-background-radius: .25em; 18 | 19 | // [converter] extracted a& to a.label 20 | 21 | // Empty labels collapse automatically (not available in IE8) 22 | //&:empty { 23 | // display: none; 24 | //} 25 | 26 | // Quick fix for labels in buttons 27 | //.btn & { 28 | // position: relative; 29 | // top: -1px; 30 | //} 31 | } 32 | 33 | // Add hover effects, but only for links 34 | //a.label { 35 | // &:hover, 36 | // &:focus { 37 | // color: $label-link-hover-color; 38 | // text-decoration: none; 39 | // cursor: pointer; 40 | // } 41 | //} 42 | 43 | // Colors 44 | // Contextual variations (linked labels get darker on :hover) 45 | 46 | .lbl-default { 47 | @include label-variant($label-default-bg); 48 | } 49 | 50 | .lbl-primary { 51 | @include label-variant($label-primary-bg); 52 | } 53 | 54 | .lbl-success { 55 | @include label-variant($label-success-bg); 56 | } 57 | 58 | .lbl-info { 59 | @include label-variant($label-info-bg); 60 | } 61 | 62 | .lbl-warning { 63 | @include label-variant($label-warning-bg); 64 | } 65 | 66 | .lbl-danger { 67 | @include label-variant($label-danger-bg); 68 | } 69 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_list-group.scss: -------------------------------------------------------------------------------- 1 | // 2 | // List groups 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | // 8 | // Easily usable on
    ,
      , or
      . 9 | 10 | .list-group { 11 | // No need to set list-style: none; since .list-group-item is block level 12 | margin-bottom: 20px; 13 | padding-left: 0; // reset padding because ul and ol 14 | } 15 | 16 | 17 | // Individual list items 18 | // 19 | // Use on `li`s or `div`s within the `.list-group` parent. 20 | 21 | .list-group-item { 22 | position: relative; 23 | display: block; 24 | padding: 10px 15px; 25 | // Place the border on the list items and negative margin up for better styling 26 | margin-bottom: -1px; 27 | background-color: $list-group-bg; 28 | border: 1px solid $list-group-border; 29 | 30 | // Round the first and last items 31 | &:first-child { 32 | @include border-top-radius($list-group-border-radius); 33 | } 34 | &:last-child { 35 | margin-bottom: 0; 36 | @include border-bottom-radius($list-group-border-radius); 37 | } 38 | } 39 | 40 | 41 | // Interactive list items 42 | // 43 | // Use anchor or button elements instead of `li`s or `div`s to create interactive items. 44 | // Includes an extra `.active` modifier class for showing selected items. 45 | 46 | a.list-group-item, 47 | button.list-group-item { 48 | color: $list-group-link-color; 49 | 50 | .list-group-item-heading { 51 | color: $list-group-link-heading-color; 52 | } 53 | 54 | // Hover state 55 | &:hover, 56 | &:focus { 57 | text-decoration: none; 58 | color: $list-group-link-hover-color; 59 | background-color: $list-group-hover-bg; 60 | } 61 | } 62 | 63 | button.list-group-item { 64 | width: 100%; 65 | text-align: left; 66 | } 67 | 68 | .list-group-item { 69 | // Disabled state 70 | &.disabled, 71 | &.disabled:hover, 72 | &.disabled:focus { 73 | background-color: $list-group-disabled-bg; 74 | color: $list-group-disabled-color; 75 | cursor: $cursor-disabled; 76 | 77 | // Force color to inherit for custom content 78 | .list-group-item-heading { 79 | color: inherit; 80 | } 81 | .list-group-item-text { 82 | color: $list-group-disabled-text-color; 83 | } 84 | } 85 | 86 | // Active class on item itself, not parent 87 | &.active, 88 | &.active:hover, 89 | &.active:focus { 90 | z-index: 2; // Place active items above their siblings for proper border styling 91 | color: $list-group-active-color; 92 | background-color: $list-group-active-bg; 93 | border-color: $list-group-active-border; 94 | 95 | // Force color to inherit for custom content 96 | .list-group-item-heading, 97 | .list-group-item-heading > small, 98 | .list-group-item-heading > .small { 99 | color: inherit; 100 | } 101 | .list-group-item-text { 102 | color: $list-group-active-text-color; 103 | } 104 | } 105 | } 106 | 107 | 108 | // Contextual variants 109 | // 110 | // Add modifier classes to change text and background color on individual items. 111 | // Organizationally, this must come after the `:hover` states. 112 | 113 | @include list-group-item-variant(success, $state-success-bg, $state-success-text); 114 | @include list-group-item-variant(info, $state-info-bg, $state-info-text); 115 | @include list-group-item-variant(warning, $state-warning-bg, $state-warning-text); 116 | @include list-group-item-variant(danger, $state-danger-bg, $state-danger-text); 117 | 118 | 119 | // Custom content options 120 | // 121 | // Extra classes for creating well-formatted content within `.list-group-item`s. 122 | 123 | .list-group-item-heading { 124 | margin-top: 0; 125 | margin-bottom: 5px; 126 | } 127 | .list-group-item-text { 128 | margin-bottom: 0; 129 | line-height: 1.3; 130 | } 131 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_media.scss: -------------------------------------------------------------------------------- 1 | .media { 2 | // Proper spacing between instances of .media 3 | margin-top: 15px; 4 | 5 | &:first-child { 6 | margin-top: 0; 7 | } 8 | } 9 | 10 | .media, 11 | .media-body { 12 | zoom: 1; 13 | overflow: hidden; 14 | } 15 | 16 | .media-body { 17 | width: 10000px; 18 | } 19 | 20 | .media-object { 21 | display: block; 22 | 23 | // Fix collapse in webkit from max-width: 100% and display: table-cell. 24 | &.img-thumbnail { 25 | max-width: none; 26 | } 27 | } 28 | 29 | .media-right, 30 | .media > .pull-right { 31 | padding-left: 10px; 32 | } 33 | 34 | .media-left, 35 | .media > .pull-left { 36 | padding-right: 10px; 37 | } 38 | 39 | .media-left, 40 | .media-right, 41 | .media-body { 42 | display: table-cell; 43 | vertical-align: top; 44 | } 45 | 46 | .media-middle { 47 | vertical-align: middle; 48 | } 49 | 50 | .media-bottom { 51 | vertical-align: bottom; 52 | } 53 | 54 | // Reset margins on headings for tighter default spacing 55 | .media-heading { 56 | margin-top: 0; 57 | margin-bottom: 5px; 58 | } 59 | 60 | // Media list variation 61 | // 62 | // Undo default ul/ol styles 63 | .media-list { 64 | padding-left: 0; 65 | list-style: none; 66 | } 67 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_mixins.scss: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------------------------------- 3 | 4 | // Utilities 5 | //@import "mixins/hide-text"; 6 | @import "mixins/opacity"; 7 | //@import "mixins/image"; 8 | @import "mixins/labels"; 9 | //@import "mixins/reset-filter"; 10 | //@import "mixins/resize"; 11 | //@import "mixins/responsive-visibility"; 12 | //@import "mixins/size"; 13 | //@import "mixins/tab-focus"; 14 | //@import "mixins/reset-text"; 15 | @import "mixins/text-emphasis"; 16 | //@import "mixins/text-overflow"; 17 | //@import "mixins/vendor-prefixes"; 18 | @import "mixins/shadow"; 19 | 20 | // Components 21 | @import "mixins/alerts"; 22 | @import "mixins/buttons"; 23 | @import "mixins/panels"; 24 | //@import "mixins/pagination"; 25 | //@import "mixins/list-group"; 26 | //@import "mixins/nav-divider"; 27 | //@import "mixins/forms"; 28 | @import "mixins/progress-bar"; 29 | @import "mixins/tooltip"; 30 | //@import "mixins/table-row"; 31 | 32 | // Skins 33 | @import "mixins/background-variant"; 34 | @import "mixins/border-radius"; 35 | //@import "mixins/gradients"; 36 | 37 | // Layout 38 | //@import "mixins/clearfix"; 39 | //@import "mixins/center-block"; 40 | //@import "mixins/nav-vertical-align"; 41 | //@import "mixins/grid-framework"; 42 | //@import "mixins/grid"; 43 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_modals.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Modals 3 | // -------------------------------------------------- 4 | 5 | // .modal-open - body class for killing the scroll 6 | // .modal - container to scroll within 7 | // .modal-dialog - positioning shell for the actual modal 8 | // .modal-content - actual modal w/ bg and corners and shit 9 | 10 | // Kill the scroll on the body 11 | .modal-open { 12 | overflow: hidden; 13 | } 14 | 15 | // Container that the modal scrolls within 16 | .modal { 17 | display: none; 18 | overflow: hidden; 19 | position: fixed; 20 | top: 0; 21 | right: 0; 22 | bottom: 0; 23 | left: 0; 24 | z-index: $zindex-modal; 25 | -webkit-overflow-scrolling: touch; 26 | 27 | // Prevent Chrome on Windows from adding a focus outline. For details, see 28 | // https://github.com/twbs/bootstrap/pull/10951. 29 | outline: 0; 30 | 31 | // When fading in the modal, animate it to slide down 32 | &.fade .modal-dialog { 33 | @include translate(0, -25%); 34 | @include transition-transform(0.3s ease-out); 35 | } 36 | &.in .modal-dialog { @include translate(0, 0) } 37 | } 38 | .modal-open .modal { 39 | overflow-x: hidden; 40 | overflow-y: auto; 41 | } 42 | 43 | // Shell div to position the modal with bottom padding 44 | .modal-dialog { 45 | position: relative; 46 | width: auto; 47 | margin: 10px; 48 | } 49 | 50 | // Actual modal 51 | .modal-content { 52 | position: relative; 53 | background-color: $modal-content-bg; 54 | border: 1px solid $modal-content-fallback-border-color; //old browsers fallback (ie8 etc) 55 | border: 1px solid $modal-content-border-color; 56 | border-radius: $border-radius-large; 57 | @include box-shadow(0 3px 9px rgba(0,0,0,.5)); 58 | background-clip: padding-box; 59 | // Remove focus outline from opened modal 60 | outline: 0; 61 | } 62 | 63 | // Modal background 64 | .modal-backdrop { 65 | position: fixed; 66 | top: 0; 67 | right: 0; 68 | bottom: 0; 69 | left: 0; 70 | z-index: $zindex-modal-background; 71 | background-color: $modal-backdrop-bg; 72 | // Fade for backdrop 73 | &.fade { @include opacity(0); } 74 | &.in { @include opacity($modal-backdrop-opacity); } 75 | } 76 | 77 | // Modal header 78 | // Top section of the modal w/ title and dismiss 79 | .modal-header { 80 | padding: $modal-title-padding; 81 | border-bottom: 1px solid $modal-header-border-color; 82 | min-height: ($modal-title-padding + $modal-title-line-height); 83 | } 84 | // Close icon 85 | .modal-header .close { 86 | margin-top: -2px; 87 | } 88 | 89 | // Title text within header 90 | .modal-title { 91 | margin: 0; 92 | line-height: $modal-title-line-height; 93 | } 94 | 95 | // Modal body 96 | // Where all modal content resides (sibling of .modal-header and .modal-footer) 97 | .modal-body { 98 | position: relative; 99 | padding: $modal-inner-padding; 100 | } 101 | 102 | // Footer (for actions) 103 | .modal-footer { 104 | padding: $modal-inner-padding; 105 | text-align: right; // right align buttons 106 | border-top: 1px solid $modal-footer-border-color; 107 | @include clearfix; // clear it in case folks use .pull-* classes on buttons 108 | 109 | // Properly space out buttons 110 | .btn + .btn { 111 | margin-left: 5px; 112 | margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs 113 | } 114 | // but override that for button groups 115 | .btn-group .btn + .btn { 116 | margin-left: -1px; 117 | } 118 | // and override it for block buttons as well 119 | .btn-block + .btn-block { 120 | margin-left: 0; 121 | } 122 | } 123 | 124 | // Measure scrollbar width for padding body during modal show/hide 125 | .modal-scrollbar-measure { 126 | position: absolute; 127 | top: -9999px; 128 | width: 50px; 129 | height: 50px; 130 | overflow: scroll; 131 | } 132 | 133 | // Scale up the modal 134 | @media (min-width: $screen-sm-min) { 135 | // Automatically set modal's width for larger viewports 136 | .modal-dialog { 137 | width: $modal-md; 138 | margin: 30px auto; 139 | } 140 | .modal-content { 141 | @include box-shadow(0 5px 15px rgba(0,0,0,.5)); 142 | } 143 | 144 | // Modal sizes 145 | .modal-sm { width: $modal-sm; } 146 | } 147 | 148 | @media (min-width: $screen-md-min) { 149 | .modal-lg { width: $modal-lg; } 150 | } 151 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_navs.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Navs 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | // -------------------------------------------------- 8 | 9 | .nav { 10 | margin-bottom: 0; 11 | padding-left: 0; // Override default ul/ol 12 | list-style: none; 13 | @include clearfix; 14 | 15 | > li { 16 | position: relative; 17 | display: block; 18 | 19 | > a { 20 | position: relative; 21 | display: block; 22 | padding: $nav-link-padding; 23 | &:hover, 24 | &:focus { 25 | text-decoration: none; 26 | background-color: $nav-link-hover-bg; 27 | } 28 | } 29 | 30 | // Disabled state sets text to gray and nukes hover/tab effects 31 | &.disabled > a { 32 | color: $nav-disabled-link-color; 33 | 34 | &:hover, 35 | &:focus { 36 | color: $nav-disabled-link-hover-color; 37 | text-decoration: none; 38 | background-color: transparent; 39 | cursor: $cursor-disabled; 40 | } 41 | } 42 | } 43 | 44 | // Open dropdowns 45 | .open > a { 46 | &, 47 | &:hover, 48 | &:focus { 49 | background-color: $nav-link-hover-bg; 50 | border-color: $link-color; 51 | } 52 | } 53 | 54 | // Nav dividers (deprecated with v3.0.1) 55 | // 56 | // This should have been removed in v3 with the dropping of `.nav-list`, but 57 | // we missed it. We don't currently support this anywhere, but in the interest 58 | // of maintaining backward compatibility in case you use it, it's deprecated. 59 | .nav-divider { 60 | @include nav-divider; 61 | } 62 | 63 | // Prevent IE8 from misplacing imgs 64 | // 65 | // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989 66 | > li > a > img { 67 | max-width: none; 68 | } 69 | } 70 | 71 | 72 | // Tabs 73 | // ------------------------- 74 | 75 | // Give the tabs something to sit on 76 | .nav-tabs { 77 | border-bottom: 1px solid $nav-tabs-border-color; 78 | > li { 79 | float: left; 80 | // Make the list-items overlay the bottom border 81 | margin-bottom: -1px; 82 | 83 | // Actual tabs (as links) 84 | > a { 85 | margin-right: 2px; 86 | line-height: $line-height-base; 87 | border: 1px solid transparent; 88 | border-radius: $border-radius-base $border-radius-base 0 0; 89 | &:hover { 90 | border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color; 91 | } 92 | } 93 | 94 | // Active state, and its :hover to override normal :hover 95 | &.active > a { 96 | &, 97 | &:hover, 98 | &:focus { 99 | color: $nav-tabs-active-link-hover-color; 100 | background-color: $nav-tabs-active-link-hover-bg; 101 | border: 1px solid $nav-tabs-active-link-hover-border-color; 102 | border-bottom-color: transparent; 103 | cursor: default; 104 | } 105 | } 106 | } 107 | // pulling this in mainly for less shorthand 108 | &.nav-justified { 109 | @extend .nav-justified; 110 | @extend .nav-tabs-justified; 111 | } 112 | } 113 | 114 | 115 | // Pills 116 | // ------------------------- 117 | .nav-pills { 118 | > li { 119 | float: left; 120 | 121 | // Links rendered as pills 122 | > a { 123 | border-radius: $nav-pills-border-radius; 124 | } 125 | + li { 126 | margin-left: 2px; 127 | } 128 | 129 | // Active state 130 | &.active > a { 131 | &, 132 | &:hover, 133 | &:focus { 134 | color: $nav-pills-active-link-hover-color; 135 | background-color: $nav-pills-active-link-hover-bg; 136 | } 137 | } 138 | } 139 | } 140 | 141 | 142 | // Stacked pills 143 | .nav-stacked { 144 | > li { 145 | float: none; 146 | + li { 147 | margin-top: 2px; 148 | margin-left: 0; // no need for this gap between nav items 149 | } 150 | } 151 | } 152 | 153 | 154 | // Nav variations 155 | // -------------------------------------------------- 156 | 157 | // Justified nav links 158 | // ------------------------- 159 | 160 | .nav-justified { 161 | width: 100%; 162 | 163 | > li { 164 | float: none; 165 | > a { 166 | text-align: center; 167 | margin-bottom: 5px; 168 | } 169 | } 170 | 171 | > .dropdown .dropdown-menu { 172 | top: auto; 173 | left: auto; 174 | } 175 | 176 | @media (min-width: $screen-sm-min) { 177 | > li { 178 | display: table-cell; 179 | width: 1%; 180 | > a { 181 | margin-bottom: 0; 182 | } 183 | } 184 | } 185 | } 186 | 187 | // Move borders to anchors instead of bottom of list 188 | // 189 | // Mixin for adding on top the shared `.nav-justified` styles for our tabs 190 | .nav-tabs-justified { 191 | border-bottom: 0; 192 | 193 | > li > a { 194 | // Override margin from .nav-tabs 195 | margin-right: 0; 196 | border-radius: $border-radius-base; 197 | } 198 | 199 | > .active > a, 200 | > .active > a:hover, 201 | > .active > a:focus { 202 | border: 1px solid $nav-tabs-justified-link-border-color; 203 | } 204 | 205 | @media (min-width: $screen-sm-min) { 206 | > li > a { 207 | border-bottom: 1px solid $nav-tabs-justified-link-border-color; 208 | border-radius: $border-radius-base $border-radius-base 0 0; 209 | } 210 | > .active > a, 211 | > .active > a:hover, 212 | > .active > a:focus { 213 | border-bottom-color: $nav-tabs-justified-active-link-border-color; 214 | } 215 | } 216 | } 217 | 218 | 219 | // Tabbable tabs 220 | // ------------------------- 221 | 222 | // Hide tabbable panes to start, show them when `.active` 223 | .tab-content { 224 | > .tab-pane { 225 | display: none; 226 | } 227 | > .active { 228 | display: block; 229 | } 230 | } 231 | 232 | 233 | // Dropdowns 234 | // ------------------------- 235 | 236 | // Specific dropdowns 237 | .nav-tabs .dropdown-menu { 238 | // make dropdown border overlap tab border 239 | margin-top: -1px; 240 | // Remove the top rounded corners here since there is a hard edge above the menu 241 | @include border-top-radius(0); 242 | } 243 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_pager.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Pager pagination 3 | // -------------------------------------------------- 4 | 5 | 6 | .pager { 7 | padding-left: 0; 8 | margin: $line-height-computed 0; 9 | list-style: none; 10 | text-align: center; 11 | @include clearfix; 12 | li { 13 | display: inline; 14 | > a, 15 | > span { 16 | display: inline-block; 17 | padding: 5px 14px; 18 | background-color: $pager-bg; 19 | border: 1px solid $pager-border; 20 | border-radius: $pager-border-radius; 21 | } 22 | 23 | > a:hover, 24 | > a:focus { 25 | text-decoration: none; 26 | background-color: $pager-hover-bg; 27 | } 28 | } 29 | 30 | .next { 31 | > a, 32 | > span { 33 | float: right; 34 | } 35 | } 36 | 37 | .previous { 38 | > a, 39 | > span { 40 | float: left; 41 | } 42 | } 43 | 44 | .disabled { 45 | > a, 46 | > a:hover, 47 | > a:focus, 48 | > span { 49 | color: $pager-disabled-color; 50 | background-color: $pager-bg; 51 | cursor: $cursor-disabled; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_pagination.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Pagination (multiple pages) 3 | // -------------------------------------------------- 4 | .pagination { 5 | display: inline-block; 6 | padding-left: 0; 7 | margin: $line-height-computed 0; 8 | border-radius: $border-radius-base; 9 | 10 | > li { 11 | display: inline; // Remove list-style and block-level defaults 12 | > a, 13 | > span { 14 | position: relative; 15 | float: left; // Collapse white-space 16 | padding: $padding-base-vertical $padding-base-horizontal; 17 | line-height: $line-height-base; 18 | text-decoration: none; 19 | color: $pagination-color; 20 | background-color: $pagination-bg; 21 | border: 1px solid $pagination-border; 22 | margin-left: -1px; 23 | } 24 | &:first-child { 25 | > a, 26 | > span { 27 | margin-left: 0; 28 | @include border-left-radius($border-radius-base); 29 | } 30 | } 31 | &:last-child { 32 | > a, 33 | > span { 34 | @include border-right-radius($border-radius-base); 35 | } 36 | } 37 | } 38 | 39 | > li > a, 40 | > li > span { 41 | &:hover, 42 | &:focus { 43 | z-index: 3; 44 | color: $pagination-hover-color; 45 | background-color: $pagination-hover-bg; 46 | border-color: $pagination-hover-border; 47 | } 48 | } 49 | 50 | > .active > a, 51 | > .active > span { 52 | &, 53 | &:hover, 54 | &:focus { 55 | z-index: 2; 56 | color: $pagination-active-color; 57 | background-color: $pagination-active-bg; 58 | border-color: $pagination-active-border; 59 | cursor: default; 60 | } 61 | } 62 | 63 | > .disabled { 64 | > span, 65 | > span:hover, 66 | > span:focus, 67 | > a, 68 | > a:hover, 69 | > a:focus { 70 | color: $pagination-disabled-color; 71 | background-color: $pagination-disabled-bg; 72 | border-color: $pagination-disabled-border; 73 | cursor: $cursor-disabled; 74 | } 75 | } 76 | } 77 | 78 | // Sizing 79 | // -------------------------------------------------- 80 | 81 | // Large 82 | .pagination-lg { 83 | @include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large); 84 | } 85 | 86 | // Small 87 | .pagination-sm { 88 | @include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small); 89 | } 90 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_popovers.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Popovers 3 | // -------------------------------------------------- 4 | 5 | 6 | .popover { 7 | position: absolute; 8 | top: 0; 9 | left: 0; 10 | z-index: $zindex-popover; 11 | display: none; 12 | max-width: $popover-max-width; 13 | padding: 1px; 14 | // Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element. 15 | // So reset our font and text properties to avoid inheriting weird values. 16 | @include reset-text; 17 | font-size: $font-size-base; 18 | 19 | background-color: $popover-bg; 20 | background-clip: padding-box; 21 | border: 1px solid $popover-fallback-border-color; 22 | border: 1px solid $popover-border-color; 23 | border-radius: $border-radius-large; 24 | @include box-shadow(0 5px 10px rgba(0,0,0,.2)); 25 | 26 | // Offset the popover to account for the popover arrow 27 | &.top { margin-top: -$popover-arrow-width; } 28 | &.right { margin-left: $popover-arrow-width; } 29 | &.bottom { margin-top: $popover-arrow-width; } 30 | &.left { margin-left: -$popover-arrow-width; } 31 | } 32 | 33 | .popover-title { 34 | margin: 0; // reset heading margin 35 | padding: 8px 14px; 36 | font-size: $font-size-base; 37 | background-color: $popover-title-bg; 38 | border-bottom: 1px solid darken($popover-title-bg, 5%); 39 | border-radius: ($border-radius-large - 1) ($border-radius-large - 1) 0 0; 40 | } 41 | 42 | .popover-content { 43 | padding: 9px 14px; 44 | } 45 | 46 | // Arrows 47 | // 48 | // .arrow is outer, .arrow:after is inner 49 | 50 | .popover > .arrow { 51 | &, 52 | &:after { 53 | position: absolute; 54 | display: block; 55 | width: 0; 56 | height: 0; 57 | border-color: transparent; 58 | border-style: solid; 59 | } 60 | } 61 | .popover > .arrow { 62 | border-width: $popover-arrow-outer-width; 63 | } 64 | .popover > .arrow:after { 65 | border-width: $popover-arrow-width; 66 | content: ""; 67 | } 68 | 69 | .popover { 70 | &.top > .arrow { 71 | left: 50%; 72 | margin-left: -$popover-arrow-outer-width; 73 | border-bottom-width: 0; 74 | border-top-color: $popover-arrow-outer-fallback-color; // IE8 fallback 75 | border-top-color: $popover-arrow-outer-color; 76 | bottom: -$popover-arrow-outer-width; 77 | &:after { 78 | content: " "; 79 | bottom: 1px; 80 | margin-left: -$popover-arrow-width; 81 | border-bottom-width: 0; 82 | border-top-color: $popover-arrow-color; 83 | } 84 | } 85 | &.right > .arrow { 86 | top: 50%; 87 | left: -$popover-arrow-outer-width; 88 | margin-top: -$popover-arrow-outer-width; 89 | border-left-width: 0; 90 | border-right-color: $popover-arrow-outer-fallback-color; // IE8 fallback 91 | border-right-color: $popover-arrow-outer-color; 92 | &:after { 93 | content: " "; 94 | left: 1px; 95 | bottom: -$popover-arrow-width; 96 | border-left-width: 0; 97 | border-right-color: $popover-arrow-color; 98 | } 99 | } 100 | &.bottom > .arrow { 101 | left: 50%; 102 | margin-left: -$popover-arrow-outer-width; 103 | border-top-width: 0; 104 | border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback 105 | border-bottom-color: $popover-arrow-outer-color; 106 | top: -$popover-arrow-outer-width; 107 | &:after { 108 | content: " "; 109 | top: 1px; 110 | margin-left: -$popover-arrow-width; 111 | border-top-width: 0; 112 | border-bottom-color: $popover-arrow-color; 113 | } 114 | } 115 | 116 | &.left > .arrow { 117 | top: 50%; 118 | right: -$popover-arrow-outer-width; 119 | margin-top: -$popover-arrow-outer-width; 120 | border-right-width: 0; 121 | border-left-color: $popover-arrow-outer-fallback-color; // IE8 fallback 122 | border-left-color: $popover-arrow-outer-color; 123 | &:after { 124 | content: " "; 125 | right: 1px; 126 | border-right-width: 0; 127 | border-left-color: $popover-arrow-color; 128 | bottom: -$popover-arrow-width; 129 | } 130 | } 131 | } 132 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_print.scss: -------------------------------------------------------------------------------- 1 | /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ 2 | 3 | // ========================================================================== 4 | // Print styles. 5 | // Inlined to avoid the additional HTTP request: h5bp.com/r 6 | // ========================================================================== 7 | 8 | @media print { 9 | *, 10 | *:before, 11 | *:after { 12 | background: transparent !important; 13 | color: #000 !important; // Black prints faster: h5bp.com/s 14 | box-shadow: none !important; 15 | text-shadow: none !important; 16 | } 17 | 18 | a, 19 | a:visited { 20 | text-decoration: underline; 21 | } 22 | 23 | a[href]:after { 24 | content: " (" attr(href) ")"; 25 | } 26 | 27 | abbr[title]:after { 28 | content: " (" attr(title) ")"; 29 | } 30 | 31 | // Don't show links that are fragment identifiers, 32 | // or use the `javascript:` pseudo protocol 33 | a[href^="#"]:after, 34 | a[href^="javascript:"]:after { 35 | content: ""; 36 | } 37 | 38 | pre, 39 | blockquote { 40 | border: 1px solid #999; 41 | page-break-inside: avoid; 42 | } 43 | 44 | thead { 45 | display: table-header-group; // h5bp.com/t 46 | } 47 | 48 | tr, 49 | img { 50 | page-break-inside: avoid; 51 | } 52 | 53 | img { 54 | max-width: 100% !important; 55 | } 56 | 57 | p, 58 | h2, 59 | h3 { 60 | orphans: 3; 61 | widows: 3; 62 | } 63 | 64 | h2, 65 | h3 { 66 | page-break-after: avoid; 67 | } 68 | 69 | // Bootstrap specific changes start 70 | 71 | // Bootstrap components 72 | .navbar { 73 | display: none; 74 | } 75 | .btn, 76 | .dropup > .btn { 77 | > .caret { 78 | border-top-color: #000 !important; 79 | } 80 | } 81 | .label { 82 | border: 1px solid #000; 83 | } 84 | 85 | .table { 86 | border-collapse: collapse !important; 87 | 88 | td, 89 | th { 90 | background-color: #fff !important; 91 | } 92 | } 93 | .table-bordered { 94 | th, 95 | td { 96 | border: 1px solid #ddd !important; 97 | } 98 | } 99 | 100 | // Bootstrap specific changes end 101 | } 102 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_progress-bars.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Progress bars 3 | // -------------------------------------------------- 4 | 5 | 6 | // Bar animations 7 | // ------------------------- 8 | 9 | // WebKit 10 | // @-webkit-keyframes progress-bar-stripes { 11 | // from { background-position: 40px 0; } 12 | // to { background-position: 0 0; } 13 | // } 14 | // 15 | // // Spec and IE10+ 16 | // @keyframes progress-bar-stripes { 17 | // from { background-position: 40px 0; } 18 | // to { background-position: 0 0; } 19 | // } 20 | 21 | 22 | // Bar itself 23 | // ------------------------- 24 | 25 | // Outer container 26 | // .progress { 27 | // overflow: hidden; 28 | // height: $line-height-computed; 29 | // margin-bottom: $line-height-computed; 30 | // background-color: $progress-bg; 31 | // border-radius: $progress-border-radius; 32 | // @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1)); 33 | // } 34 | 35 | // Bar of progress 36 | // .progress-bar { 37 | // float: left; 38 | // width: 0%; 39 | // height: 100%; 40 | // font-size: $font-size-small; 41 | // line-height: $line-height-computed; 42 | // color: $progress-bar-color; 43 | // text-align: center; 44 | // background-color: $progress-bar-bg; 45 | // @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15)); 46 | // @include transition(width .6s ease); 47 | // } 48 | 49 | // Striped bars 50 | // 51 | // `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the 52 | // `.progress-bar-striped` class, which you just add to an existing 53 | // `.progress-bar`. 54 | // .progress-striped .progress-bar, 55 | // .progress-bar-striped { 56 | // @include gradient-striped; 57 | // background-size: 40px 40px; 58 | // } 59 | 60 | // Call animation for the active one 61 | // 62 | // `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the 63 | // `.progress-bar.active` approach. 64 | // .progress.active .progress-bar, 65 | // .progress-bar.active { 66 | // @include animation(progress-bar-stripes 2s linear infinite); 67 | // } 68 | 69 | 70 | // Variations 71 | // ------------------------- 72 | 73 | .progress-bar-primary { 74 | @include progress-bar-variant($progress-bar-bg); 75 | } 76 | 77 | .progress-bar-success { 78 | @include progress-bar-variant($progress-bar-success-bg); 79 | } 80 | 81 | .progress-bar-info { 82 | @include progress-bar-variant($progress-bar-info-bg); 83 | } 84 | 85 | .progress-bar-warning { 86 | @include progress-bar-variant($progress-bar-warning-bg); 87 | } 88 | 89 | .progress-bar-danger { 90 | @include progress-bar-variant($progress-bar-danger-bg); 91 | } 92 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_responsive-embed.scss: -------------------------------------------------------------------------------- 1 | // Embeds responsive 2 | // 3 | // Credit: Nicolas Gallagher and SUIT CSS. 4 | 5 | .embed-responsive { 6 | position: relative; 7 | display: block; 8 | height: 0; 9 | padding: 0; 10 | overflow: hidden; 11 | 12 | .embed-responsive-item, 13 | iframe, 14 | embed, 15 | object, 16 | video { 17 | position: absolute; 18 | top: 0; 19 | left: 0; 20 | bottom: 0; 21 | height: 100%; 22 | width: 100%; 23 | border: 0; 24 | } 25 | } 26 | 27 | // Modifier class for 16:9 aspect ratio 28 | .embed-responsive-16by9 { 29 | padding-bottom: 56.25%; 30 | } 31 | 32 | // Modifier class for 4:3 aspect ratio 33 | .embed-responsive-4by3 { 34 | padding-bottom: 75%; 35 | } 36 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_responsive-utilities.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Responsive: Utility classes 3 | // -------------------------------------------------- 4 | 5 | 6 | // IE10 in Windows (Phone) 8 7 | // 8 | // Support for responsive views via media queries is kind of borked in IE10, for 9 | // Surface/desktop in split view and for Windows Phone 8. This particular fix 10 | // must be accompanied by a snippet of JavaScript to sniff the user agent and 11 | // apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at 12 | // our Getting Started page for more information on this bug. 13 | // 14 | // For more information, see the following: 15 | // 16 | // Issue: https://github.com/twbs/bootstrap/issues/10497 17 | // Docs: http://getbootstrap.com/getting-started/#support-ie10-width 18 | // Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/ 19 | // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/ 20 | 21 | @at-root { 22 | @-ms-viewport { 23 | width: device-width; 24 | } 25 | } 26 | 27 | 28 | // Visibility utilities 29 | // Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0 30 | 31 | @include responsive-invisibility('.visible-xs'); 32 | @include responsive-invisibility('.visible-sm'); 33 | @include responsive-invisibility('.visible-md'); 34 | @include responsive-invisibility('.visible-lg'); 35 | 36 | .visible-xs-block, 37 | .visible-xs-inline, 38 | .visible-xs-inline-block, 39 | .visible-sm-block, 40 | .visible-sm-inline, 41 | .visible-sm-inline-block, 42 | .visible-md-block, 43 | .visible-md-inline, 44 | .visible-md-inline-block, 45 | .visible-lg-block, 46 | .visible-lg-inline, 47 | .visible-lg-inline-block { 48 | display: none !important; 49 | } 50 | 51 | @media (max-width: $screen-xs-max) { 52 | @include responsive-visibility('.visible-xs'); 53 | } 54 | .visible-xs-block { 55 | @media (max-width: $screen-xs-max) { 56 | display: block !important; 57 | } 58 | } 59 | .visible-xs-inline { 60 | @media (max-width: $screen-xs-max) { 61 | display: inline !important; 62 | } 63 | } 64 | .visible-xs-inline-block { 65 | @media (max-width: $screen-xs-max) { 66 | display: inline-block !important; 67 | } 68 | } 69 | 70 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { 71 | @include responsive-visibility('.visible-sm'); 72 | } 73 | .visible-sm-block { 74 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { 75 | display: block !important; 76 | } 77 | } 78 | .visible-sm-inline { 79 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { 80 | display: inline !important; 81 | } 82 | } 83 | .visible-sm-inline-block { 84 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { 85 | display: inline-block !important; 86 | } 87 | } 88 | 89 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) { 90 | @include responsive-visibility('.visible-md'); 91 | } 92 | .visible-md-block { 93 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) { 94 | display: block !important; 95 | } 96 | } 97 | .visible-md-inline { 98 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) { 99 | display: inline !important; 100 | } 101 | } 102 | .visible-md-inline-block { 103 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) { 104 | display: inline-block !important; 105 | } 106 | } 107 | 108 | @media (min-width: $screen-lg-min) { 109 | @include responsive-visibility('.visible-lg'); 110 | } 111 | .visible-lg-block { 112 | @media (min-width: $screen-lg-min) { 113 | display: block !important; 114 | } 115 | } 116 | .visible-lg-inline { 117 | @media (min-width: $screen-lg-min) { 118 | display: inline !important; 119 | } 120 | } 121 | .visible-lg-inline-block { 122 | @media (min-width: $screen-lg-min) { 123 | display: inline-block !important; 124 | } 125 | } 126 | 127 | @media (max-width: $screen-xs-max) { 128 | @include responsive-invisibility('.hidden-xs'); 129 | } 130 | 131 | @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) { 132 | @include responsive-invisibility('.hidden-sm'); 133 | } 134 | 135 | @media (min-width: $screen-md-min) and (max-width: $screen-md-max) { 136 | @include responsive-invisibility('.hidden-md'); 137 | } 138 | 139 | @media (min-width: $screen-lg-min) { 140 | @include responsive-invisibility('.hidden-lg'); 141 | } 142 | 143 | 144 | // Print utilities 145 | // 146 | // Media queries are placed on the inside to be mixin-friendly. 147 | 148 | // Note: Deprecated .visible-print as of v3.2.0 149 | 150 | @include responsive-invisibility('.visible-print'); 151 | 152 | @media print { 153 | @include responsive-visibility('.visible-print'); 154 | } 155 | .visible-print-block { 156 | display: none !important; 157 | 158 | @media print { 159 | display: block !important; 160 | } 161 | } 162 | .visible-print-inline { 163 | display: none !important; 164 | 165 | @media print { 166 | display: inline !important; 167 | } 168 | } 169 | .visible-print-inline-block { 170 | display: none !important; 171 | 172 | @media print { 173 | display: inline-block !important; 174 | } 175 | } 176 | 177 | @media print { 178 | @include responsive-invisibility('.hidden-print'); 179 | } 180 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_scaffolding.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Scaffolding 3 | // -------------------------------------------------- 4 | 5 | 6 | // Reset the box-sizing 7 | // 8 | // Heads up! This reset may cause conflicts with some third-party widgets. 9 | // For recommendations on resolving such conflicts, see 10 | // http://getbootstrap.com/getting-started/#third-box-sizing 11 | * { 12 | @include box-sizing(border-box); 13 | } 14 | *:before, 15 | *:after { 16 | @include box-sizing(border-box); 17 | } 18 | 19 | 20 | // Body reset 21 | 22 | html { 23 | font-size: 10px; 24 | -webkit-tap-highlight-color: rgba(0,0,0,0); 25 | } 26 | 27 | body { 28 | font-family: $font-family-base; 29 | font-size: $font-size-base; 30 | line-height: $line-height-base; 31 | color: $text-color; 32 | background-color: $body-bg; 33 | } 34 | 35 | // Reset fonts for relevant elements 36 | input, 37 | button, 38 | select, 39 | textarea { 40 | font-family: inherit; 41 | font-size: inherit; 42 | line-height: inherit; 43 | } 44 | 45 | 46 | // Links 47 | 48 | a { 49 | color: $link-color; 50 | text-decoration: none; 51 | 52 | &:hover, 53 | &:focus { 54 | color: $link-hover-color; 55 | text-decoration: $link-hover-decoration; 56 | } 57 | 58 | &:focus { 59 | @include tab-focus; 60 | } 61 | } 62 | 63 | 64 | // Figures 65 | // 66 | // We reset this here because previously Normalize had no `figure` margins. This 67 | // ensures we don't break anyone's use of the element. 68 | 69 | figure { 70 | margin: 0; 71 | } 72 | 73 | 74 | // Images 75 | 76 | img { 77 | vertical-align: middle; 78 | } 79 | 80 | // Responsive images (ensure images don't scale beyond their parents) 81 | .img-responsive { 82 | @include img-responsive; 83 | } 84 | 85 | // Rounded corners 86 | .img-rounded { 87 | border-radius: $border-radius-large; 88 | } 89 | 90 | // Image thumbnails 91 | // 92 | // Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`. 93 | .img-thumbnail { 94 | padding: $thumbnail-padding; 95 | line-height: $line-height-base; 96 | background-color: $thumbnail-bg; 97 | border: 1px solid $thumbnail-border; 98 | border-radius: $thumbnail-border-radius; 99 | @include transition(all .2s ease-in-out); 100 | 101 | // Keep them at most 100% wide 102 | @include img-responsive(inline-block); 103 | } 104 | 105 | // Perfect circle 106 | .img-circle { 107 | border-radius: 50%; // set radius in percents 108 | } 109 | 110 | 111 | // Horizontal rules 112 | 113 | hr { 114 | margin-top: $line-height-computed; 115 | margin-bottom: $line-height-computed; 116 | border: 0; 117 | border-top: 1px solid $hr-border; 118 | } 119 | 120 | 121 | // Only display content to screen readers 122 | // 123 | // See: http://a11yproject.com/posts/how-to-hide-content/ 124 | 125 | .sr-only { 126 | position: absolute; 127 | width: 1px; 128 | height: 1px; 129 | margin: -1px; 130 | padding: 0; 131 | overflow: hidden; 132 | clip: rect(0,0,0,0); 133 | border: 0; 134 | } 135 | 136 | // Use in conjunction with .sr-only to only display content when it's focused. 137 | // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 138 | // Credit: HTML5 Boilerplate 139 | 140 | .sr-only-focusable { 141 | &:active, 142 | &:focus { 143 | position: static; 144 | width: auto; 145 | height: auto; 146 | margin: 0; 147 | overflow: visible; 148 | clip: auto; 149 | } 150 | } 151 | 152 | 153 | // iOS "clickable elements" fix for role="button" 154 | // 155 | // Fixes "clickability" issue (and more generally, the firing of events such as focus as well) 156 | // for traditionally non-focusable elements with role="button" 157 | // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 158 | 159 | [role="button"] { 160 | cursor: pointer; 161 | } 162 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_tables.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Tables 3 | // -------------------------------------------------- 4 | 5 | 6 | table { 7 | -fx-background-color: $table-bg; 8 | } 9 | caption { 10 | padding-top: $table-cell-padding; 11 | padding-bottom: $table-cell-padding; 12 | -fx-text-fill: $text-muted; 13 | -fx-fill: $text-muted; 14 | -fx-text-alignment: left; 15 | } 16 | th { 17 | -fx-text-alignment: left; 18 | } 19 | 20 | 21 | // Baseline styles 22 | 23 | .table { 24 | //width: 100%; 25 | //max-width: 100%; 26 | -fx-max-width: 100%; 27 | // margin-bottom: $line-height-computed; 28 | // Cells 29 | > thead, 30 | > tbody, 31 | > tfoot { 32 | > tr { 33 | > th, 34 | > td { 35 | -fx-padding: $table-cell-padding; 36 | // line-height: $line-height-base; 37 | // vertical-align: top; 38 | // border-top: 1px solid $table-border-color; 39 | } 40 | } 41 | } 42 | // Bottom align for column headings 43 | > thead > tr > th { 44 | // vertical-align: bottom; 45 | // border-bottom: 2px solid $table-border-color; 46 | } 47 | // Remove top border from thead by default 48 | > caption + thead, 49 | > colgroup + thead, 50 | > thead:first-child { 51 | > tr:first-child { 52 | > th, 53 | > td { 54 | // border-top: 0; 55 | } 56 | } 57 | } 58 | // Account for multiple tbody instances 59 | > tbody + tbody { 60 | // border-top: 2px solid $table-border-color; 61 | } 62 | 63 | // Nesting 64 | .table { 65 | -fx-background-color: $body-bg; 66 | } 67 | } 68 | 69 | 70 | // Condensed table w/ half padding 71 | 72 | .table-condensed { 73 | > thead, 74 | > tbody, 75 | > tfoot { 76 | > tr { 77 | > th, 78 | > td { 79 | -fx-padding: $table-condensed-cell-padding; 80 | } 81 | } 82 | } 83 | } 84 | 85 | 86 | // Bordered version 87 | // 88 | // Add borders all around the table and between all the columns. 89 | 90 | .table-bordered { 91 | -fx-border-width: 1px; 92 | -fx-border-style: solid; 93 | -fx-border-color: $table-border-color; 94 | > thead, 95 | > tbody, 96 | > tfoot { 97 | > tr { 98 | > th, 99 | > td { 100 | -fx-border-width: 1px; 101 | -fx-border-style: solid; 102 | -fx-border-color: $table-border-color; 103 | } 104 | } 105 | } 106 | > thead > tr { 107 | > th, 108 | > td { 109 | // border-bottom-width: 2px; 110 | } 111 | } 112 | } 113 | 114 | 115 | // Zebra-striping 116 | // 117 | // Default zebra-stripe styles (alternating gray and transparent backgrounds) 118 | 119 | .table-striped { 120 | > tbody > tr:nth-of-type(odd) { 121 | -fx-background-color: $table-bg-accent; 122 | } 123 | } 124 | 125 | 126 | // Hover effect 127 | // 128 | // Placed here since it has to come after the potential zebra striping 129 | 130 | .table-hover { 131 | > tbody > tr:hover { 132 | -fx-background-color: $table-bg-hover; 133 | } 134 | } 135 | 136 | 137 | // Table cell sizing 138 | // 139 | // Reset default table behavior 140 | 141 | //table col[class*="col-"] { 142 | // position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623) 143 | // float: none; 144 | // display: table-column; 145 | //} 146 | //table { 147 | // td, 148 | // th { 149 | // &[class*="col-"] { 150 | // position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623) 151 | // float: none; 152 | // display: table-cell; 153 | // } 154 | // } 155 | //} 156 | 157 | 158 | // Table backgrounds 159 | // 160 | // Exact selectors below required to override `.table-striped` and prevent 161 | // inheritance to nested tables. 162 | 163 | // Generate the contextual variants 164 | @include table-row-variant('active', $table-bg-active); 165 | @include table-row-variant('success', $state-success-bg); 166 | @include table-row-variant('info', $state-info-bg); 167 | @include table-row-variant('warning', $state-warning-bg); 168 | @include table-row-variant('danger', $state-danger-bg); 169 | 170 | 171 | // Responsive tables 172 | // 173 | // Wrap your tables in `.table-responsive` and we'll make them mobile friendly 174 | // by enabling horizontal scrolling. Only applies <768px. Everything above that 175 | // will display normally. 176 | 177 | //.table-responsive { 178 | // overflow-x: auto; 179 | // min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837) 180 | // 181 | // @media screen and (max-width: $screen-xs-max) { 182 | // width: 100%; 183 | // margin-bottom: ($line-height-computed * 0.75); 184 | // overflow-y: hidden; 185 | // -ms-overflow-style: -ms-autohiding-scrollbar; 186 | // border: 1px solid $table-border-color; 187 | // 188 | // // Tighten up spacing 189 | // > .table { 190 | // margin-bottom: 0; 191 | // 192 | // // Ensure the content doesn't wrap 193 | // > thead, 194 | // > tbody, 195 | // > tfoot { 196 | // > tr { 197 | // > th, 198 | // > td { 199 | // white-space: nowrap; 200 | // } 201 | // } 202 | // } 203 | // } 204 | // 205 | // // Special overrides for the bordered tables 206 | // > .table-bordered { 207 | // border: 0; 208 | // 209 | // // Nuke the appropriate borders so that the parent can handle them 210 | // > thead, 211 | // > tbody, 212 | // > tfoot { 213 | // > tr { 214 | // > th:first-child, 215 | // > td:first-child { 216 | // border-left: 0; 217 | // } 218 | // > th:last-child, 219 | // > td:last-child { 220 | // border-right: 0; 221 | // } 222 | // } 223 | // } 224 | // 225 | // // Only nuke the last row's bottom-border in `tbody` and `tfoot` since 226 | // // chances are there will be only one `tr` in a `thead` and that would 227 | // // remove the border altogether. 228 | // > tbody, 229 | // > tfoot { 230 | // > tr:last-child { 231 | // > th, 232 | // > td { 233 | // border-bottom: 0; 234 | // } 235 | // } 236 | // } 237 | // 238 | // } 239 | // } 240 | //} 241 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_thumbnails.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Thumbnails 3 | // -------------------------------------------------- 4 | 5 | 6 | // Mixin and adjust the regular image class 7 | .thumbnail { 8 | display: block; 9 | padding: $thumbnail-padding; 10 | margin-bottom: $line-height-computed; 11 | line-height: $line-height-base; 12 | background-color: $thumbnail-bg; 13 | border: 1px solid $thumbnail-border; 14 | border-radius: $thumbnail-border-radius; 15 | @include transition(border .2s ease-in-out); 16 | 17 | > img, 18 | a > img { 19 | @include img-responsive; 20 | margin-left: auto; 21 | margin-right: auto; 22 | } 23 | 24 | // [converter] extracted a&:hover, a&:focus, a&.active to a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active 25 | 26 | // Image captions 27 | .caption { 28 | padding: $thumbnail-caption-padding; 29 | color: $thumbnail-caption-color; 30 | } 31 | } 32 | 33 | // Add a hover state for linked versions only 34 | a.thumbnail:hover, 35 | a.thumbnail:focus, 36 | a.thumbnail.active { 37 | border-color: $link-color; 38 | } 39 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_tooltip.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Tooltips 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .tooltip { 8 | position: absolute; 9 | z-index: $zindex-tooltip; 10 | display: block; 11 | // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element. 12 | // So reset our font and text properties to avoid inheriting weird values. 13 | @include reset-text; 14 | font-size: $font-size-small; 15 | 16 | @include opacity(0); 17 | 18 | &.in { @include opacity($tooltip-opacity); } 19 | &.top { margin-top: -3px; padding: $tooltip-arrow-width 0; } 20 | &.right { margin-left: 3px; padding: 0 $tooltip-arrow-width; } 21 | &.bottom { margin-top: 3px; padding: $tooltip-arrow-width 0; } 22 | &.left { margin-left: -3px; padding: 0 $tooltip-arrow-width; } 23 | } 24 | 25 | // Wrapper for the tooltip content 26 | .tooltip-inner { 27 | max-width: $tooltip-max-width; 28 | padding: 3px 8px; 29 | color: $tooltip-color; 30 | text-align: center; 31 | background-color: $tooltip-bg; 32 | border-radius: $border-radius-base; 33 | } 34 | 35 | // Arrows 36 | .tooltip-arrow { 37 | position: absolute; 38 | width: 0; 39 | height: 0; 40 | border-color: transparent; 41 | border-style: solid; 42 | } 43 | // Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1 44 | .tooltip { 45 | &.top .tooltip-arrow { 46 | bottom: 0; 47 | left: 50%; 48 | margin-left: -$tooltip-arrow-width; 49 | border-width: $tooltip-arrow-width $tooltip-arrow-width 0; 50 | border-top-color: $tooltip-arrow-color; 51 | } 52 | &.top-left .tooltip-arrow { 53 | bottom: 0; 54 | right: $tooltip-arrow-width; 55 | margin-bottom: -$tooltip-arrow-width; 56 | border-width: $tooltip-arrow-width $tooltip-arrow-width 0; 57 | border-top-color: $tooltip-arrow-color; 58 | } 59 | &.top-right .tooltip-arrow { 60 | bottom: 0; 61 | left: $tooltip-arrow-width; 62 | margin-bottom: -$tooltip-arrow-width; 63 | border-width: $tooltip-arrow-width $tooltip-arrow-width 0; 64 | border-top-color: $tooltip-arrow-color; 65 | } 66 | &.right .tooltip-arrow { 67 | top: 50%; 68 | left: 0; 69 | margin-top: -$tooltip-arrow-width; 70 | border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0; 71 | border-right-color: $tooltip-arrow-color; 72 | } 73 | &.left .tooltip-arrow { 74 | top: 50%; 75 | right: 0; 76 | margin-top: -$tooltip-arrow-width; 77 | border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width; 78 | border-left-color: $tooltip-arrow-color; 79 | } 80 | &.bottom .tooltip-arrow { 81 | top: 0; 82 | left: 50%; 83 | margin-left: -$tooltip-arrow-width; 84 | border-width: 0 $tooltip-arrow-width $tooltip-arrow-width; 85 | border-bottom-color: $tooltip-arrow-color; 86 | } 87 | &.bottom-left .tooltip-arrow { 88 | top: 0; 89 | right: $tooltip-arrow-width; 90 | margin-top: -$tooltip-arrow-width; 91 | border-width: 0 $tooltip-arrow-width $tooltip-arrow-width; 92 | border-bottom-color: $tooltip-arrow-color; 93 | } 94 | &.bottom-right .tooltip-arrow { 95 | top: 0; 96 | left: $tooltip-arrow-width; 97 | margin-top: -$tooltip-arrow-width; 98 | border-width: 0 $tooltip-arrow-width $tooltip-arrow-width; 99 | border-bottom-color: $tooltip-arrow-color; 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_tooltips.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Tooltips 3 | // -------------------------------------------------- 4 | 5 | // Variations 6 | // ------------------------- 7 | 8 | .tooltip-primary { 9 | @include tooltip-variant($brand-primary, $tooltip-border-color-primary); 10 | } 11 | 12 | .tooltip-success { 13 | @include tooltip-variant($brand-success, $tooltip-border-color-success); 14 | } 15 | 16 | .tooltip-info { 17 | @include tooltip-variant($brand-info, $tooltip-border-color-info); 18 | } 19 | 20 | .tooltip-warning { 21 | @include tooltip-variant($brand-warning, $tooltip-border-color-warning); 22 | } 23 | 24 | .tooltip-danger { 25 | @include tooltip-variant($brand-danger, $tooltip-border-color-danger); 26 | } 27 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_utilities.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Utility classes 3 | // -------------------------------------------------- 4 | 5 | 6 | // Floats 7 | // ------------------------- 8 | 9 | .clearfix { 10 | @include clearfix; 11 | } 12 | .center-block { 13 | @include center-block; 14 | } 15 | .pull-right { 16 | float: right !important; 17 | } 18 | .pull-left { 19 | float: left !important; 20 | } 21 | 22 | 23 | // Toggling content 24 | // ------------------------- 25 | 26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1 27 | .hide { 28 | display: none !important; 29 | } 30 | .show { 31 | display: block !important; 32 | } 33 | .invisible { 34 | visibility: hidden; 35 | } 36 | .text-hide { 37 | @include text-hide; 38 | } 39 | 40 | 41 | // Hide from screenreaders and browsers 42 | // 43 | // Credit: HTML5 Boilerplate 44 | 45 | .hidden { 46 | display: none !important; 47 | } 48 | 49 | 50 | // For Affix plugin 51 | // ------------------------- 52 | 53 | .affix { 54 | position: fixed; 55 | } 56 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/_wells.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Wells 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .well { 8 | min-height: 20px; 9 | padding: 19px; 10 | margin-bottom: 20px; 11 | background-color: $well-bg; 12 | border: 1px solid $well-border; 13 | border-radius: $border-radius-base; 14 | @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); 15 | blockquote { 16 | border-color: #ddd; 17 | border-color: rgba(0,0,0,.15); 18 | } 19 | } 20 | 21 | // Sizes 22 | .well-lg { 23 | padding: 24px; 24 | border-radius: $border-radius-large; 25 | } 26 | .well-sm { 27 | padding: 9px; 28 | border-radius: $border-radius-small; 29 | } 30 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/mixins/_alerts.scss: -------------------------------------------------------------------------------- 1 | // Alerts 2 | 3 | @mixin alert-variant($background, $border, $text-color) { 4 | -fx-background-color: linear-gradient(to bottom, $background 0px, darken($background, 7.5%) 100%); 5 | -fx-border-color: $border; 6 | -fx-text-fill: $text-color; 7 | -fx-fill: $text-color; 8 | 9 | * { 10 | -fx-background-color: transparent; 11 | -fx-text-fill: $text-color; 12 | -fx-fill: $text-color; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/mixins/_background-variant.scss: -------------------------------------------------------------------------------- 1 | // Contextual backgrounds 2 | 3 | // [converter] $parent hack 4 | @mixin bg-variant($parent, $color) { 5 | #{$parent} { 6 | -fx-background-color: $color; 7 | } 8 | a#{$parent}:hover, 9 | a#{$parent}:focused { 10 | --fxbackground-color: darken($color, 10%); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/mixins/_border-radius.scss: -------------------------------------------------------------------------------- 1 | // Single side border-radius 2 | 3 | // TODO: find a way to combine existing border values 4 | @mixin border-top-radius($radius) { 5 | // border-top-right-radius: $radius; 6 | // border-top-left-radius: $radius; 7 | -fx-border-radius: $radius, 0, 0, 0; 8 | } 9 | @mixin border-right-radius($radius) { 10 | // border-bottom-right-radius: $radius; 11 | // border-top-right-radius: $radius; 12 | -fx-border-radius: 0, 0, 0, $radius; 13 | } 14 | @mixin border-bottom-radius($radius) { 15 | // border-bottom-right-radius: $radius; 16 | // border-bottom-left-radius: $radius; 17 | -fx-border-radius: 0, 0, $radius, 0; 18 | } 19 | @mixin border-left-radius($radius) { 20 | // border-bottom-left-radius: $radius; 21 | // border-top-left-radius: $radius; 22 | -fx-border-radius: 0, $radius, 0, 0; 23 | } 24 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/mixins/_buttons.scss: -------------------------------------------------------------------------------- 1 | // Button variants 2 | // 3 | // Easily pump out default styles, as well as :hover, :focused, :pressed, 4 | // and disabled options for all buttons 5 | 6 | @mixin button-variant($color, $background, $border) { 7 | -fx-text-fill: $color; 8 | -fx-fill: $color; 9 | -fx-background-color: $background; 10 | -fx-border-color: $border; 11 | 12 | &:focused, 13 | &.focused { 14 | -fx-text-fill: $color; 15 | -fx-fill: $color; 16 | -fx-background-color: darken($background, 10%); 17 | -fx-border-color: darken($border, 25%); 18 | } 19 | &:hover { 20 | -fx-text-fill: $color; 21 | -fx-fill: $color; 22 | -fx-background-color: darken($background, 10%); 23 | -fx-border-color: darken($border, 12%); 24 | } 25 | &:pressed, 26 | &.pressed, 27 | .open > &.dropdown-toggle { 28 | -fx-text-fill: $color; 29 | -fx-fill: $color; 30 | -fx-background-color: darken($background, 10%); 31 | -fx-border-color: darken($border, 12%); 32 | 33 | &:hover, 34 | &:focused, 35 | &.focused { 36 | -fx-text-fill: $color; 37 | -fx-fill: $color; 38 | -fx-background-color: darken($background, 17%); 39 | -fx-border-color: darken($border, 25%); 40 | } 41 | } 42 | &:selected, 43 | &.selected { 44 | -fx-text-fill: $color; 45 | -fx-fill: $color; 46 | -fx-background-color: darken($background, 10%); 47 | -fx-border-color: darken($border, 12%); 48 | 49 | &:hover, 50 | &:focused, 51 | &.focused { 52 | -fx-text-fill: $color; 53 | -fx-fill: $color; 54 | -fx-background-color: darken($background, 17%); 55 | -fx-border-color: darken($border, 25%); 56 | } 57 | } 58 | &:pressed, 59 | &.pressed, 60 | .open > &.dropdown-toggle { 61 | background-image: none; 62 | } 63 | &.disabled, 64 | &[disabled], 65 | fieldset[disabled] & { 66 | &, 67 | &:hover, 68 | &:focused, 69 | &.focused, 70 | &:pressed, 71 | &.pressed { 72 | -fx-background-color: $background; 73 | -fx-border-color: $border; 74 | } 75 | } 76 | 77 | .badge { 78 | -fx-text-fill: $background; 79 | -fx-fill: $background; 80 | -fx-background-color: $color; 81 | } 82 | } 83 | 84 | // Button sizes 85 | @mixin button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) { 86 | -fx-padding: $padding-vertical $padding-horizontal $padding-vertical $padding-horizontal; 87 | -fx-font-size: $font-size; 88 | //line-height: $line-height; 89 | -fx-border-radius: $border-radius; 90 | -fx-background-radius: $border-radius; 91 | } 92 | 93 | @mixin split-menu-button-variant($color, $background, $border) { 94 | // -fx-text-fill: $color; 95 | // -fx-fill: $color; 96 | // -fx-background-color: $background; 97 | // -fx-border-color: $border; 98 | & > .arrow { 99 | -fx-text-fill: $color; 100 | -fx-fill: $color; 101 | } 102 | 103 | & > .label, 104 | & > .arrow-button { 105 | -fx-text-fill: $color; 106 | -fx-fill: $color; 107 | -fx-background-color: $background; 108 | -fx-border-color: $background; 109 | } 110 | 111 | &:focused, 112 | &.focused { 113 | & > .label, 114 | & > .arrow-button { 115 | -fx-text-fill: $color; 116 | -fx-fill: $color; 117 | -fx-background-color: darken($background, 10%); 118 | -fx-border-color: darken($border, 25%); 119 | } 120 | } 121 | &:hover { 122 | & > .label, 123 | & > .arrow-button { 124 | -fx-text-fill: $color; 125 | -fx-fill: $color; 126 | -fx-background-color: darken($background, 10%); 127 | -fx-border-color: darken($border, 12%); 128 | } 129 | } 130 | &:pressed, 131 | &.pressed, 132 | .open > &.dropdown-toggle { 133 | & > .label, 134 | & > .arrow-button { 135 | -fx-text-fill: $color; 136 | -fx-fill: $color; 137 | -fx-background-color: darken($background, 10%); 138 | -fx-border-color: darken($border, 12%); 139 | } 140 | 141 | &:hover, 142 | &:focused, 143 | &.focused { 144 | & > .label, 145 | & > .arrow-button { 146 | -fx-text-fill: $color; 147 | -fx-fill: $color; 148 | -fx-background-color: darken($background, 17%); 149 | -fx-border-color: darken($border, 25%); 150 | } 151 | } 152 | } 153 | &:selected, 154 | &.selected { 155 | & > .label, 156 | & > .arrow-button { 157 | -fx-text-fill: $color; 158 | -fx-fill: $color; 159 | -fx-background-color: darken($background, 10%); 160 | -fx-border-color: darken($border, 12%); 161 | } 162 | 163 | &:hover, 164 | &:focused, 165 | &.focused { 166 | & > .label, 167 | & > .arrow-button { 168 | -fx-text-fill: $color; 169 | -fx-fill: $color; 170 | -fx-background-color: darken($background, 17%); 171 | -fx-border-color: darken($border, 25%); 172 | } 173 | } 174 | } 175 | &:pressed, 176 | &.pressed, 177 | .open > &.dropdown-toggle { 178 | background-image: none; 179 | } 180 | &.disabled, 181 | &[disabled], 182 | fieldset[disabled] & { 183 | &, 184 | &:hover, 185 | &:focused, 186 | &.focused, 187 | &:pressed, 188 | &.pressed { 189 | & > .label, 190 | & > .arrow-button { 191 | -fx-background-color: $background; 192 | -fx-border-color: $border; 193 | } 194 | } 195 | } 196 | } 197 | 198 | @mixin split-menu-button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) { 199 | //-fx-padding: $padding-vertical $padding-horizontal $padding-vertical $padding-horizontal; 200 | -fx-font-size: $font-size; 201 | //line-height: $line-height; 202 | -fx-border-radius: $border-radius; 203 | -fx-background-radius: $border-radius; 204 | } -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/mixins/_center-block.scss: -------------------------------------------------------------------------------- 1 | // Center-align a block level element 2 | 3 | @mixin center-block() { 4 | display: block; 5 | margin-left: auto; 6 | margin-right: auto; 7 | } 8 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/mixins/_clearfix.scss: -------------------------------------------------------------------------------- 1 | // Clearfix 2 | // 3 | // For modern browsers 4 | // 1. The space content is one way to avoid an Opera bug when the 5 | // contenteditable attribute is included anywhere else in the document. 6 | // Otherwise it causes space to appear at the top and bottom of elements 7 | // that are clearfixed. 8 | // 2. The use of `table` rather than `block` is only necessary if using 9 | // `:before` to contain the top-margins of child elements. 10 | // 11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/ 12 | 13 | @mixin clearfix() { 14 | &:before, 15 | &:after { 16 | content: " "; // 1 17 | display: table; // 2 18 | } 19 | &:after { 20 | clear: both; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /subprojects/bootstrapfx-core/src/main/resources/org/kordamp/bootstrapfx/bootstrap/mixins/_forms.scss: -------------------------------------------------------------------------------- 1 | // Form validation states 2 | // 3 | // Used in forms.less to generate the form validation CSS for warnings, errors, 4 | // and successes. 5 | 6 | @mixin form-control-validation($text-color: #555, $border-color: #ccc, $background-color: #f5f5f5) { 7 | // Color the label and help text 8 | .help-block, 9 | .control-label, 10 | .radio, 11 | .checkbox, 12 | .radio-inline, 13 | .checkbox-inline, 14 | &.radio label, 15 | &.checkbox label, 16 | &.radio-inline label, 17 | &.checkbox-inline label { 18 | color: $text-color; 19 | } 20 | // Set the border and box shadow on specific inputs to match 21 | .form-control { 22 | border-color: $border-color; 23 | @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work 24 | &:focus { 25 | border-color: darken($border-color, 10%); 26 | $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($border-color, 20%); 27 | @include box-shadow($shadow); 28 | } 29 | } 30 | // Set validation states also for addons 31 | .input-group-addon { 32 | color: $text-color; 33 | border-color: $border-color; 34 | background-color: $background-color; 35 | } 36 | // Optional feedback icon 37 | .form-control-feedback { 38 | color: $text-color; 39 | } 40 | } 41 | 42 | 43 | // Form control focus state 44 | // 45 | // Generate a customized focus state and for any input with the specified color, 46 | // which defaults to the `$input-border-focus` variable. 47 | // 48 | // We highly encourage you to not customize the default value, but instead use 49 | // this to tweak colors on an as-needed basis. This aesthetic change is based on 50 | // WebKit's default styles, but applicable to a wider range of browsers. Its 51 | // usability and accessibility should be taken into account with any change. 52 | // 53 | // Example usage: change the default blue border and shadow to white for better 54 | // contrast against a dark gray background. 55 | @mixin form-control-focus($color: $input-border-focus) { 56 | $color-rgba: rgba(red($color), green($color), blue($color), .6); 57 | &:focus { 58 | border-color: $color; 59 | outline: 0; 60 | @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px $color-rgba); 61 | } 62 | } 63 | 64 | // Form control sizing 65 | // 66 | // Relative text size, padding, and border-radii changes for form controls. For 67 | // horizontal sizing, wrap controls in the predefined grid classes. `