buttons.less 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .singlebutton div {
  2. display: inline-block;
  3. margin-left: 5px;
  4. margin-right: 5px;
  5. margin-bottom: 5px;
  6. }
  7. // Two singlebutton's side by side for ok/cancel.
  8. #notice .buttons .singlebutton {
  9. display: inline-block;
  10. }
  11. .continuebutton {
  12. text-align: center;
  13. }
  14. .btn-lineup {
  15. margin: 0 0 3px 5px;
  16. }
  17. input[name="searchwikicontent"] + input[type="submit"],
  18. select + input[type="submit"],
  19. input[type="text"] + input[type="button"],
  20. input[type="password"] + input[type="submit"],
  21. input[type="text"] + button,
  22. input[type="text"] + input[type="submit"] {
  23. .btn-lineup
  24. }
  25. p.arrow_button {
  26. margin-top: 5em;
  27. text-align: center;
  28. #remove {
  29. margin: 3em auto 5em;
  30. }
  31. input {
  32. .btn-block;
  33. }
  34. }
  35. #addcontrols {
  36. margin-top: 5em;
  37. text-align: center;
  38. margin-bottom: 3em;
  39. }
  40. #addcontrols input,
  41. #removecontrols input {
  42. .btn-block;
  43. }
  44. button,
  45. input.form-submit,
  46. input[type="button"],
  47. input[type="submit"],
  48. input[type="reset"]
  49. {
  50. .btn;
  51. .btn-default;
  52. .btn-lineup;
  53. }
  54. input.form-submit,
  55. input#id_submitbutton,
  56. input#id_submitbutton2,
  57. .path-admin .buttons input[type="submit"],
  58. td.submit input {
  59. .btn-primary
  60. }
  61. // override .btn-primary
  62. #notice .singlebutton + .singlebutton input,
  63. .submit.buttons input[name="cancel"] {
  64. .btn
  65. }
  66. #notice .singlebutton + .singlebutton input,
  67. .submit.buttons input[name="cancel"] {
  68. .btn-lineup
  69. }
  70. input[id$="_clearbutton"],
  71. input[type="reset"] {
  72. .btn-warning
  73. }
  74. button.yui3-button.closebutton,
  75. button.yui3-button.closebutton:hover {
  76. background-position: 0 0;
  77. // Because we assign button looks to every button tag above,
  78. // we need to remove some styles from non-standard looking
  79. // buttons. Correct fix, assign .btn class to every actual
  80. // button in Moodle so we don't need to carpet bomb the
  81. // bare button tag.
  82. }
  83. input.fp-btn-choose {
  84. .btn-sm;
  85. margin-left: 0;
  86. margin-top: 4px;
  87. }
  88. .user-enroller-panel .uep-search-results .user .options .enrol {
  89. .btn-xs
  90. }