JSFiddle - React, Tailwind, and code Playground
by kkoshakk
HTML
<body al-app>
<nav class="navbar navbar-inverse navbar-fixed-top">
<form @submit.throttle-500="$element.submit()" class="navbar-form navbar-left" role="search">
<div class="form-group">
<input @blur="$element.focus()" type="text" class="form-control" placeholder="Поиск">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</nav>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.js"></script>
<!-- Angular Light -->
<script src="js/alight_0.12.last.min.js"></script>
</body>
CSS
.btn {
display: inline-block;
margin-bottom: 0;
font-weight: normal;
text-align: center;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 16px;
font-size: 13px;
line-height: 1.846;
border-radius: 3px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.btn:hover,
.btn:focus,
.btn.focus {
color: #444444;
text-decoration: none;
}
.btn:active,
.btn.active {
outline: 0;
background-image: none;
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn-default {
color: #444444;
background-color: #ffffff;
border-color: transparent;
}
.btn-default:focus,
.btn-default.focus {
color: #444444;
background-color: #e6e6e6;
border-color: rgba(0, 0, 0, 0);
outline: 0
}
.btn-default:hover {
color: #444444;
background-color: #e6e6e6;
border-color: rgba(0, 0, 0, 0);
}
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
color: #444444;
background-color: #e6e6e6;
border-color: rgba(0, 0, 0, 0);
}
.btn-default:active:hover,
.btn-default.active:hover,
.open > .dropdown-toggle.btn-default:hover,
.btn-default:active:focus,
.btn-default.active:focus,
.open > .dropdown-toggle.btn-default:focus,
.btn-default:active.focus,
.btn-default.active.focus,
.open > .dropdown-toggle.btn-default.focus {
color: #444444;
background-color: #d4d4d4;
border-color: rgba(0, 0, 0, 0);
}
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
background-image: none;
}
.btn-default .badge {
color: #ffffff;
background-color:...