Moodle release 3.0beta
[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;
72 .btn-lineup;
8903b17b
BB
73}
74
8d9410bd 75button {
76 &.yui3-button {
77 &.closebutton {
78 background-position: 0 0;
79 &:hover {
80 background-position: 0 0;
81 // Because we assign the button look to every button tag
82 // above, we need to remove some styles from non-standard
83 // looking buttons. Correct fix, assign .btn class to every
84 // actual button in Moodle so we don't need to carpet bomb the
85 // bare button tag.
86 }
87 }
88 }
8903b17b 89}
8d9410bd 90
91input {
92 &.fp-btn-choose {
93 .btn-small
94 }
8903b17b 95}
8d9410bd 96
97.user-enroller-panel {
98 .uep-search-results {
99 .user,
100 .cohort {
101 .options {
102 .enrol {
103 .btn-mini
104 }
105 }
106 }
107 }
b6548192 108}