-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
unknown
committed
Aug 27, 2021
1 parent
a342e64
commit bdd547c
Showing
32 changed files
with
953 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// range | ||
.range { | ||
position: relative; | ||
|
||
.thumb { | ||
position: absolute; | ||
display: block; | ||
height: 30px; | ||
width: 30px; | ||
top: -35px; | ||
margin-left: -15px; | ||
text-align: center; | ||
border-radius: 50% 50% 50% 0; | ||
transform: scale(0); | ||
transform-origin: bottom; | ||
transition: transform 0.2s ease-in-out; | ||
|
||
&:after { | ||
position: absolute; | ||
display: block; | ||
content: ''; | ||
transform: translateX(-50%); | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
border-radius: 50% 50% 50% 0; | ||
transform: rotate(-45deg); | ||
background: #1266f1; | ||
z-index: -1; | ||
} | ||
|
||
.thumb-value { | ||
display: block; | ||
font-size: 12px; | ||
line-height: 30px; | ||
color: rgb(255, 255, 255); | ||
font-weight: 500; | ||
z-index: 2; | ||
} | ||
|
||
&.thumb-active { | ||
transform: scale(1); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
// Scrollspy | ||
.scrollspy-link { | ||
cursor: pointer; | ||
} | ||
|
||
.nav-pills { | ||
&.menu-sidebar { | ||
|
19 changes: 19 additions & 0 deletions
19
projects/mdb-angular-ui-kit/assets/scss/free/forms/_form-file.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.form-control { | ||
&[type='file'] { | ||
&::-webkit-file-upload-button { | ||
background-color: transparent; | ||
} | ||
} | ||
&:hover { | ||
&:not(:disabled):not([readonly])::-webkit-file-upload-button { | ||
background-color: transparent; | ||
} | ||
} | ||
} | ||
|
||
.form-control-sm { | ||
&::-webkit-file-upload-button { | ||
padding: 0.28rem 0.5rem; | ||
margin: -0.28rem -0.5rem; | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
projects/mdb-angular-ui-kit/assets/scss/free/forms/_form-range.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Range | ||
// | ||
// Style range inputs the same across browsers. Vendor-specific rules for pseudo | ||
// elements cannot be mixed. As such, there are no shared styles for focus or | ||
// active states on prefixed selectors. | ||
|
||
.form-range { | ||
&:focus { | ||
box-shadow: none; | ||
|
||
// Pseudo-elements must be split across multiple rulesets to have an effect. | ||
// No box-shadow() mixin for focus accessibility. | ||
&::-webkit-slider-thumb { | ||
box-shadow: none; | ||
} | ||
&::-moz-range-thumb { | ||
box-shadow: none; | ||
} | ||
&::-ms-thumb { | ||
box-shadow: none; | ||
} | ||
} | ||
|
||
&::-moz-focus-outer { | ||
border: 0; | ||
} | ||
|
||
&::-webkit-slider-thumb { | ||
margin-top: $form-range-webkit-slider-thumb-margin-top; // Webkit specific | ||
box-shadow: none; | ||
appearance: none; | ||
} | ||
|
||
&::-webkit-slider-runnable-track { | ||
height: $form-range-webkit-slider-runnable-track-height; | ||
border-radius: 0; | ||
} | ||
|
||
&::-moz-range-thumb { | ||
box-shadow: none; | ||
appearance: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './public_api'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { MdbRangeModule } from './range.module'; | ||
export { MdbRangeComponent } from './range.component'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<label for="customRange2" class="form-label">Example range</label> | ||
<div class="range"> | ||
<input | ||
#input | ||
[name]="name" | ||
type="range" | ||
[disabled]="disabled" | ||
[id]="id" | ||
[min]="min" | ||
[max]="max" | ||
[step]="step" | ||
[value]="value" | ||
[(ngModel)]="value" | ||
class="form-range" | ||
min="0" | ||
max="5" | ||
[id]="id" | ||
(input)="thumbPositionUpdate()" | ||
(blur)="blurRangeInput()" | ||
(mousedown)="focusRangeInput()" | ||
(mouseup)="blurRangeInput()" | ||
(touchstart)="focusRangeInput()" | ||
(touchend)="blurRangeInput()" | ||
/> | ||
<span #thumb class="thumb" [ngStyle]="thumbStyle" [ngClass]="{ 'thumb-active': this.visibility }"> | ||
<span #thumbValue class="thumb-value">{{ value }}</span> | ||
</span> | ||
</div> |
Oops, something went wrong.