mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-07-26 07:59:47 +03:00
Merge 226973d43b
into 3ef254d6bd
This commit is contained in:
commit
dbd6988e4b
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -16,6 +16,7 @@ Thumbs.db
|
||||||
/node_modules/
|
/node_modules/
|
||||||
.grunt/
|
.grunt/
|
||||||
/bower_components/
|
/bower_components/
|
||||||
|
/app/
|
||||||
.build*
|
.build*
|
||||||
/_SpecRunner.html
|
/_SpecRunner.html
|
||||||
Gemfile.lock
|
Gemfile.lock
|
||||||
|
|
|
@ -437,8 +437,9 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<form class="navbar-form navbar-left">
|
<form class="navbar-form navbar-left">
|
||||||
<div class="form-group">
|
<div class="form-group label-floating">
|
||||||
<input type="text" class="form-control col-md-8" placeholder="Search">
|
<label class="control-label" for="navbar-light-blue-search">Search - floating label</label>
|
||||||
|
<input id="navbar-light-blue-search" type="text" class="form-control col-sm-8">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
@ -534,7 +535,7 @@
|
||||||
<a href="javascript:void(0)" class="btn btn-raised btn-link">Link</a>
|
<a href="javascript:void(0)" class="btn btn-raised btn-link">Link</a>
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<h3>Button sizes</h3>
|
<h3>Button sizes</h3>
|
||||||
|
|
||||||
<p class="bs-component">
|
<p class="bs-component">
|
||||||
|
@ -658,9 +659,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h3><small><code>btn-lg.btn-block.btn-raised</code></small></h3>
|
<h3><small><code>btn-lg.btn-block.btn-raised</code></small></h3>
|
||||||
<div class="bs-component">
|
<div class="bs-component">
|
||||||
<a href="javascript:void(0)" class="btn btn-default btn-lg btn-block btn-raised">Block level button</a>
|
<a href="javascript:void(0)" class="btn btn-default btn-lg btn-block btn-raised">Block level button</a>
|
||||||
|
@ -732,7 +733,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
2
dist/js/material.min.js
vendored
2
dist/js/material.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/material.min.js.map
vendored
2
dist/js/material.min.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -727,9 +727,14 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<form class="navbar-form navbar-left">
|
<form class="navbar-form navbar-left">
|
||||||
<div class="form-group">
|
<div class="form-group label-floating">
|
||||||
<input type="text" class="form-control col-sm-8" placeholder="Search">
|
<label class="control-label" for="navbar-light-blue-search">Search - floating label</label>
|
||||||
|
<input id="navbar-light-blue-search" type="text" class="form-control col-sm-8">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- <div class="form-group">
|
||||||
|
<input type="text" class="form-control col-sm-8" placeholder="Search">
|
||||||
|
</div> -->
|
||||||
</form>
|
</form>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li><a href="javascript:void(0)">Link</a></li>
|
<li><a href="javascript:void(0)">Link</a></li>
|
||||||
|
|
|
@ -171,13 +171,14 @@
|
||||||
color: inherit;
|
color: inherit;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
margin-top: 4px;
|
||||||
|
|
||||||
// re-normalize inputs in a navbar the size of standard bootstrap since our normal inputs are larger by spec than bootstrap
|
// re-normalize inputs in a navbar the size of standard bootstrap since our normal inputs are larger by spec than bootstrap
|
||||||
//---
|
//---
|
||||||
//height: @mdb-input-height-base;
|
//height: @mdb-input-height-base;
|
||||||
@bs-line-height-base: 1.428571429;
|
@bs-line-height-base: 1.428571429;
|
||||||
@bs-line-height-computed: floor((@font-size-base * @bs-line-height-base)); // ~20px
|
@bs-line-height-computed: floor((@font-size-base * @bs-line-height-base)); // ~20px
|
||||||
height: (@bs-line-height-computed + 8px);
|
height: (@bs-line-height-computed + 2px);
|
||||||
font-size: @font-size-base;
|
font-size: @font-size-base;
|
||||||
line-height: @bs-line-height-base;
|
line-height: @bs-line-height-base;
|
||||||
//---
|
//---
|
||||||
|
@ -188,13 +189,52 @@
|
||||||
.generic-variations(~".navbar", ~"", @brand-primary, {
|
.generic-variations(~".navbar", ~"", @brand-primary, {
|
||||||
background-color: @variation-color;
|
background-color: @variation-color;
|
||||||
color: @variation-color-text;
|
color: @variation-color-text;
|
||||||
// deeply defined to override welljumbo class without !impotant need
|
|
||||||
.navbar-form .form-group input.form-control,
|
.navbar-form {
|
||||||
.navbar-form input.form-control {
|
input.form-control,
|
||||||
.material-placeholder({
|
.form-group input.form-control {
|
||||||
color: @variation-color-text;
|
.material-placeholder({
|
||||||
});
|
color: @variation-color-text;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group {
|
||||||
|
&.is-focused .form-control {
|
||||||
|
background-image: linear-gradient(@variation-color-text, @variation-color-text), linear-gradient(@variation-color-text, @variation-color-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.label-floating,
|
||||||
|
&.label-placeholder {
|
||||||
|
label.control-label {
|
||||||
|
color: @variation-color-text;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
opacity: 0.87;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
&.is-empty:not(.is-focused) label.control-label {
|
||||||
|
top: -10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbars change height slightly, this also fixes inputs in collapsed navbars
|
||||||
|
@media (max-width: @screen-lg) {
|
||||||
|
&.label-floating,
|
||||||
|
&.label-placeholder {
|
||||||
|
&.is-focused,
|
||||||
|
&:not(.is-empty) {
|
||||||
|
label.control-label {
|
||||||
|
top: -23px;
|
||||||
|
line-height: 1.4em;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
li > a {
|
li > a {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user