~vauxoo/openerp-tools/runbot_vauxoo_stable_fix_css_dev_jorge

« back to all changes in this revision

Viewing changes to openerp-runbot/js/bower_components/font-awesome/src/assets/less/bootstrap-3.0.0/buttons.less

  • Committer: Jorge Angel Naranjo Rogel
  • Date: 2014-08-29 01:01:23 UTC
  • Revision ID: jorge_nr@vauxoo.com-20140829010123-t2f9gk9mxda7ddwv
[IMP][runbot_vauxoo_stable] Changed link to css

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// Buttons
 
3
// --------------------------------------------------
 
4
 
 
5
 
 
6
// Base styles
 
7
// --------------------------------------------------
 
8
 
 
9
// Core styles
 
10
.btn {
 
11
  display: inline-block;
 
12
  padding: @padding-base-vertical @padding-base-horizontal;
 
13
  margin-bottom: 0; // For input.btn
 
14
  font-size: @font-size-base;
 
15
  font-weight: @btn-font-weight;
 
16
  line-height: @line-height-base;
 
17
  text-align: center;
 
18
  vertical-align: middle;
 
19
  cursor: pointer;
 
20
  border: 1px solid transparent;
 
21
  border-radius: @border-radius-base;
 
22
  white-space: nowrap;
 
23
  .user-select(none);
 
24
 
 
25
  &:focus {
 
26
    .tab-focus();
 
27
  }
 
28
 
 
29
  &:hover,
 
30
  &:focus {
 
31
    color: @btn-default-color;
 
32
    text-decoration: none;
 
33
  }
 
34
 
 
35
  &:active,
 
36
  &.active {
 
37
    outline: 0;
 
38
    background-image: none;
 
39
    .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
 
40
  }
 
41
 
 
42
  &.disabled,
 
43
  &[disabled],
 
44
  fieldset[disabled] & {
 
45
    cursor: not-allowed;
 
46
    pointer-events: none; // Future-proof disabling of clicks
 
47
    .opacity(.65);
 
48
    .box-shadow(none);
 
49
  }
 
50
 
 
51
}
 
52
 
 
53
 
 
54
// Alternate buttons
 
55
// --------------------------------------------------
 
56
 
 
57
.btn-default {
 
58
  .button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
 
59
}
 
60
.btn-primary {
 
61
  .button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
 
62
}
 
63
// Warning appears as orange
 
64
.btn-warning {
 
65
  .button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
 
66
}
 
67
// Danger and error appear as red
 
68
.btn-danger {
 
69
  .button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
 
70
}
 
71
// Success appears as green
 
72
.btn-success {
 
73
  .button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
 
74
}
 
75
// Info appears as blue-green
 
76
.btn-info {
 
77
  .button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
 
78
}
 
79
 
 
80
 
 
81
// Link buttons
 
82
// -------------------------
 
83
 
 
84
// Make a button look and behave like a link
 
85
.btn-link {
 
86
  color: @link-color;
 
87
  font-weight: normal;
 
88
  cursor: pointer;
 
89
  border-radius: 0;
 
90
 
 
91
  &,
 
92
  &:active,
 
93
  &[disabled],
 
94
  fieldset[disabled] & {
 
95
    background-color: transparent;
 
96
    .box-shadow(none);
 
97
  }
 
98
  &,
 
99
  &:hover,
 
100
  &:focus,
 
101
  &:active {
 
102
    border-color: transparent;
 
103
  }
 
104
  &:hover,
 
105
  &:focus {
 
106
    color: @link-hover-color;
 
107
    text-decoration: underline;
 
108
    background-color: transparent;
 
109
  }
 
110
  &[disabled],
 
111
  fieldset[disabled] & {
 
112
    &:hover,
 
113
    &:focus {
 
114
      color: @btn-link-disabled-color;
 
115
      text-decoration: none;
 
116
    }
 
117
  }
 
118
}
 
119
 
 
120
 
 
121
// Button Sizes
 
122
// --------------------------------------------------
 
123
 
 
124
.btn-lg {
 
125
  // line-height: ensure even-numbered height of button next to large input
 
126
  .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
 
127
}
 
128
.btn-sm,
 
129
.btn-xs {
 
130
  // line-height: ensure proper height of button next to small input
 
131
  .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
 
132
}
 
133
.btn-xs {
 
134
  padding: 1px 5px;
 
135
}
 
136
 
 
137
 
 
138
// Block button
 
139
// --------------------------------------------------
 
140
 
 
141
.btn-block {
 
142
  display: block;
 
143
  width: 100%;
 
144
  padding-left: 0;
 
145
  padding-right: 0;
 
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
}