summaryrefslogtreecommitdiff
path: root/vendor/oojs/oojs-ui/src/styles/Toolbar.less
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/oojs/oojs-ui/src/styles/Toolbar.less')
-rw-r--r--vendor/oojs/oojs-ui/src/styles/Toolbar.less52
1 files changed, 52 insertions, 0 deletions
diff --git a/vendor/oojs/oojs-ui/src/styles/Toolbar.less b/vendor/oojs/oojs-ui/src/styles/Toolbar.less
new file mode 100644
index 00000000..42eeeaa5
--- /dev/null
+++ b/vendor/oojs/oojs-ui/src/styles/Toolbar.less
@@ -0,0 +1,52 @@
+@import 'common';
+
+.oo-ui-toolbar {
+ clear: both;
+
+ &-bar {
+ line-height: 1em;
+ position: relative;
+ }
+
+ &-actions {
+ float: right;
+
+ .oo-ui-toolbar {
+ display: inline-block;
+ }
+ }
+
+ &-tools {
+ display: inline;
+ white-space: nowrap;
+
+ .oo-ui-toolbar-narrow & {
+ white-space: normal;
+ }
+
+ // Tools like PopupToolGroup can have a lot of content, which should be wrapped normally
+ .oo-ui-tool {
+ white-space: normal;
+ }
+ }
+
+ &-tools,
+ &-actions,
+ &-shadow {
+ .oo-ui-unselectable();
+ }
+
+ &-actions .oo-ui-popupWidget {
+ .oo-ui-selectable();
+ }
+
+ &-shadow {
+ background-position: left top;
+ background-repeat: repeat-x;
+ position: absolute;
+ width: 100%;
+ pointer-events: none;
+ }
+
+ .theme-oo-ui-toolbar();
+}