!important
styles in it and he hung on almost all tags, so if some input seemed too high, you had to redefine it and it was not always convenient.input
with blue backlighting, you need to register in it the corresponding class. <input class="form-control" type="text"/>
<div class="page-header"> <h1> <small> </small></h1> </div>
.btn-inverse
class. Now you have to choose his replacement or write something different..btn
class now also does not have its own design, and wherever there was a regular button, it is now necessary to add btn-default
so that it will look like a button.well
s have gained more concise names. For example, instead of btn-small
it became btn-sm
: <input class="btn btn-default btn-sm" type="submit"/> <span class="well well-lg"></span>
bootstrap-theme.css
, which slightly overrides the appearance. It can be used as a basis for creating your own themes, although it must be admitted that it still far from fully covers all visual styles. Creating your own theme can also be done using the web interface on the framework site, where all styles are conveniently grouped..btn-default
theme, we can say that there is no color at all. Fortunately, this is easily redefined in bootstrap-theme.css
/* */ .btn-default { text-shadow: 0 1px 0 #fff; background-image: -webkit-gradient(linear, left 0%, left 100%, from(#ffffff), to(#e6e6e6)); background-image: -webkit-linear-gradient(top, #ffffff, 0%, #e6e6e6, 100%); background-image: -moz-linear-gradient(top, #ffffff 0%, #e6e6e6 100%); background-image: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%); background-repeat: repeat-x; border-color: #e0e0e0; border-color: #ccc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); } /* */ .btn-default:hover { background-color: gray !important; background-image: -webkit-gradient(linear, left 0%, left 100%, from(#ffffff), to(gray)); background-image: -webkit-linear-gradient(top, #ffffff, 0%, gray, 100%); background-image: -moz-linear-gradient(top, #ffffff 0%, gray 100%); background-image: linear-gradient(to bottom, #ffffff 0%, gray 100%); border-radius:3px; }
<div class="navbar navbar-fixed-top navbar-inverse"> <div class="navbar-inner"> <div class="container"> <a href="/" class="pull-left navbar-brand"></a> <ul class="nav pull-left"> </ul> </div> </div> </div>
<div class="navbar navbar-fixed-top navbar-inverse"> <div class="navbar-inner"> <div class="container"> <a href="/" class="pull-left navbar-brand"></a> <ul class="nav navbar-nav pull-left"> </ul> </div> </div> </div>
<div class="modal hide fade " style="width:400px; margin-left:-200px; z-index:1000000;"> <div class="modal-header"> <button class="close" data-dismiss="modal">Ă—</button><h3></h3> </div> <div class="modal-body" style="width:380px; height:250px;"></div> <div class="modal-footer"><div class="btn-group"> <span class="btn yes btn-primary" data-dismiss="modal"></span> <span class="btn cancel btn-danger" data-dismiss="modal"></span> </div> </div> </div>
<div class="modal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button class="close" data-dismiss="modal">Ă—</button> <h3 class="modal-title"> </h3> </div> <div class="modal-body"></div> <div class="modal-footer"> <div class="btn-group"> <span class="btn yes btn-primary" data-dismiss="modal"></span> <span class="btn cancel btn-danger" data-dismiss="modal"></span> </div> </div> </div> </div> </div>
.span2
, .span3
, etc. replaced by the corresponding .col-md-2
, .col-md-3
...img-polaroid
class. Instead, you can use img-thumbnail
<i class="icon-pencil"></i>
<i class="glyphicon glyphicon-pencil"></i>
.label
tagsdiv
. Now only on ul
<div> <ul class="pagination"> <li><a href="#">1</a></li> <li><a href="#">1</a></li> <li><a href="#">1</a></li> </ul> </div>
Source: https://habr.com/ru/post/191952/
All Articles