Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 14 additions & 46 deletions modules/ext.createwiki.oouiform.ooui.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

.ext-createwiki-tabs-wrapper.oo-ui-panelLayout-framed,
.ext-createwiki-tabs > .oo-ui-menuLayout-content > .oo-ui-indexLayout-stackLayout > .oo-ui-tabPanelLayout {
/* Decrease contrast of `border` slightly as padding/border combination is sufficient
* accessibility wise and focus of content is more important here. */
border-color: @border-color-subtle;
}

Expand All @@ -54,10 +56,8 @@
}

.ext-createwiki-section-fieldset {
// <legend> is hard to style, so apply border to top of group
> .oo-ui-fieldsetLayout-group {
padding-top: 1.5em;
border-top: 1px solid #c8ccd1;
> .oo-ui-fieldsetLayout-header {
margin-bottom: @spacing-150;
}

// Remove spacing between legend and underline
Expand All @@ -66,9 +66,8 @@
}
}

// Spacing between sections
> .oo-ui-menuLayout-content > .oo-ui-indexLayout-stackLayout > .oo-ui-tabPanelLayout:not( :last-child ) {
margin-bottom: 1em;
.oo-ui-tabPanelLayout + .oo-ui-tabPanelLayout {
margin-top: @spacing-100;
}
}
}
Expand All @@ -77,7 +76,7 @@
.client-js .ext-createwiki-tabs {
.oo-ui-tabPanelLayout {
// Panels don't need borders as the IndexLayout is inside a framed wrapper.
border: 0;
border-width: 0;

// Hide section legend, only used in nojs mode
> fieldset > legend {
Expand All @@ -93,33 +92,6 @@
}
}

#mw-htmlform-info {
> .oo-ui-fieldLayout-align-top > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header {
display: inline-block;
width: 20%;
padding: 0;
vertical-align: middle;
}

> .oo-ui-fieldLayout-align-top .oo-ui-fieldLayout-help {
margin-right: 0;
}

> .oo-ui-fieldLayout.oo-ui-fieldLayout-align-top > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field {
display: inline-block;
width: 80%;
vertical-align: middle;
}
}

/* Compact number inputs */
.mw-htmlform-field-HTMLFloatField,
.mw-htmlform-field-HTMLIntField {
.oo-ui-inputWidget {
max-width: 10em;
}
}

.mw-special-RequestWikiQueue {
#mw-section-details,
#mw-section-comments,
Expand All @@ -130,21 +102,17 @@
}

span > label {
font-weight: bold;
font-weight: @font-weight-bold;
}

// HACK: Pretend to be a read-only OOUI TextInputWidget
div > label {
display: block;
width: 100%;
max-height: 15em;
box-sizing: border-box;
padding: 8px;
border: 1.5px solid @border-color-subtle;
border-radius: 4px;
background-color: @background-color-neutral-subtle;
color: @color-base;
font-family: 'Arial', sans-serif;
line-height: 1.5em;
max-width: 50em;
padding: @spacing-30 @spacing-50;
border: @border-base;
border-radius: @border-radius-base;
background-color: @background-color-interactive-subtle;
overflow-y: auto;
}
}
Expand Down
Loading