Skip to content

Commit

Permalink
Merge pull request #594 from LINCnil/CU-1er0ccg_Petits-ajustements-di…
Browse files Browse the repository at this point in the history
…vers-aprs-retour-du-client

fix: add 3px margin on ico
  • Loading branch information
kevin-atnos authored Oct 15, 2021
2 parents 5b52eea + 6b94da2 commit 397b9b1
Showing 1 changed file with 65 additions and 61 deletions.
126 changes: 65 additions & 61 deletions src/assets/stylesheets/_tooltip.scss
Original file line number Diff line number Diff line change
@@ -1,68 +1,72 @@
.pia {
&-tooltip {
position: relative;
.pia-tooltip-text {
z-index: 999;
width: 70px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: none;
position: absolute;
top: 100%;
left: 50%;
margin-left: -35px;
background-color: $pia-green;
padding: 3px 5px;
color: #fff;
font-size: 1rem;
text-align: center;
height: auto;
line-height: normal;
box-shadow: 1px 1px 3px 1px rgb(204, 202, 204);
&:before {
content: '';
position: absolute;
background: url("~src/assets/images/sprites.png") no-repeat center center transparent;
top: -4px;
left: 50%;
margin-left: -3.5px;
width: 7px;
height: 5px;
background-position: -371px -93px;
}
}
&:focus, &:hover, &:active {
.pia-tooltip-text {
display: block;
}
}
&-tooltip {
position: relative;
margin: 0 3px;
.pia-tooltip-text {
z-index: 999;
width: 70px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: none;
position: absolute;
top: 100%;
left: 50%;
margin-left: -35px;
background-color: $pia-green;
padding: 3px 5px;
color: #fff;
font-size: 1rem;
text-align: center;
height: auto;
line-height: normal;
box-shadow: 1px 1px 3px 1px rgb(204, 202, 204);
&:before {
content: "";
position: absolute;
background: url("~src/assets/images/sprites.png") no-repeat center
center transparent;
top: -4px;
left: 50%;
margin-left: -3.5px;
width: 7px;
height: 5px;
background-position: -371px -93px;
}
}
&-progress {
display: inline-block;
vertical-align: top;
&:focus,
&:hover,
&:active {
.pia-tooltip-text {
display: block;
}
}
}
&-progress {
display: inline-block;
vertical-align: top;
}
}
progress[value] {
color: $pia-green;
height: 12px;
width: 90px;
margin-top: 5px;
color: $pia-green;
height: 12px;
width: 90px;
margin-top: 5px;
background-color: #fff;
position: relative;
&::-webkit-progress-bar {
background-color: #fff;
position: relative;
&::-webkit-progress-bar {
background-color: #fff;
}
&::-moz-progress-bar {
background-color: #fff;
}
&::-webkit-progress-value {
background-color: $pia-green;
}
&:after {
content: attr(value)'%';
position: absolute;
top: -5px;
right: -40px;
}
}
&::-moz-progress-bar {
background-color: #fff;
}
&::-webkit-progress-value {
background-color: $pia-green;
}
&:after {
content: attr(value) "%";
position: absolute;
top: -5px;
right: -40px;
}
}

0 comments on commit 397b9b1

Please sign in to comment.