MDL-56677 cohort: Fix cohort search box misalignment
[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
18bb2883
DM
81// The above buttons rules are really dumb and muck things up for simple pages using bootstrap correctly.
82// e.g. cohort search form.
83// Undo the above silly rules one by one for pages we know to be broken by them.
84form.search-cohort input[type="text"],
85form.search-cohort input[type="submit"],
86form.search-cohort label {
87 .m-t-1
88}
89
90form.search-cohort label {
91 margin-bottom: 0;
92 vertical-align: middle;
93}
94
95form.search-cohort input[type="submit"] {
96 margin-bottom: 0;
97 margin-left: 0;
98}
99
8d9410bd 100button {
101 &.yui3-button {
102 &.closebutton {
103 background-position: 0 0;
104 &:hover {
105 background-position: 0 0;
106 // Because we assign the button look to every button tag
107 // above, we need to remove some styles from non-standard
108 // looking buttons. Correct fix, assign .btn class to every
109 // actual button in Moodle so we don't need to carpet bomb the
110 // bare button tag.
111 }
112 }
113 }
8903b17b 114}
8d9410bd 115
116input {
117 &.fp-btn-choose {
118 .btn-small
119 }
8903b17b 120}
8d9410bd 121
122.user-enroller-panel {
123 .uep-search-results {
124 .user,
125 .cohort {
126 .options {
127 .enrol {
128 .btn-mini
129 }
130 }
131 }
132 }
b6548192 133}