Merge branch 'MDL-56666-master' of git://github.com/jleyva/moodle
[moodle.git] / theme / bootstrapbase / less / moodle / buttons.less
CommitLineData
8d9410bd 1.singlebutton {
2 div {
3 display: inline-block;
4 margin-right: 5px;
5 margin-bottom: 5px;
6 margin-left: 5px;
7 }
8903b17b 8}
8d9410bd 9
10// Two singlebuttons side by side for ok/cancel.
11#notice {
12 .buttons {
13 .singlebutton {
14 display: inline-block;
15 }
16 }
c57a8830 17}
8d9410bd 18
8903b17b
BB
19.continuebutton {
20 text-align: center;
21}
22
8903b17b
BB
23p.arrow_button {
24 margin-top: 5em;
25 text-align: center;
26 #remove {
27 margin: 3em auto 5em;
28 }
29 input {
30 .btn-block;
31 }
32}
8d9410bd 33
8903b17b 34#addcontrols {
70a0ae96
FM
35 // The margin top is equal the combination of the line-height and margin of a <p>,
36 // because the visual parent is a <p>.
37 margin-top: @baseLineHeight + (@baseLineHeight / 2);
8903b17b
BB
38 text-align: center;
39 margin-bottom: 3em;
70a0ae96
FM
40 label {
41 display: inline;
42 }
8903b17b 43}
8d9410bd 44
45#addcontrols,
46#removecontrols {
47 input {
48 .btn-block;
49 margin: auto;
50 }
8903b17b
BB
51}
52
8d9410bd 53.btn-lineup {
54 margin: 0 0 10px 5px;
8903b17b 55}
8d9410bd 56
57input[name="searchwikicontent"] + input[type="submit"],
58select + input[type="submit"],
59input[type="text"] + input[type="button"],
60input[type="password"] + input[type="submit"],
61input[type="text"] + button,
62input[type="text"] + input[type="submit"] {
63 .btn-lineup
64}
65
321e7cb5
GB
66button,
67input.form-submit,
68input[type="button"],
69input[type="submit"],
8d9410bd 70input[type="reset"] {
71 .btn;
0fc2bccd
JO
72}
73button,
74input.form-submit,
75input[type="button"],
76input[type="submit"],
77input[type="reset"] {
8d9410bd 78 .btn-lineup;
8903b17b
BB
79}
80
8d9410bd 81button {
82 &.yui3-button {
83 &.closebutton {
84 background-position: 0 0;
85 &:hover {
86 background-position: 0 0;
87 // Because we assign the button look to every button tag
88 // above, we need to remove some styles from non-standard
89 // looking buttons. Correct fix, assign .btn class to every
90 // actual button in Moodle so we don't need to carpet bomb the
91 // bare button tag.
92 }
93 }
94 }
8903b17b 95}
8d9410bd 96
97input {
98 &.fp-btn-choose {
99 .btn-small
100 }
8903b17b 101}
8d9410bd 102
103.user-enroller-panel {
104 .uep-search-results {
105 .user,
106 .cohort {
107 .options {
108 .enrol {
109 .btn-mini
110 }
111 }
112 }
113 }
b6548192 114}