Skip to content

Commit

Permalink
Merge pull request #37 from Mojang/feature/main-6.7.0
Browse files Browse the repository at this point in the history
added 2 svg and styled tooltip for form
  • Loading branch information
sayalishewale-acn authored Oct 8, 2021
2 parents b338e64 + 7303def commit d5d4a19
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 8 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
4 changes: 4 additions & 0 deletions assets/svg/icons/line-vector-export.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/svg/icons/line-vector-help.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions assets/svg/icons/vector.svg

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
33 changes: 33 additions & 0 deletions scss/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5d4a19

Please sign in to comment.