├── .meteor ├── .finished-upgraders ├── .gitignore ├── .id ├── packages ├── platforms ├── release └── versions ├── License ├── README.md ├── index.html ├── public ├── .DS_Store └── flat-avatar.png ├── router.jsx └── src ├── .DS_Store ├── components ├── layouts │ └── dashboard.jsx └── pages │ ├── ErrorPage.jsx │ ├── login.jsx │ ├── overview.jsx │ └── reports.jsx └── styles ├── .DS_Store ├── app.less ├── base.less ├── fonts ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── index.import.less ├── less ├── .csscomb.json ├── .csslintrc ├── alerts.import.less ├── badges.import.less ├── bootstrap.import.less ├── breadcrumbs.import.less ├── button-groups.import.less ├── buttons.import.less ├── carousel.import.less ├── close.import.less ├── code.import.less ├── component-animations.import.less ├── dropdowns.import.less ├── forms.import.less ├── glyphicons.import.less ├── grid.import.less ├── input-groups.import.less ├── jumbotron.import.less ├── labels.import.less ├── list-group.import.less ├── media.import.less ├── mixins.import.less ├── mixins │ ├── alerts.less │ ├── background-variant.less │ ├── border-radius.less │ ├── buttons.less │ ├── center-block.less │ ├── clearfix.less │ ├── forms.less │ ├── gradients.less │ ├── grid-framework.less │ ├── grid.less │ ├── hide-text.less │ ├── image.less │ ├── labels.less │ ├── list-group.less │ ├── nav-divider.less │ ├── nav-vertical-align.less │ ├── opacity.less │ ├── pagination.less │ ├── panels.less │ ├── progress-bar.less │ ├── reset-filter.less │ ├── resize.less │ ├── responsive-visibility.less │ ├── size.less │ ├── tab-focus.less │ ├── table-row.less │ ├── text-emphasis.less │ ├── text-overflow.less │ └── vendor-prefixes.less ├── modals.import.less ├── navbar.import.less ├── navs.import.less ├── normalize.less ├── pager.import.less ├── pagination.import.less ├── panels.import.less ├── popovers.import.less ├── print.less ├── progress-bars.import.less ├── responsive-embed.less ├── responsive-utilities.import.less ├── scaffolding.import.less ├── tables.import.less ├── theme.import.less ├── thumbnails.import.less ├── tooltip.import.less ├── type.import.less ├── utilities.import.less ├── variables.import.less └── wells.import.less ├── pages ├── dashboard.import.less └── login.import.less ├── transitions ├── all.less ├── avatar.less └── pages.less └── widgets └── input-underline.less /.meteor/.finished-upgraders: -------------------------------------------------------------------------------- 1 | # This file contains information which helps Meteor properly upgrade your 2 | # app when you run 'meteor update'. You should check it into version control 3 | # with your project. 4 | 5 | notices-for-0.9.0 6 | notices-for-0.9.1 7 | 0.9.4-platform-file 8 | notices-for-facebook-graph-api-2 9 | 1.2.0-standard-minifiers-package 10 | 1.2.0-meteor-platform-split 11 | 1.2.0-cordova-changes 12 | 1.2.0-breaking-changes 13 | -------------------------------------------------------------------------------- /.meteor/.gitignore: -------------------------------------------------------------------------------- 1 | local 2 | -------------------------------------------------------------------------------- /.meteor/.id: -------------------------------------------------------------------------------- 1 | # This file contains a token that is unique to your project. 2 | # Check it into your repository along with the rest of this directory. 3 | # It can be used for purposes such as: 4 | # - ensuring you don't accidentally deploy one app on top of another 5 | # - providing package authors with aggregated statistics 6 | 7 | gulg1r7addd92xlzz0 8 | -------------------------------------------------------------------------------- /.meteor/packages: -------------------------------------------------------------------------------- 1 | # Meteor packages used by this project, one per line. 2 | # Check this file (and the other files in this directory) into your repository. 3 | # 4 | # 'meteor add' and 'meteor remove' will edit this file for you, 5 | # but you can also edit it by hand. 6 | 7 | meteor-base # Packages every Meteor app needs to have 8 | mobile-experience # Packages for a great mobile UX 9 | mongo # The database Meteor supports right now 10 | blaze-html-templates # Compile .html files into Meteor Blaze views 11 | session # Client-side reactive dictionary for your app 12 | jquery # Helpful client-side library 13 | tracker # Meteor's client-side reactive programming library 14 | 15 | standard-minifiers # JS/CSS minifiers run for production mode 16 | es5-shim # ECMAScript 5 compatibility for older browsers. 17 | ecmascript # Enable ECMAScript2015+ syntax in app code 18 | 19 | autopublish # Publish all data to the clients (for prototyping) 20 | insecure # Allow all DB writes from clients (for prototyping) 21 | react 22 | reactrouter:react-router 23 | less 24 | fortawesome:fontawesome 25 | twbs:bootstrap 26 | universe:react-bootstrap 27 | mrt:nprogress 28 | kadira:flow-router 29 | kadira:react-layout 30 | -------------------------------------------------------------------------------- /.meteor/platforms: -------------------------------------------------------------------------------- 1 | server 2 | browser 3 | -------------------------------------------------------------------------------- /.meteor/release: -------------------------------------------------------------------------------- 1 | METEOR@1.2.1 2 | -------------------------------------------------------------------------------- /.meteor/versions: -------------------------------------------------------------------------------- 1 | autopublish@1.0.4 2 | autoupdate@1.2.4 3 | babel-compiler@5.8.24_1 4 | babel-runtime@0.1.4 5 | base64@1.0.4 6 | binary-heap@1.0.4 7 | blaze@2.1.3 8 | blaze-html-templates@1.0.1 9 | blaze-tools@1.0.4 10 | boilerplate-generator@1.0.4 11 | caching-compiler@1.0.0 12 | caching-html-compiler@1.0.2 13 | callback-hook@1.0.4 14 | check@1.1.0 15 | coffeescript@1.0.11 16 | cosmos:browserify@0.9.3 17 | ddp@1.2.2 18 | ddp-client@1.2.1 19 | ddp-common@1.2.2 20 | ddp-server@1.2.2 21 | deps@1.0.9 22 | diff-sequence@1.0.1 23 | ecmascript@0.1.6 24 | ecmascript-runtime@0.2.6 25 | ejson@1.0.7 26 | es5-shim@4.1.14 27 | fastclick@1.0.7 28 | fortawesome:fontawesome@4.5.0 29 | geojson-utils@1.0.4 30 | hot-code-push@1.0.0 31 | html-tools@1.0.5 32 | htmljs@1.0.5 33 | http@1.1.1 34 | id-map@1.0.4 35 | insecure@1.0.4 36 | jquery@1.11.4 37 | jsx@0.2.3 38 | kadira:flow-router@2.10.1 39 | kadira:react-layout@1.5.3 40 | launch-screen@1.0.4 41 | less@2.5.1 42 | livedata@1.0.15 43 | logging@1.0.8 44 | meteor@1.1.10 45 | meteor-base@1.0.1 46 | minifiers@1.1.7 47 | minimongo@1.0.10 48 | mobile-experience@1.0.1 49 | mobile-status-bar@1.0.6 50 | mongo@1.1.3 51 | mongo-id@1.0.1 52 | mrt:nprogress@0.2.0 53 | npm-mongo@1.4.39_1 54 | observe-sequence@1.0.7 55 | ordered-dict@1.0.4 56 | promise@0.5.1 57 | random@1.0.5 58 | react@0.14.3 59 | react-meteor-data@0.2.4 60 | react-runtime@0.14.4 61 | react-runtime-dev@0.14.4 62 | react-runtime-prod@0.14.4 63 | reactive-dict@1.1.3 64 | reactive-var@1.0.6 65 | reactrouter:react-router@1.0.3 66 | reload@1.1.4 67 | retry@1.0.4 68 | routepolicy@1.0.6 69 | session@1.1.1 70 | spacebars@1.0.7 71 | spacebars-compiler@1.0.7 72 | standard-minifiers@1.0.2 73 | templating@1.1.5 74 | templating-tools@1.0.0 75 | tracker@1.0.9 76 | twbs:bootstrap@3.3.6 77 | ui@1.0.8 78 | underscore@1.0.4 79 | universe:modules@0.4.2 80 | universe:react-bootstrap@0.24.0 81 | url@1.0.5 82 | webapp@1.2.3 83 | webapp-hashing@1.0.5 84 | -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- 1 | Copyright 2017 GeekyAnts 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Ani Theme rewritten in Meteor.js + React.js 2 | 3 | This project is a port of the famous [Free Ani AngularJS Theme](http://startangular.com/product/ani-theme/) to Meteor.js plus React.js Theme. 4 | 5 | ## Demo 6 | http://ani-react-theme.meteor.com 7 | 8 | ## Installation 9 | ####1. Clone this project or Download that ZIP file 10 | 11 | ```sh 12 | $ git clone git@github.com:start-react/ani-theme-meteor-react.git 13 | ``` 14 | 15 | ####2. Make sure you have [meteor](https://www.meteor.com/) installed globally 16 | 17 | 18 | ####3. On the command prompt run the following commands 19 | 20 | ```sh 21 | $ cd `project-directory` 22 | ``` 23 | ```sh 24 | $ meteor 25 | ``` 26 | 27 | ## Description 28 | 29 | This theme is developed using the react-meteor package to integrate reactjs as the reactive front-end. 30 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | ani-meteor-react 3 | 4 | 5 | 6 |
7 | 8 | 9 | -------------------------------------------------------------------------------- /public/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/start-react/ani-theme-meteor-react/57857172b08eacace6a03bddbddbf72d74520001/public/.DS_Store -------------------------------------------------------------------------------- /public/flat-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/start-react/ani-theme-meteor-react/57857172b08eacace6a03bddbddbf72d74520001/public/flat-avatar.png -------------------------------------------------------------------------------- /router.jsx: -------------------------------------------------------------------------------- 1 | FlowRouter.route('/', { 2 | action() { 3 | ReactLayout.render(Dashboard, {content: }); 4 | } 5 | }); 6 | 7 | FlowRouter.route('/dashboard/overview', { 8 | action() { 9 | ReactLayout.render(Dashboard, {content: }); 10 | } 11 | }); 12 | 13 | FlowRouter.route('/dashboard/reports', { 14 | action() { 15 | ReactLayout.render(Dashboard, {content: }); 16 | } 17 | }); 18 | 19 | FlowRouter.route('/login', { 20 | action() { 21 | ReactLayout.render(Login); 22 | } 23 | }); 24 | 25 | FlowRouter.route('/*', { 26 | action() { 27 | ReactLayout.render(ErrorPage); 28 | } 29 | }); -------------------------------------------------------------------------------- /src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/start-react/ani-theme-meteor-react/57857172b08eacace6a03bddbddbf72d74520001/src/.DS_Store -------------------------------------------------------------------------------- /src/components/layouts/dashboard.jsx: -------------------------------------------------------------------------------- 1 | var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup; 2 | 3 | Dashboard = React.createClass({ 4 | 5 | componentWillMount: function(){ 6 | Session.set("animateChild", false); 7 | }, 8 | 9 | componentDidMount: function(){ 10 | if(!Session.get("animateChild")){ 11 | $(".dashboard-page").addClass("ng-enter"); 12 | setTimeout(function(){ 13 | $(".dashboard-page").addClass("ng-enter-active"); 14 | }, 300); 15 | setTimeout(function(){ 16 | $(".dashboard-page").removeClass("ng-enter"); 17 | $(".dashboard-page").removeClass("ng-enter-active"); 18 | Session.set("animateChild", true); 19 | }, 600); 20 | } 21 | }, 22 | 23 | 24 | render: function() { 25 | // const { pathname } = this.props.location; 26 | return ( 27 | 28 |
29 |
30 |
31 |
32 |
33 |
34 |

Ani Theme
Free Meteor-React.js Edition

35 | 36 |
37 | Logout 38 |
39 | 40 | 63 |
64 | 65 |
66 | {React.cloneElement(
{this.props.content}
||
)} 67 |
68 |
69 |
70 |
71 |
72 | 73 | ); 74 | } 75 | }); -------------------------------------------------------------------------------- /src/components/pages/ErrorPage.jsx: -------------------------------------------------------------------------------- 1 | var Link = ReactRouter.Link; 2 | 3 | ErrorPage = React.createClass({ 4 | 5 | render: function() { 6 | return ( 7 | 8 |
9 |
10 |
11 |
12 | 13 | 14 | 15 |

Ani Theme

16 |
17 |

404

18 |
19 | Oops! Page not found. 20 |
21 |
22 |
23 |
24 | ); 25 | } 26 | 27 | }); -------------------------------------------------------------------------------- /src/components/pages/login.jsx: -------------------------------------------------------------------------------- 1 | Login = React.createClass({ 2 | 3 | componentDidMount(){ 4 | $(".login-page").addClass("ng-enter"); 5 | setTimeout(function(){ 6 | $(".login-page").addClass("ng-enter-active"); 7 | }, 300); 8 | setTimeout(function(){ 9 | $(".login-page").removeClass("ng-enter"); 10 | $(".login-page").removeClass("ng-enter-active"); 11 | }, 600); 12 | }, 13 | 14 | render: function() { 15 | return ( 16 |
17 |
18 |
19 |
20 | 21 |

Ani Theme
Free Meteor-React.js Edition

22 |
23 |
24 |
25 | 26 |
27 |
28 | 29 |
30 |
31 | 32 |
33 |
34 |
35 |
36 |
37 | 38 | ); 39 | } 40 | }); -------------------------------------------------------------------------------- /src/components/pages/overview.jsx: -------------------------------------------------------------------------------- 1 | Overview = React.createClass({ 2 | 3 | componentDidMount(){ 4 | if(Session.get("animateChild")){ 5 | $(".overview-page").addClass("ng-enter"); 6 | setTimeout(function(){ 7 | $(".overview-page").addClass("ng-enter-active"); 8 | }, 300); 9 | setTimeout(function(){ 10 | $(".overview-page").removeClass("ng-enter"); 11 | $(".overview-page").removeClass("ng-enter-active"); 12 | }, 600); 13 | } 14 | }, 15 | 16 | render: function() { 17 | return ( 18 |
19 |
20 | Reports 21 |

Overview Why is Ani Theme so awesome?

22 |
23 |

Welcome!

I don't want to bloat this Ani Theme Free Edition AngularJS Admin theme with a lot of plugins. To install plugins we have bower. Let's keep it real clean! 24 |

25 |

Learn more

26 |
27 |
28 |
29 | ); 30 | } 31 | }); -------------------------------------------------------------------------------- /src/components/pages/reports.jsx: -------------------------------------------------------------------------------- 1 | Reports = React.createClass({ 2 | 3 | componentDidMount(){ 4 | if(Session.get("animateChild")){ 5 | $(".reports-page").addClass("ng-enter"); 6 | setTimeout(function(){ 7 | $(".reports-page").addClass("ng-enter-active"); 8 | }, 300); 9 | setTimeout(function(){ 10 | $(".reports-page").removeClass("ng-enter"); 11 | $(".reports-page").removeClass("ng-enter-active"); 12 | }, 600); 13 | } 14 | }, 15 | render: function() { 16 | return ( 17 |
18 |
19 |
20 | Back to Overview 21 |

Reports Work with Chart.js and D3

22 | 23 | 24 |
25 |

Add Charts here

26 |

You can use C3.js or Chart.js

27 |

Learn more

28 |
29 |
30 |
31 |
32 | ); 33 | } 34 | }); -------------------------------------------------------------------------------- /src/styles/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/start-react/ani-theme-meteor-react/57857172b08eacace6a03bddbddbf72d74520001/src/styles/.DS_Store -------------------------------------------------------------------------------- /src/styles/app.less: -------------------------------------------------------------------------------- 1 | // wiredep-removed:bower:less 2 | // wiredep-removed:endbower 3 | 4 | @import "less/bootstrap.import.less"; 5 | 6 | // Base 7 | @import "base.less"; 8 | 9 | // Pages 10 | @import "pages/login.import.less"; 11 | @import "pages/dashboard.import.less"; 12 | 13 | // Widgets and Effects 14 | @import "widgets/input-underline.less"; 15 | // @import "../../bower_components/bootstrap-btn-outline-rounded/index.less"; 16 | @import "index.import.less"; 17 | @import "transitions/all.less"; 18 | 19 | 20 | // Other 21 | .browsehappy { 22 | margin: 0.2em 0; 23 | background: #ccc; 24 | color: #000; 25 | padding: 0.2em 0; 26 | } 27 | 28 | html,body { 29 | overflow: hidden; 30 | } 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/styles/base.less: -------------------------------------------------------------------------------- 1 | .ui-base { 2 | position: absolute; 3 | top: 0; 4 | left: 0; 5 | right: 0; 6 | bottom: 0; 7 | } 8 | 9 | .user-avatar { 10 | width: 125px; 11 | height: 125px; 12 | } -------------------------------------------------------------------------------- /src/styles/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/start-react/ani-theme-meteor-react/57857172b08eacace6a03bddbddbf72d74520001/src/styles/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/styles/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/start-react/ani-theme-meteor-react/57857172b08eacace6a03bddbddbf72d74520001/src/styles/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/styles/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/start-react/ani-theme-meteor-react/57857172b08eacace6a03bddbddbf72d74520001/src/styles/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/styles/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/start-react/ani-theme-meteor-react/57857172b08eacace6a03bddbddbf72d74520001/src/styles/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/styles/index.import.less: -------------------------------------------------------------------------------- 1 | .btn-outline { 2 | 3 | background: none; 4 | //border-width: 2px; 5 | border-color: transparent; 6 | font-weight: 400; 7 | 8 | &:hover { 9 | background: none; 10 | border-color: transparent; 11 | } 12 | 13 | &.btn-white { 14 | box-shadow: 0 0 0 2px rgba(255,255,255, 0.8) inset; 15 | color: rgba(255,255,255, 0.8); 16 | 17 | &:hover { 18 | box-shadow: 0 0 0 2px rgba(255,255,255, 1) inset; 19 | color: rgba(255,255,255, 1); 20 | } 21 | 22 | } 23 | 24 | &.btn-primary { 25 | 26 | box-shadow: 0 0 0 2px darken(@brand-primary, 10%) inset; 27 | color: darken(@brand-primary, 10%); 28 | 29 | &:hover { 30 | box-shadow: 0 0 0 2px @brand-primary inset; 31 | color: @brand-primary; 32 | } 33 | 34 | } 35 | 36 | &.btn-success { 37 | 38 | box-shadow: 0 0 0 2px darken(@brand-success, 10%) inset; 39 | color: darken(@brand-success, 10%); 40 | 41 | &:hover { 42 | box-shadow: 0 0 0 2px @brand-success inset; 43 | color: @brand-success; 44 | } 45 | 46 | } 47 | 48 | &.btn-info { 49 | 50 | box-shadow: 0 0 0 2px darken(@brand-info, 10%) inset; 51 | color: darken(@brand-info, 10%); 52 | 53 | &:hover { 54 | box-shadow: 0 0 0 2px @brand-info inset; 55 | color: @brand-info; 56 | } 57 | 58 | } 59 | 60 | &.btn-warning { 61 | 62 | box-shadow: 0 0 0 2px darken(@brand-warning, 10%) inset; 63 | color: darken(@brand-warning, 10%); 64 | 65 | &:hover { 66 | box-shadow: 0 0 0 2px @brand-warning inset; 67 | color: @brand-warning; 68 | } 69 | 70 | } 71 | 72 | &.btn-danger { 73 | 74 | box-shadow: 0 0 0 2px darken(@brand-danger, 10%) inset; 75 | color: darken(@brand-danger, 10%); 76 | 77 | &:hover { 78 | box-shadow: 0 0 0 2px @brand-danger inset; 79 | color: @brand-danger; 80 | } 81 | 82 | } 83 | 84 | } 85 | 86 | .btn-rounded { 87 | border-radius: 50px; 88 | } -------------------------------------------------------------------------------- /src/styles/less/.csscomb.json: -------------------------------------------------------------------------------- 1 | { 2 | "always-semicolon": true, 3 | "block-indent": 2, 4 | "color-case": "lower", 5 | "color-shorthand": true, 6 | "element-case": "lower", 7 | "eof-newline": true, 8 | "leading-zero": false, 9 | "remove-empty-rulesets": true, 10 | "space-after-colon": 1, 11 | "space-after-combinator": 1, 12 | "space-before-selector-delimiter": 0, 13 | "space-between-declarations": "\n", 14 | "space-after-opening-brace": "\n", 15 | "space-before-closing-brace": "\n", 16 | "space-before-colon": 0, 17 | "space-before-combinator": 1, 18 | "space-before-opening-brace": 1, 19 | "strip-spaces": true, 20 | "unitless-zero": true, 21 | "vendor-prefix-align": true, 22 | "sort-order": [ 23 | [ 24 | "position", 25 | "top", 26 | "right", 27 | "bottom", 28 | "left", 29 | "z-index", 30 | "display", 31 | "float", 32 | "width", 33 | "min-width", 34 | "max-width", 35 | "height", 36 | "min-height", 37 | "max-height", 38 | "-webkit-box-sizing", 39 | "-moz-box-sizing", 40 | "box-sizing", 41 | "-webkit-appearance", 42 | "padding", 43 | "padding-top", 44 | "padding-right", 45 | "padding-bottom", 46 | "padding-left", 47 | "margin", 48 | "margin-top", 49 | "margin-right", 50 | "margin-bottom", 51 | "margin-left", 52 | "overflow", 53 | "overflow-x", 54 | "overflow-y", 55 | "-webkit-overflow-scrolling", 56 | "-ms-overflow-x", 57 | "-ms-overflow-y", 58 | "-ms-overflow-style", 59 | "clip", 60 | "clear", 61 | "font", 62 | "font-family", 63 | "font-size", 64 | "font-style", 65 | "font-weight", 66 | "font-variant", 67 | "font-size-adjust", 68 | "font-stretch", 69 | "font-effect", 70 | "font-emphasize", 71 | "font-emphasize-position", 72 | "font-emphasize-style", 73 | "font-smooth", 74 | "-webkit-hyphens", 75 | "-moz-hyphens", 76 | "hyphens", 77 | "line-height", 78 | "color", 79 | "text-align", 80 | "-webkit-text-align-last", 81 | "-moz-text-align-last", 82 | "-ms-text-align-last", 83 | "text-align-last", 84 | "text-emphasis", 85 | "text-emphasis-color", 86 | "text-emphasis-style", 87 | "text-emphasis-position", 88 | "text-decoration", 89 | "text-indent", 90 | "text-justify", 91 | "text-outline", 92 | "-ms-text-overflow", 93 | "text-overflow", 94 | "text-overflow-ellipsis", 95 | "text-overflow-mode", 96 | "text-shadow", 97 | "text-transform", 98 | "text-wrap", 99 | "-webkit-text-size-adjust", 100 | "-ms-text-size-adjust", 101 | "letter-spacing", 102 | "-ms-word-break", 103 | "word-break", 104 | "word-spacing", 105 | "-ms-word-wrap", 106 | "word-wrap", 107 | "-moz-tab-size", 108 | "-o-tab-size", 109 | "tab-size", 110 | "white-space", 111 | "vertical-align", 112 | "list-style", 113 | "list-style-position", 114 | "list-style-type", 115 | "list-style-image", 116 | "pointer-events", 117 | "-ms-touch-action", 118 | "touch-action", 119 | "cursor", 120 | "visibility", 121 | "zoom", 122 | "flex-direction", 123 | "flex-order", 124 | "flex-pack", 125 | "flex-align", 126 | "table-layout", 127 | "empty-cells", 128 | "caption-side", 129 | "border-spacing", 130 | "border-collapse", 131 | "content", 132 | "quotes", 133 | "counter-reset", 134 | "counter-increment", 135 | "resize", 136 | "-webkit-user-select", 137 | "-moz-user-select", 138 | "-ms-user-select", 139 | "-o-user-select", 140 | "user-select", 141 | "nav-index", 142 | "nav-up", 143 | "nav-right", 144 | "nav-down", 145 | "nav-left", 146 | "background", 147 | "background-color", 148 | "background-image", 149 | "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient", 150 | "filter:progid:DXImageTransform.Microsoft.gradient", 151 | "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader", 152 | "filter", 153 | "background-repeat", 154 | "background-attachment", 155 | "background-position", 156 | "background-position-x", 157 | "background-position-y", 158 | "-webkit-background-clip", 159 | "-moz-background-clip", 160 | "background-clip", 161 | "background-origin", 162 | "-webkit-background-size", 163 | "-moz-background-size", 164 | "-o-background-size", 165 | "background-size", 166 | "border", 167 | "border-color", 168 | "border-style", 169 | "border-width", 170 | "border-top", 171 | "border-top-color", 172 | "border-top-style", 173 | "border-top-width", 174 | "border-right", 175 | "border-right-color", 176 | "border-right-style", 177 | "border-right-width", 178 | "border-bottom", 179 | "border-bottom-color", 180 | "border-bottom-style", 181 | "border-bottom-width", 182 | "border-left", 183 | "border-left-color", 184 | "border-left-style", 185 | "border-left-width", 186 | "border-radius", 187 | "border-top-left-radius", 188 | "border-top-right-radius", 189 | "border-bottom-right-radius", 190 | "border-bottom-left-radius", 191 | "-webkit-border-image", 192 | "-moz-border-image", 193 | "-o-border-image", 194 | "border-image", 195 | "-webkit-border-image-source", 196 | "-moz-border-image-source", 197 | "-o-border-image-source", 198 | "border-image-source", 199 | "-webkit-border-image-slice", 200 | "-moz-border-image-slice", 201 | "-o-border-image-slice", 202 | "border-image-slice", 203 | "-webkit-border-image-width", 204 | "-moz-border-image-width", 205 | "-o-border-image-width", 206 | "border-image-width", 207 | "-webkit-border-image-outset", 208 | "-moz-border-image-outset", 209 | "-o-border-image-outset", 210 | "border-image-outset", 211 | "-webkit-border-image-repeat", 212 | "-moz-border-image-repeat", 213 | "-o-border-image-repeat", 214 | "border-image-repeat", 215 | "outline", 216 | "outline-width", 217 | "outline-style", 218 | "outline-color", 219 | "outline-offset", 220 | "-webkit-box-shadow", 221 | "-moz-box-shadow", 222 | "box-shadow", 223 | "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity", 224 | "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha", 225 | "opacity", 226 | "-ms-interpolation-mode", 227 | "-webkit-transition", 228 | "-moz-transition", 229 | "-ms-transition", 230 | "-o-transition", 231 | "transition", 232 | "-webkit-transition-delay", 233 | "-moz-transition-delay", 234 | "-ms-transition-delay", 235 | "-o-transition-delay", 236 | "transition-delay", 237 | "-webkit-transition-timing-function", 238 | "-moz-transition-timing-function", 239 | "-ms-transition-timing-function", 240 | "-o-transition-timing-function", 241 | "transition-timing-function", 242 | "-webkit-transition-duration", 243 | "-moz-transition-duration", 244 | "-ms-transition-duration", 245 | "-o-transition-duration", 246 | "transition-duration", 247 | "-webkit-transition-property", 248 | "-moz-transition-property", 249 | "-ms-transition-property", 250 | "-o-transition-property", 251 | "transition-property", 252 | "-webkit-transform", 253 | "-moz-transform", 254 | "-ms-transform", 255 | "-o-transform", 256 | "transform", 257 | "-webkit-transform-origin", 258 | "-moz-transform-origin", 259 | "-ms-transform-origin", 260 | "-o-transform-origin", 261 | "transform-origin", 262 | "-webkit-animation", 263 | "-moz-animation", 264 | "-ms-animation", 265 | "-o-animation", 266 | "animation", 267 | "-webkit-animation-name", 268 | "-moz-animation-name", 269 | "-ms-animation-name", 270 | "-o-animation-name", 271 | "animation-name", 272 | "-webkit-animation-duration", 273 | "-moz-animation-duration", 274 | "-ms-animation-duration", 275 | "-o-animation-duration", 276 | "animation-duration", 277 | "-webkit-animation-play-state", 278 | "-moz-animation-play-state", 279 | "-ms-animation-play-state", 280 | "-o-animation-play-state", 281 | "animation-play-state", 282 | "-webkit-animation-timing-function", 283 | "-moz-animation-timing-function", 284 | "-ms-animation-timing-function", 285 | "-o-animation-timing-function", 286 | "animation-timing-function", 287 | "-webkit-animation-delay", 288 | "-moz-animation-delay", 289 | "-ms-animation-delay", 290 | "-o-animation-delay", 291 | "animation-delay", 292 | "-webkit-animation-iteration-count", 293 | "-moz-animation-iteration-count", 294 | "-ms-animation-iteration-count", 295 | "-o-animation-iteration-count", 296 | "animation-iteration-count", 297 | "-webkit-animation-direction", 298 | "-moz-animation-direction", 299 | "-ms-animation-direction", 300 | "-o-animation-direction", 301 | "animation-direction" 302 | ] 303 | ] 304 | } 305 | -------------------------------------------------------------------------------- /src/styles/less/.csslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "adjoining-classes": false, 3 | "box-sizing": false, 4 | "box-model": false, 5 | "compatible-vendor-prefixes": false, 6 | "floats": false, 7 | "font-sizes": false, 8 | "gradients": false, 9 | "important": false, 10 | "known-properties": false, 11 | "outline-none": false, 12 | "qualified-headings": false, 13 | "regex-selectors": false, 14 | "shorthand": false, 15 | "text-indent": false, 16 | "unique-headings": false, 17 | "universal-selector": false, 18 | "unqualified-attributes": false 19 | } 20 | -------------------------------------------------------------------------------- /src/styles/less/alerts.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Alerts 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // ------------------------- 8 | 9 | .alert { 10 | padding: @alert-padding; 11 | margin-bottom: @line-height-computed; 12 | border: 1px solid transparent; 13 | border-radius: @alert-border-radius; 14 | 15 | // Headings for larger alerts 16 | h4 { 17 | margin-top: 0; 18 | // Specified for the h4 to prevent conflicts of changing @headings-color 19 | color: inherit; 20 | } 21 | 22 | // Provide class for links that match alerts 23 | .alert-link { 24 | font-weight: @alert-link-font-weight; 25 | } 26 | 27 | // Improve alignment and spacing of inner content 28 | > p, 29 | > ul { 30 | margin-bottom: 0; 31 | } 32 | 33 | > p + p { 34 | margin-top: 5px; 35 | } 36 | } 37 | 38 | // Dismissible alerts 39 | // 40 | // Expand the right padding and account for the close button's positioning. 41 | 42 | .alert-dismissable, // The misspelled .alert-dismissable was deprecated in 3.2.0. 43 | .alert-dismissible { 44 | padding-right: (@alert-padding + 20); 45 | 46 | // Adjust close link position 47 | .close { 48 | position: relative; 49 | top: -2px; 50 | right: -21px; 51 | color: inherit; 52 | } 53 | } 54 | 55 | // Alternate styles 56 | // 57 | // Generate contextual modifier classes for colorizing the alert. 58 | 59 | .alert-success { 60 | .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text); 61 | } 62 | 63 | .alert-info { 64 | .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text); 65 | } 66 | 67 | .alert-warning { 68 | .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text); 69 | } 70 | 71 | .alert-danger { 72 | .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text); 73 | } 74 | -------------------------------------------------------------------------------- /src/styles/less/badges.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Badges 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .badge { 8 | display: inline-block; 9 | min-width: 10px; 10 | padding: 3px 7px; 11 | font-size: @font-size-small; 12 | font-weight: @badge-font-weight; 13 | color: @badge-color; 14 | line-height: @badge-line-height; 15 | vertical-align: baseline; 16 | white-space: nowrap; 17 | text-align: center; 18 | background-color: @badge-bg; 19 | border-radius: @badge-border-radius; 20 | 21 | // Empty badges collapse automatically (not available in IE8) 22 | &:empty { 23 | display: none; 24 | } 25 | 26 | // Quick fix for badges in buttons 27 | .btn & { 28 | position: relative; 29 | top: -1px; 30 | } 31 | 32 | .btn-xs &, 33 | .btn-group-xs > .btn & { 34 | top: 0; 35 | padding: 1px 5px; 36 | } 37 | 38 | // Hover state, but only for links 39 | a& { 40 | &:hover, 41 | &:focus { 42 | color: @badge-link-hover-color; 43 | text-decoration: none; 44 | cursor: pointer; 45 | } 46 | } 47 | 48 | // Account for badges in navs 49 | .list-group-item.active > &, 50 | .nav-pills > .active > a > & { 51 | color: @badge-active-color; 52 | background-color: @badge-active-bg; 53 | } 54 | 55 | .list-group-item > & { 56 | float: right; 57 | } 58 | 59 | .list-group-item > & + & { 60 | margin-right: 5px; 61 | } 62 | 63 | .nav-pills > li > a > & { 64 | margin-left: 3px; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/styles/less/bootstrap.import.less: -------------------------------------------------------------------------------- 1 | // Core variables and mixins 2 | @import "variables.import.less"; 3 | @import "mixins.import.less"; 4 | 5 | // Reset and dependencies 6 | @import "normalize.less"; 7 | @import "print.less"; 8 | @import "glyphicons.import.less"; 9 | 10 | // Core CSS 11 | @import "scaffolding.import.less"; 12 | @import "type.import.less"; 13 | @import "code.import.less"; 14 | @import "grid.import.less"; 15 | @import "tables.import.less"; 16 | @import "forms.import.less"; 17 | @import "buttons.import.less"; 18 | 19 | // Components 20 | @import "component-animations.import.less"; 21 | @import "dropdowns.import.less"; 22 | @import "button-groups.import.less"; 23 | @import "input-groups.import.less"; 24 | @import "navs.import.less"; 25 | @import "navbar.import.less"; 26 | @import "breadcrumbs.import.less"; 27 | @import "pagination.import.less"; 28 | @import "pager.import.less"; 29 | @import "labels.import.less"; 30 | @import "badges.import.less"; 31 | @import "jumbotron.import.less"; 32 | @import "thumbnails.import.less"; 33 | @import "alerts.import.less"; 34 | @import "progress-bars.import.less"; 35 | @import "media.import.less"; 36 | @import "list-group.import.less"; 37 | @import "panels.import.less"; 38 | @import "responsive-embed.less"; 39 | @import "wells.import.less"; 40 | @import "close.import.less"; 41 | 42 | // Components w/ JavaScript 43 | @import "modals.import.less"; 44 | @import "tooltip.import.less"; 45 | @import "popovers.import.less"; 46 | @import "carousel.import.less"; 47 | 48 | // Utility classes 49 | @import "utilities.import.less"; 50 | @import "responsive-utilities.import.less"; 51 | -------------------------------------------------------------------------------- /src/styles/less/breadcrumbs.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal; 8 | margin-bottom: @line-height-computed; 9 | list-style: none; 10 | background-color: @breadcrumb-bg; 11 | border-radius: @border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space 18 | padding: 0 5px; 19 | color: @breadcrumb-color; 20 | } 21 | } 22 | 23 | > .active { 24 | color: @breadcrumb-active-color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/styles/less/button-groups.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Button groups 3 | // -------------------------------------------------- 4 | 5 | // Make the div behave like a button 6 | .btn-group, 7 | .btn-group-vertical { 8 | position: relative; 9 | display: inline-block; 10 | vertical-align: middle; // match .btn alignment given font-size hack above 11 | > .btn { 12 | position: relative; 13 | float: left; 14 | // Bring the "active" button to the front 15 | &:hover, 16 | &:focus, 17 | &:active, 18 | &.active { 19 | z-index: 2; 20 | } 21 | } 22 | } 23 | 24 | // Prevent double borders when buttons are next to each other 25 | .btn-group { 26 | .btn + .btn, 27 | .btn + .btn-group, 28 | .btn-group + .btn, 29 | .btn-group + .btn-group { 30 | margin-left: -1px; 31 | } 32 | } 33 | 34 | // Optional: Group multiple button groups together for a toolbar 35 | .btn-toolbar { 36 | margin-left: -5px; // Offset the first child's margin 37 | &:extend(.clearfix all); 38 | 39 | .btn-group, 40 | .input-group { 41 | float: left; 42 | } 43 | > .btn, 44 | > .btn-group, 45 | > .input-group { 46 | margin-left: 5px; 47 | } 48 | } 49 | 50 | .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { 51 | border-radius: 0; 52 | } 53 | 54 | // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match 55 | .btn-group > .btn:first-child { 56 | margin-left: 0; 57 | &:not(:last-child):not(.dropdown-toggle) { 58 | .border-right-radius(0); 59 | } 60 | } 61 | // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it 62 | .btn-group > .btn:last-child:not(:first-child), 63 | .btn-group > .dropdown-toggle:not(:first-child) { 64 | .border-left-radius(0); 65 | } 66 | 67 | // Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group) 68 | .btn-group > .btn-group { 69 | float: left; 70 | } 71 | .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { 72 | border-radius: 0; 73 | } 74 | .btn-group > .btn-group:first-child:not(:last-child) { 75 | > .btn:last-child, 76 | > .dropdown-toggle { 77 | .border-right-radius(0); 78 | } 79 | } 80 | .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { 81 | .border-left-radius(0); 82 | } 83 | 84 | // On active and open, don't show outline 85 | .btn-group .dropdown-toggle:active, 86 | .btn-group.open .dropdown-toggle { 87 | outline: 0; 88 | } 89 | 90 | 91 | // Sizing 92 | // 93 | // Remix the default button sizing classes into new ones for easier manipulation. 94 | 95 | .btn-group-xs > .btn { &:extend(.btn-xs); } 96 | .btn-group-sm > .btn { &:extend(.btn-sm); } 97 | .btn-group-lg > .btn { &:extend(.btn-lg); } 98 | 99 | 100 | // Split button dropdowns 101 | // ---------------------- 102 | 103 | // Give the line between buttons some depth 104 | .btn-group > .btn + .dropdown-toggle { 105 | padding-left: 8px; 106 | padding-right: 8px; 107 | } 108 | .btn-group > .btn-lg + .dropdown-toggle { 109 | padding-left: 12px; 110 | padding-right: 12px; 111 | } 112 | 113 | // The clickable button for toggling the menu 114 | // Remove the gradient and set the same inset shadow as the :active state 115 | .btn-group.open .dropdown-toggle { 116 | .box-shadow(inset 0 3px 5px rgba(0,0,0,.125)); 117 | 118 | // Show no shadow for `.btn-link` since it has no other button styles. 119 | &.btn-link { 120 | .box-shadow(none); 121 | } 122 | } 123 | 124 | 125 | // Reposition the caret 126 | .btn .caret { 127 | margin-left: 0; 128 | } 129 | // Carets in other button sizes 130 | .btn-lg .caret { 131 | border-width: @caret-width-large @caret-width-large 0; 132 | border-bottom-width: 0; 133 | } 134 | // Upside down carets for .dropup 135 | .dropup .btn-lg .caret { 136 | border-width: 0 @caret-width-large @caret-width-large; 137 | } 138 | 139 | 140 | // Vertical button groups 141 | // ---------------------- 142 | 143 | .btn-group-vertical { 144 | > .btn, 145 | > .btn-group, 146 | > .btn-group > .btn { 147 | display: block; 148 | float: none; 149 | width: 100%; 150 | max-width: 100%; 151 | } 152 | 153 | // Clear floats so dropdown menus can be properly placed 154 | > .btn-group { 155 | &:extend(.clearfix all); 156 | > .btn { 157 | float: none; 158 | } 159 | } 160 | 161 | > .btn + .btn, 162 | > .btn + .btn-group, 163 | > .btn-group + .btn, 164 | > .btn-group + .btn-group { 165 | margin-top: -1px; 166 | margin-left: 0; 167 | } 168 | } 169 | 170 | .btn-group-vertical > .btn { 171 | &:not(:first-child):not(:last-child) { 172 | border-radius: 0; 173 | } 174 | &:first-child:not(:last-child) { 175 | border-top-right-radius: @border-radius-base; 176 | .border-bottom-radius(0); 177 | } 178 | &:last-child:not(:first-child) { 179 | border-bottom-left-radius: @border-radius-base; 180 | .border-top-radius(0); 181 | } 182 | } 183 | .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { 184 | border-radius: 0; 185 | } 186 | .btn-group-vertical > .btn-group:first-child:not(:last-child) { 187 | > .btn:last-child, 188 | > .dropdown-toggle { 189 | .border-bottom-radius(0); 190 | } 191 | } 192 | .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { 193 | .border-top-radius(0); 194 | } 195 | 196 | 197 | // Justified button groups 198 | // ---------------------- 199 | 200 | .btn-group-justified { 201 | display: table; 202 | width: 100%; 203 | table-layout: fixed; 204 | border-collapse: separate; 205 | > .btn, 206 | > .btn-group { 207 | float: none; 208 | display: table-cell; 209 | width: 1%; 210 | } 211 | > .btn-group .btn { 212 | width: 100%; 213 | } 214 | 215 | > .btn-group .dropdown-menu { 216 | left: auto; 217 | } 218 | } 219 | 220 | 221 | // Checkbox and radio options 222 | // 223 | // In order to support the browser's form validation feedback, powered by the 224 | // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use 225 | // `display: none;` or `visibility: hidden;` as that also hides the popover. 226 | // Simply visually hiding the inputs via `opacity` would leave them clickable in 227 | // certain cases which is prevented by using `clip` and `pointer-events`. 228 | // This way, we ensure a DOM element is visible to position the popover from. 229 | // 230 | // See https://github.com/twbs/bootstrap/pull/12794 and 231 | // https://github.com/twbs/bootstrap/pull/14559 for more information. 232 | 233 | [data-toggle="buttons"] { 234 | > .btn, 235 | > .btn-group > .btn { 236 | input[type="radio"], 237 | input[type="checkbox"] { 238 | position: absolute; 239 | clip: rect(0,0,0,0); 240 | pointer-events: none; 241 | } 242 | } 243 | } 244 | -------------------------------------------------------------------------------- /src/styles/less/buttons.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Buttons 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // -------------------------------------------------- 8 | 9 | .btn { 10 | display: inline-block; 11 | margin-bottom: 0; // For input.btn 12 | font-weight: @btn-font-weight; 13 | text-align: center; 14 | vertical-align: middle; 15 | touch-action: manipulation; 16 | cursor: pointer; 17 | background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214 18 | border: 1px solid transparent; 19 | white-space: nowrap; 20 | .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base); 21 | .user-select(none); 22 | 23 | &, 24 | &:active, 25 | &.active { 26 | &:focus, 27 | &.focus { 28 | .tab-focus(); 29 | } 30 | } 31 | 32 | &:hover, 33 | &:focus, 34 | &.focus { 35 | color: @btn-default-color; 36 | text-decoration: none; 37 | } 38 | 39 | &:active, 40 | &.active { 41 | outline: 0; 42 | background-image: none; 43 | .box-shadow(inset 0 3px 5px rgba(0,0,0,.125)); 44 | } 45 | 46 | &.disabled, 47 | &[disabled], 48 | fieldset[disabled] & { 49 | cursor: @cursor-disabled; 50 | pointer-events: none; // Future-proof disabling of clicks 51 | .opacity(.65); 52 | .box-shadow(none); 53 | } 54 | } 55 | 56 | 57 | // Alternate buttons 58 | // -------------------------------------------------- 59 | 60 | .btn-default { 61 | .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border); 62 | } 63 | .btn-primary { 64 | .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border); 65 | } 66 | // Success appears as green 67 | .btn-success { 68 | .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border); 69 | } 70 | // Info appears as blue-green 71 | .btn-info { 72 | .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border); 73 | } 74 | // Warning appears as orange 75 | .btn-warning { 76 | .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border); 77 | } 78 | // Danger and error appear as red 79 | .btn-danger { 80 | .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border); 81 | } 82 | 83 | 84 | // Link buttons 85 | // ------------------------- 86 | 87 | // Make a button look and behave like a link 88 | .btn-link { 89 | color: @link-color; 90 | font-weight: normal; 91 | border-radius: 0; 92 | 93 | &, 94 | &:active, 95 | &.active, 96 | &[disabled], 97 | fieldset[disabled] & { 98 | background-color: transparent; 99 | .box-shadow(none); 100 | } 101 | &, 102 | &:hover, 103 | &:focus, 104 | &:active { 105 | border-color: transparent; 106 | } 107 | &:hover, 108 | &:focus { 109 | color: @link-hover-color; 110 | text-decoration: @link-hover-decoration; 111 | background-color: transparent; 112 | } 113 | &[disabled], 114 | fieldset[disabled] & { 115 | &:hover, 116 | &:focus { 117 | color: @btn-link-disabled-color; 118 | text-decoration: none; 119 | } 120 | } 121 | } 122 | 123 | 124 | // Button Sizes 125 | // -------------------------------------------------- 126 | 127 | .btn-lg { 128 | // line-height: ensure even-numbered height of button next to large input 129 | .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large); 130 | } 131 | .btn-sm { 132 | // line-height: ensure proper height of button next to small input 133 | .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small); 134 | } 135 | .btn-xs { 136 | .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small); 137 | } 138 | 139 | 140 | // Block button 141 | // -------------------------------------------------- 142 | 143 | .btn-block { 144 | display: block; 145 | width: 100%; 146 | } 147 | 148 | // Vertically space out multiple block buttons 149 | .btn-block + .btn-block { 150 | margin-top: 5px; 151 | } 152 | 153 | // Specificity overrides 154 | input[type="submit"], 155 | input[type="reset"], 156 | input[type="button"] { 157 | &.btn-block { 158 | width: 100%; 159 | } 160 | } 161 | -------------------------------------------------------------------------------- /src/styles/less/carousel.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Carousel 3 | // -------------------------------------------------- 4 | 5 | 6 | // Wrapper for the slide container and indicators 7 | .carousel { 8 | position: relative; 9 | } 10 | 11 | .carousel-inner { 12 | position: relative; 13 | overflow: hidden; 14 | width: 100%; 15 | 16 | > .item { 17 | display: none; 18 | position: relative; 19 | .transition(.6s ease-in-out left); 20 | 21 | // Account for jankitude on images 22 | > img, 23 | > a > img { 24 | &:extend(.img-responsive); 25 | line-height: 1; 26 | } 27 | 28 | // WebKit CSS3 transforms for supported devices 29 | @media all and (transform-3d), (-webkit-transform-3d) { 30 | .transition-transform(~'0.6s ease-in-out'); 31 | .backface-visibility(~'hidden'); 32 | .perspective(1000); 33 | 34 | &.next, 35 | &.active.right { 36 | .translate3d(100%, 0, 0); 37 | left: 0; 38 | } 39 | &.prev, 40 | &.active.left { 41 | .translate3d(-100%, 0, 0); 42 | left: 0; 43 | } 44 | &.next.left, 45 | &.prev.right, 46 | &.active { 47 | .translate3d(0, 0, 0); 48 | left: 0; 49 | } 50 | } 51 | } 52 | 53 | > .active, 54 | > .next, 55 | > .prev { 56 | display: block; 57 | } 58 | 59 | > .active { 60 | left: 0; 61 | } 62 | 63 | > .next, 64 | > .prev { 65 | position: absolute; 66 | top: 0; 67 | width: 100%; 68 | } 69 | 70 | > .next { 71 | left: 100%; 72 | } 73 | > .prev { 74 | left: -100%; 75 | } 76 | > .next.left, 77 | > .prev.right { 78 | left: 0; 79 | } 80 | 81 | > .active.left { 82 | left: -100%; 83 | } 84 | > .active.right { 85 | left: 100%; 86 | } 87 | 88 | } 89 | 90 | // Left/right controls for nav 91 | // --------------------------- 92 | 93 | .carousel-control { 94 | position: absolute; 95 | top: 0; 96 | left: 0; 97 | bottom: 0; 98 | width: @carousel-control-width; 99 | .opacity(@carousel-control-opacity); 100 | font-size: @carousel-control-font-size; 101 | color: @carousel-control-color; 102 | text-align: center; 103 | text-shadow: @carousel-text-shadow; 104 | // We can't have this transition here because WebKit cancels the carousel 105 | // animation if you trip this while in the middle of another animation. 106 | 107 | // Set gradients for backgrounds 108 | &.left { 109 | #gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001)); 110 | } 111 | &.right { 112 | left: auto; 113 | right: 0; 114 | #gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5)); 115 | } 116 | 117 | // Hover/focus state 118 | &:hover, 119 | &:focus { 120 | outline: 0; 121 | color: @carousel-control-color; 122 | text-decoration: none; 123 | .opacity(.9); 124 | } 125 | 126 | // Toggles 127 | .icon-prev, 128 | .icon-next, 129 | .glyphicon-chevron-left, 130 | .glyphicon-chevron-right { 131 | position: absolute; 132 | top: 50%; 133 | z-index: 5; 134 | display: inline-block; 135 | } 136 | .icon-prev, 137 | .glyphicon-chevron-left { 138 | left: 50%; 139 | margin-left: -10px; 140 | } 141 | .icon-next, 142 | .glyphicon-chevron-right { 143 | right: 50%; 144 | margin-right: -10px; 145 | } 146 | .icon-prev, 147 | .icon-next { 148 | width: 20px; 149 | height: 20px; 150 | margin-top: -10px; 151 | line-height: 1; 152 | font-family: serif; 153 | } 154 | 155 | 156 | .icon-prev { 157 | &:before { 158 | content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039) 159 | } 160 | } 161 | .icon-next { 162 | &:before { 163 | content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A) 164 | } 165 | } 166 | } 167 | 168 | // Optional indicator pips 169 | // 170 | // Add an unordered list with the following class and add a list item for each 171 | // slide your carousel holds. 172 | 173 | .carousel-indicators { 174 | position: absolute; 175 | bottom: 10px; 176 | left: 50%; 177 | z-index: 15; 178 | width: 60%; 179 | margin-left: -30%; 180 | padding-left: 0; 181 | list-style: none; 182 | text-align: center; 183 | 184 | li { 185 | display: inline-block; 186 | width: 10px; 187 | height: 10px; 188 | margin: 1px; 189 | text-indent: -999px; 190 | border: 1px solid @carousel-indicator-border-color; 191 | border-radius: 10px; 192 | cursor: pointer; 193 | 194 | // IE8-9 hack for event handling 195 | // 196 | // Internet Explorer 8-9 does not support clicks on elements without a set 197 | // `background-color`. We cannot use `filter` since that's not viewed as a 198 | // background color by the browser. Thus, a hack is needed. 199 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer 200 | // 201 | // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we 202 | // set alpha transparency for the best results possible. 203 | background-color: #000 \9; // IE8 204 | background-color: rgba(0,0,0,0); // IE9 205 | } 206 | .active { 207 | margin: 0; 208 | width: 12px; 209 | height: 12px; 210 | background-color: @carousel-indicator-active-bg; 211 | } 212 | } 213 | 214 | // Optional captions 215 | // ----------------------------- 216 | // Hidden by default for smaller viewports 217 | .carousel-caption { 218 | position: absolute; 219 | left: 15%; 220 | right: 15%; 221 | bottom: 20px; 222 | z-index: 10; 223 | padding-top: 20px; 224 | padding-bottom: 20px; 225 | color: @carousel-caption-color; 226 | text-align: center; 227 | text-shadow: @carousel-text-shadow; 228 | & .btn { 229 | text-shadow: none; // No shadow for button elements in carousel-caption 230 | } 231 | } 232 | 233 | 234 | // Scale up controls for tablets and up 235 | @media screen and (min-width: @screen-sm-min) { 236 | 237 | // Scale up the controls a smidge 238 | .carousel-control { 239 | .glyphicon-chevron-left, 240 | .glyphicon-chevron-right, 241 | .icon-prev, 242 | .icon-next { 243 | width: 30px; 244 | height: 30px; 245 | margin-top: -15px; 246 | font-size: 30px; 247 | } 248 | .glyphicon-chevron-left, 249 | .icon-prev { 250 | margin-left: -15px; 251 | } 252 | .glyphicon-chevron-right, 253 | .icon-next { 254 | margin-right: -15px; 255 | } 256 | } 257 | 258 | // Show and left align the captions 259 | .carousel-caption { 260 | left: 20%; 261 | right: 20%; 262 | padding-bottom: 30px; 263 | } 264 | 265 | // Move up the indicators 266 | .carousel-indicators { 267 | bottom: 20px; 268 | } 269 | } 270 | -------------------------------------------------------------------------------- /src/styles/less/close.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close { 7 | float: right; 8 | font-size: (@font-size-base * 1.5); 9 | font-weight: @close-font-weight; 10 | line-height: 1; 11 | color: @close-color; 12 | text-shadow: @close-text-shadow; 13 | .opacity(.2); 14 | 15 | &:hover, 16 | &:focus { 17 | color: @close-color; 18 | text-decoration: none; 19 | cursor: pointer; 20 | .opacity(.5); 21 | } 22 | 23 | // Additional properties for button version 24 | // iOS requires the button element instead of an anchor tag. 25 | // If you want the anchor version, it requires `href="#"`. 26 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile 27 | button& { 28 | padding: 0; 29 | cursor: pointer; 30 | background: transparent; 31 | border: 0; 32 | -webkit-appearance: none; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/styles/less/code.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Code (inline and block) 3 | // -------------------------------------------------- 4 | 5 | 6 | // Inline and block code styles 7 | code, 8 | kbd, 9 | pre, 10 | samp { 11 | font-family: @font-family-monospace; 12 | } 13 | 14 | // Inline code 15 | code { 16 | padding: 2px 4px; 17 | font-size: 90%; 18 | color: @code-color; 19 | background-color: @code-bg; 20 | border-radius: @border-radius-base; 21 | } 22 | 23 | // User input typically entered via keyboard 24 | kbd { 25 | padding: 2px 4px; 26 | font-size: 90%; 27 | color: @kbd-color; 28 | background-color: @kbd-bg; 29 | border-radius: @border-radius-small; 30 | box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); 31 | 32 | kbd { 33 | padding: 0; 34 | font-size: 100%; 35 | font-weight: bold; 36 | box-shadow: none; 37 | } 38 | } 39 | 40 | // Blocks of code 41 | pre { 42 | display: block; 43 | padding: ((@line-height-computed - 1) / 2); 44 | margin: 0 0 (@line-height-computed / 2); 45 | font-size: (@font-size-base - 1); // 14px to 13px 46 | line-height: @line-height-base; 47 | word-break: break-all; 48 | word-wrap: break-word; 49 | color: @pre-color; 50 | background-color: @pre-bg; 51 | border: 1px solid @pre-border-color; 52 | border-radius: @border-radius-base; 53 | 54 | // Account for some code outputs that place code tags in pre tags 55 | code { 56 | padding: 0; 57 | font-size: inherit; 58 | color: inherit; 59 | white-space: pre-wrap; 60 | background-color: transparent; 61 | border-radius: 0; 62 | } 63 | } 64 | 65 | // Enable scrollable blocks of code 66 | .pre-scrollable { 67 | max-height: @pre-scrollable-max-height; 68 | overflow-y: scroll; 69 | } 70 | -------------------------------------------------------------------------------- /src/styles/less/component-animations.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `.opacity()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552. 9 | 10 | .fade { 11 | opacity: 0; 12 | .transition(opacity .15s linear); 13 | &.in { 14 | opacity: 1; 15 | } 16 | } 17 | 18 | .collapse { 19 | display: none; 20 | 21 | &.in { display: block; } 22 | tr&.in { display: table-row; } 23 | tbody&.in { display: table-row-group; } 24 | } 25 | 26 | .collapsing { 27 | position: relative; 28 | height: 0; 29 | overflow: hidden; 30 | .transition-property(~"height, visibility"); 31 | .transition-duration(.35s); 32 | .transition-timing-function(ease); 33 | } 34 | -------------------------------------------------------------------------------- /src/styles/less/dropdowns.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Dropdown menus 3 | // -------------------------------------------------- 4 | 5 | 6 | // Dropdown arrow/caret 7 | .caret { 8 | display: inline-block; 9 | width: 0; 10 | height: 0; 11 | margin-left: 2px; 12 | vertical-align: middle; 13 | border-top: @caret-width-base dashed; 14 | border-right: @caret-width-base solid transparent; 15 | border-left: @caret-width-base solid transparent; 16 | } 17 | 18 | // The dropdown wrapper (div) 19 | .dropup, 20 | .dropdown { 21 | position: relative; 22 | } 23 | 24 | // Prevent the focus on the dropdown toggle when closing dropdowns 25 | .dropdown-toggle:focus { 26 | outline: 0; 27 | } 28 | 29 | // The dropdown menu (ul) 30 | .dropdown-menu { 31 | position: absolute; 32 | top: 100%; 33 | left: 0; 34 | z-index: @zindex-dropdown; 35 | display: none; // none by default, but block on "open" of the menu 36 | float: left; 37 | min-width: 160px; 38 | padding: 5px 0; 39 | margin: 2px 0 0; // override default ul 40 | list-style: none; 41 | font-size: @font-size-base; 42 | text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer) 43 | background-color: @dropdown-bg; 44 | border: 1px solid @dropdown-fallback-border; // IE8 fallback 45 | border: 1px solid @dropdown-border; 46 | border-radius: @border-radius-base; 47 | .box-shadow(0 6px 12px rgba(0,0,0,.175)); 48 | background-clip: padding-box; 49 | 50 | // Aligns the dropdown menu to right 51 | // 52 | // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]` 53 | &.pull-right { 54 | right: 0; 55 | left: auto; 56 | } 57 | 58 | // Dividers (basically an hr) within the dropdown 59 | .divider { 60 | .nav-divider(@dropdown-divider-bg); 61 | } 62 | 63 | // Links within the dropdown menu 64 | > li > a { 65 | display: block; 66 | padding: 3px 20px; 67 | clear: both; 68 | font-weight: normal; 69 | line-height: @line-height-base; 70 | color: @dropdown-link-color; 71 | white-space: nowrap; // prevent links from randomly breaking onto new lines 72 | } 73 | } 74 | 75 | // Hover/Focus state 76 | .dropdown-menu > li > a { 77 | &:hover, 78 | &:focus { 79 | text-decoration: none; 80 | color: @dropdown-link-hover-color; 81 | background-color: @dropdown-link-hover-bg; 82 | } 83 | } 84 | 85 | // Active state 86 | .dropdown-menu > .active > a { 87 | &, 88 | &:hover, 89 | &:focus { 90 | color: @dropdown-link-active-color; 91 | text-decoration: none; 92 | outline: 0; 93 | background-color: @dropdown-link-active-bg; 94 | } 95 | } 96 | 97 | // Disabled state 98 | // 99 | // Gray out text and ensure the hover/focus state remains gray 100 | 101 | .dropdown-menu > .disabled > a { 102 | &, 103 | &:hover, 104 | &:focus { 105 | color: @dropdown-link-disabled-color; 106 | } 107 | 108 | // Nuke hover/focus effects 109 | &:hover, 110 | &:focus { 111 | text-decoration: none; 112 | background-color: transparent; 113 | background-image: none; // Remove CSS gradient 114 | .reset-filter(); 115 | cursor: @cursor-disabled; 116 | } 117 | } 118 | 119 | // Open state for the dropdown 120 | .open { 121 | // Show the menu 122 | > .dropdown-menu { 123 | display: block; 124 | } 125 | 126 | // Remove the outline when :focus is triggered 127 | > a { 128 | outline: 0; 129 | } 130 | } 131 | 132 | // Menu positioning 133 | // 134 | // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown 135 | // menu with the parent. 136 | .dropdown-menu-right { 137 | left: auto; // Reset the default from `.dropdown-menu` 138 | right: 0; 139 | } 140 | // With v3, we enabled auto-flipping if you have a dropdown within a right 141 | // aligned nav component. To enable the undoing of that, we provide an override 142 | // to restore the default dropdown menu alignment. 143 | // 144 | // This is only for left-aligning a dropdown menu within a `.navbar-right` or 145 | // `.pull-right` nav component. 146 | .dropdown-menu-left { 147 | left: 0; 148 | right: auto; 149 | } 150 | 151 | // Dropdown section headers 152 | .dropdown-header { 153 | display: block; 154 | padding: 3px 20px; 155 | font-size: @font-size-small; 156 | line-height: @line-height-base; 157 | color: @dropdown-header-color; 158 | white-space: nowrap; // as with > li > a 159 | } 160 | 161 | // Backdrop to catch body clicks on mobile, etc. 162 | .dropdown-backdrop { 163 | position: fixed; 164 | left: 0; 165 | right: 0; 166 | bottom: 0; 167 | top: 0; 168 | z-index: (@zindex-dropdown - 10); 169 | } 170 | 171 | // Right aligned dropdowns 172 | .pull-right > .dropdown-menu { 173 | right: 0; 174 | left: auto; 175 | } 176 | 177 | // Allow for dropdowns to go bottom up (aka, dropup-menu) 178 | // 179 | // Just add .dropup after the standard .dropdown class and you're set, bro. 180 | // TODO: abstract this so that the navbar fixed styles are not placed here? 181 | 182 | .dropup, 183 | .navbar-fixed-bottom .dropdown { 184 | // Reverse the caret 185 | .caret { 186 | border-top: 0; 187 | border-bottom: @caret-width-base solid; 188 | content: ""; 189 | } 190 | // Different positioning for bottom up menu 191 | .dropdown-menu { 192 | top: auto; 193 | bottom: 100%; 194 | margin-bottom: 2px; 195 | } 196 | } 197 | 198 | 199 | // Component alignment 200 | // 201 | // Reiterate per navbar.less and the modified component alignment there. 202 | 203 | @media (min-width: @grid-float-breakpoint) { 204 | .navbar-right { 205 | .dropdown-menu { 206 | .dropdown-menu-right(); 207 | } 208 | // Necessary for overrides of the default right aligned menu. 209 | // Will remove come v4 in all likelihood. 210 | .dropdown-menu-left { 211 | .dropdown-menu-left(); 212 | } 213 | } 214 | } 215 | -------------------------------------------------------------------------------- /src/styles/less/forms.import.less: -------------------------------------------------------------------------------- 1 | // 2 | // Forms 3 | // -------------------------------------------------- 4 | 5 | 6 | // Normalize non-controls 7 | // 8 | // Restyle and baseline non-control form elements. 9 | 10 | fieldset { 11 | padding: 0; 12 | margin: 0; 13 | border: 0; 14 | // Chrome and Firefox set a `min-width: min-content;` on fieldsets, 15 | // so we reset that to ensure it behaves more like a standard block element. 16 | // See https://github.com/twbs/bootstrap/issues/12359. 17 | min-width: 0; 18 | } 19 | 20 | legend { 21 | display: block; 22 | width: 100%; 23 | padding: 0; 24 | margin-bottom: @line-height-computed; 25 | font-size: (@font-size-base * 1.5); 26 | line-height: inherit; 27 | color: @legend-color; 28 | border: 0; 29 | border-bottom: 1px solid @legend-border-color; 30 | } 31 | 32 | label { 33 | display: inline-block; 34 | max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141) 35 | margin-bottom: 5px; 36 | font-weight: bold; 37 | } 38 | 39 | 40 | // Normalize form controls 41 | // 42 | // While most of our form styles require extra classes, some basic normalization 43 | // is required to ensure optimum display with or without those classes to better 44 | // address browser inconsistencies. 45 | 46 | // Override content-box in Normalize (* isn't specific enough) 47 | input[type="search"] { 48 | .box-sizing(border-box); 49 | } 50 | 51 | // Position radios and checkboxes better 52 | input[type="radio"], 53 | input[type="checkbox"] { 54 | margin: 4px 0 0; 55 | margin-top: 1px \9; // IE8-9 56 | line-height: normal; 57 | } 58 | 59 | // Set the height of file controls to match text inputs 60 | input[type="file"] { 61 | display: block; 62 | } 63 | 64 | // Make range inputs behave like textual form controls 65 | input[type="range"] { 66 | display: block; 67 | width: 100%; 68 | } 69 | 70 | // Make multiple select elements height not fixed 71 | select[multiple], 72 | select[size] { 73 | height: auto; 74 | } 75 | 76 | // Focus for file, radio, and checkbox 77 | input[type="file"]:focus, 78 | input[type="radio"]:focus, 79 | input[type="checkbox"]:focus { 80 | .tab-focus(); 81 | } 82 | 83 | // Adjust output element 84 | output { 85 | display: block; 86 | padding-top: (@padding-base-vertical + 1); 87 | font-size: @font-size-base; 88 | line-height: @line-height-base; 89 | color: @input-color; 90 | } 91 | 92 | 93 | // Common form controls 94 | // 95 | // Shared size and type resets for form controls. Apply `.form-control` to any 96 | // of the following form controls: 97 | // 98 | // select 99 | // textarea 100 | // input[type="text"] 101 | // input[type="password"] 102 | // input[type="datetime"] 103 | // input[type="datetime-local"] 104 | // input[type="date"] 105 | // input[type="month"] 106 | // input[type="time"] 107 | // input[type="week"] 108 | // input[type="number"] 109 | // input[type="email"] 110 | // input[type="url"] 111 | // input[type="search"] 112 | // input[type="tel"] 113 | // input[type="color"] 114 | 115 | .form-control { 116 | display: block; 117 | width: 100%; 118 | height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border) 119 | padding: @padding-base-vertical @padding-base-horizontal; 120 | font-size: @font-size-base; 121 | line-height: @line-height-base; 122 | color: @input-color; 123 | background-color: @input-bg; 124 | background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214 125 | border: 1px solid @input-border; 126 | border-radius: @input-border-radius; // Note: This has no effect on s in CSS. 127 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); 128 | .transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s"); 129 | 130 | // Customize the `:focus` state to imitate native WebKit styles. 131 | .form-control-focus(); 132 | 133 | // Placeholder 134 | .placeholder(); 135 | 136 | // Disabled and read-only inputs 137 | // 138 | // HTML5 says that controls under a fieldset > legend:first-child won't be 139 | // disabled if the fieldset is disabled. Due to implementation difficulty, we 140 | // don't honor that edge case; we style them as disabled anyway. 141 | &[disabled], 142 | &[readonly], 143 | fieldset[disabled] & { 144 | background-color: @input-bg-disabled; 145 | opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655 146 | } 147 | 148 | &[disabled], 149 | fieldset[disabled] & { 150 | cursor: @cursor-disabled; 151 | } 152 | 153 | // Reset height for `textarea`s 154 | textarea& { 155 | height: auto; 156 | } 157 | } 158 | 159 | 160 | // Search inputs in iOS 161 | // 162 | // This overrides the extra rounded corners on search inputs in iOS so that our 163 | // `.form-control` class can properly style them. Note that this cannot simply 164 | // be added to `.form-control` as it's not specific enough. For details, see 165 | // https://github.com/twbs/bootstrap/issues/11586. 166 | 167 | input[type="search"] { 168 | -webkit-appearance: none; 169 | } 170 | 171 | 172 | // Special styles for iOS temporal inputs 173 | // 174 | // In Mobile Safari, setting `display: block` on temporal inputs causes the 175 | // text within the input to become vertically misaligned. As a workaround, we 176 | // set a pixel line-height that matches the given height of the input, but only 177 | // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848 178 | 179 | @media screen and (-webkit-min-device-pixel-ratio: 0) { 180 | input[type="date"], 181 | input[type="time"], 182 | input[type="datetime-local"], 183 | input[type="month"] { 184 | line-height: @input-height-base; 185 | 186 | &.input-sm, 187 | .input-group-sm & { 188 | line-height: @input-height-small; 189 | } 190 | 191 | &.input-lg, 192 | .input-group-lg & { 193 | line-height: @input-height-large; 194 | } 195 | } 196 | } 197 | 198 | 199 | // Form groups 200 | // 201 | // Designed to help with the organization and spacing of vertical forms. For 202 | // horizontal forms, use the predefined grid classes. 203 | 204 | .form-group { 205 | margin-bottom: @form-group-margin-bottom; 206 | } 207 | 208 | 209 | // Checkboxes and radios 210 | // 211 | // Indent the labels to position radios/checkboxes as hanging controls. 212 | 213 | .radio, 214 | .checkbox { 215 | position: relative; 216 | display: block; 217 | margin-top: 10px; 218 | margin-bottom: 10px; 219 | 220 | label { 221 | min-height: @line-height-computed; // Ensure the input doesn't jump when there is no text 222 | padding-left: 20px; 223 | margin-bottom: 0; 224 | font-weight: normal; 225 | cursor: pointer; 226 | } 227 | } 228 | .radio input[type="radio"], 229 | .radio-inline input[type="radio"], 230 | .checkbox input[type="checkbox"], 231 | .checkbox-inline input[type="checkbox"] { 232 | position: absolute; 233 | margin-left: -20px; 234 | margin-top: 4px \9; 235 | } 236 | 237 | .radio + .radio, 238 | .checkbox + .checkbox { 239 | margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing 240 | } 241 | 242 | // Radios and checkboxes on same line 243 | .radio-inline, 244 | .checkbox-inline { 245 | position: relative; 246 | display: inline-block; 247 | padding-left: 20px; 248 | margin-bottom: 0; 249 | vertical-align: middle; 250 | font-weight: normal; 251 | cursor: pointer; 252 | } 253 | .radio-inline + .radio-inline, 254 | .checkbox-inline + .checkbox-inline { 255 | margin-top: 0; 256 | margin-left: 10px; // space out consecutive inline controls 257 | } 258 | 259 | // Apply same disabled cursor tweak as for inputs 260 | // Some special care is needed because