diff --git a/README.md b/README.md index 4931215..4994e1c 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,11 @@ In order to use the image assets and svg icons included in this package you need The svg icons also needs to be converted into a [svg-sprite](https://css-tricks.com/svg-sprites-use-better-icon-fonts/) using [svgstore](https://github.com/svgstore/svgstore) or similar tool. ### Changelog +v6.7.0 +- Added new class `.form-tooltip`, `form-tooltip-text` +- Added svg `line-vector-export` and `line-vector-help` followed naming convention. +- Removed svg `vector` + v6.6.0 - Added media query `@media (forced-colors: active)` for `.form-control:focus` - Added new class `.required:after` diff --git a/assets/svg/icons/line-vector-export.svg b/assets/svg/icons/line-vector-export.svg new file mode 100644 index 0000000..4424318 --- /dev/null +++ b/assets/svg/icons/line-vector-export.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/svg/icons/line-vector-help.svg b/assets/svg/icons/line-vector-help.svg new file mode 100644 index 0000000..3345a84 --- /dev/null +++ b/assets/svg/icons/line-vector-help.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/svg/icons/vector.svg b/assets/svg/icons/vector.svg deleted file mode 100644 index e31089d..0000000 --- a/assets/svg/icons/vector.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 9dfc600..9587711 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@mojang/web-theme-bootstrap", - "version": "6.5.0", + "version": "6.7.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b5e4842..ade3577 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mojang/web-theme-bootstrap", - "version": "6.6.0", + "version": "6.7.0", "description": "Contains the theme used on minecraft.net based on Boostrap 4", "repository": { "type": "git", diff --git a/scss/components/_forms.scss b/scss/components/_forms.scss index 0ad2663..051c12c 100644 --- a/scss/components/_forms.scss +++ b/scss/components/_forms.scss @@ -30,6 +30,39 @@ $label-color: $scorpion; color: $red; } +.form-tooltip { + position: relative; + display: inline-block; +} + +.form-tooltip .form-tooltip-text { + visibility: hidden; + background-color: #F8F5F4; + color: #000000; + border-radius: 8px; + padding: 8px; + position: absolute; + width: 336px; + transform: translate(-50%, 32%); + z-index:1; + font-size:14px; + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); +} + +.form-tooltip .form-tooltip-text::after { + content: ""; + position: absolute; + bottom: 100%; + right: 50%; + border-width:8.66px; + border-style: solid; + border-color: transparent transparent #F8F5F4 transparent; +} + +.form-tooltip:hover .form-tooltip-text { + visibility: visible; +} + label { color: $label-color; font-size: 14px;