MediaWiki:Gadget-calc.css: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with ".jcConfig { display: none; } .jcTable { margin: 0 !important; } .jcTable th { text-align: left !important; } .jcSubmit img { margin: 0 auto; } div > .jcTable .jsCalc-field.oo-ui-fieldLayout:before, div > .jcTable .jsCalc-field.oo-ui-fieldLayout:after, div > .jcTable .jsCalc-group.oo-ui-layout:before, div > .jcTable .jsCalc-group.oo-ui-layout:after { display: none; } div > .jcTable .jsCalc-group.oo-ui-layout:before, div > .jcTable .jsCalc-group.oo-ui-layout:a...") |
No edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
.jcConfig { display: none;}.jcTable { margin: 0 !important;}.jcTable th { text-align: left !important;}.jcSubmit img { margin: 0 auto;}div > .jcTable .jsCalc-field.oo-ui-fieldLayout:before,div > .jcTable .jsCalc-field.oo-ui-fieldLayout:after,div > .jcTable .jsCalc-group.oo-ui-layout:before,div > .jcTable .jsCalc-group.oo-ui-layout:after { display: none;}div > .jcTable .jsCalc-group.oo-ui-layout:before,div > .jcTable .jsCalc-group.oo-ui-layout:after { display: none; clear: both;}div > .jcTable .jsCalc-field,div > .jcTable .jsCalc-group { display: block; clear: both;}.jsCalc-field.jsCalc-field-hs .oo-ui-fieldLayout-field .oo-ui-actionFieldLayout-input,.jsCalc-field.jsCalc-field-hs .oo-ui-fieldLayout-field .oo-ui-actionFieldLayout-button { display: inline-block;}/* Position toggle buttons same as other inputs */.oo-ui-fieldLayout.jsCalc-field-togglebutton.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header { width: 35%; margin-right: 5%;}/* Style empty fixed field */.jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty { width: 50%; background-color: #fff; border: 1px solid #a2a9b1; border-radius: 2px; padding: 0.57142857em 0.57142857em 0.5em; box-shadow: inset 0 0 0 1px transparent; transition: border-color 200ms cubic-bezier(0.4, 0.55, 0.55, 1), box-shadow 200ms cubic-bezier(0.4, 0.55, 0.55, 1);}.jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty::before { content: '\200B';}body.wgl-theme-dark .jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty { background-color: #384766; border-color: #475980;}/* Action fields spacing, number field spaceing */.jsCalc-field-combobox .oo-ui-comboBoxInputWidget-field,.jsCalc-field-int .oo-ui-numberInputWidget-field,.jsCalc-field-number .oo-ui-numberInputWidget-field { border-spacing: 0;}/* Messages and errors spacing */.oo-ui-fieldLayout-messages > li { border-spacing: 0; margin-left: 40%;}/** * Styles for grouped inputs * Also removes OO.ui.HorizontalLayout styling**//** why not just use the correct widgets to use here instead of faking them? * would reduce the need to duplicate these styles */.oo-ui-horizontalLayout.jsCalc-group > .oo-ui-layout,.oo-ui-horizontalLayout.jsCalc-group > .oo-ui-widget { display: block; margin: 0;}.oo-ui-horizontalLayout.jsCalc-group { padding: 5px; border: 1px solid var(--sidebar); border-radius: 2px; margin-top: 5px; margin-bottom: 5px;}body.wgl-theme-dark .oo-ui-horizontalLayout.jsCalc-group { border-color: #3f5073;}.oo-ui-horizontalLayout.jsCalc-group > .jsCalc-grouplabel { width: 35%; text-align: right; font-weight: bold; font-size: 1.14285714em;}.oo-ui-optionWidget.oo-ui-labelElement > .oo-ui-labelElement-label { overflow: visible;} |
|||
.jcConfig { |
|||
display: none; |
|||
} |
|||
.jcTable { |
|||
margin: 0 !important; |
|||
} |
|||
.jcTable th { |
|||
text-align: left !important; |
|||
} |
|||
.jcSubmit img { |
|||
margin: 0 auto; |
|||
} |
|||
div > .jcTable .jsCalc-field.oo-ui-fieldLayout:before, |
|||
div > .jcTable .jsCalc-field.oo-ui-fieldLayout:after, |
|||
div > .jcTable .jsCalc-group.oo-ui-layout:before, |
|||
div > .jcTable .jsCalc-group.oo-ui-layout:after { |
|||
display: none; |
|||
} |
|||
div > .jcTable .jsCalc-group.oo-ui-layout:before, |
|||
div > .jcTable .jsCalc-group.oo-ui-layout:after { |
|||
display: none; |
|||
clear: both; |
|||
} |
|||
div > .jcTable .jsCalc-field, |
|||
div > .jcTable .jsCalc-group { |
|||
display: block; |
|||
clear: both; |
|||
} |
|||
.jsCalc-field.jsCalc-field-hs .oo-ui-fieldLayout-field .oo-ui-actionFieldLayout-input, |
|||
.jsCalc-field.jsCalc-field-hs .oo-ui-fieldLayout-field .oo-ui-actionFieldLayout-button { |
|||
display: inline-block; |
|||
} |
|||
/* Position toggle buttons same as other inputs */ |
|||
.oo-ui-fieldLayout.jsCalc-field-togglebutton.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header { |
|||
width: 35%; |
|||
margin-right: 5%; |
|||
} |
|||
/* Style empty fixed field */ |
|||
.jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty { |
|||
width: 50%; |
|||
background-color: #fff; |
|||
border: 1px solid #a2a9b1; |
|||
border-radius: 2px; |
|||
padding: 0.57142857em 0.57142857em 0.5em; |
|||
box-shadow: inset 0 0 0 1px transparent; |
|||
transition: border-color 200ms cubic-bezier(0.4, 0.55, 0.55, 1), box-shadow 200ms cubic-bezier(0.4, 0.55, 0.55, 1); |
|||
} |
|||
.jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty::before { |
|||
content: '\200B'; |
|||
} |
|||
body.wgl-theme-dark .jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty { |
|||
background-color: #384766; |
|||
border-color: #475980; |
|||
} |
|||
/* Action fields spacing, number field spaceing */ |
|||
.jsCalc-field-combobox .oo-ui-comboBoxInputWidget-field, |
|||
.jsCalc-field-int .oo-ui-numberInputWidget-field, |
|||
.jsCalc-field-number .oo-ui-numberInputWidget-field { |
|||
border-spacing: 0; |
|||
} |
|||
/* Messages and errors spacing */ |
|||
.oo-ui-fieldLayout-messages > li { |
|||
border-spacing: 0; |
|||
margin-left: 40%; |
|||
} |
|||
/** |
|||
* Styles for grouped inputs |
|||
* Also removes OO.ui.HorizontalLayout styling |
|||
**/ |
|||
/** why not just use the correct widgets to use here instead of faking them? |
|||
* would reduce the need to duplicate these styles */ |
|||
.oo-ui-horizontalLayout.jsCalc-group > .oo-ui-layout, |
|||
.oo-ui-horizontalLayout.jsCalc-group > .oo-ui-widget { |
|||
display: block; |
|||
margin: 0; |
|||
} |
|||
.oo-ui-horizontalLayout.jsCalc-group { |
|||
padding: 5px; |
|||
border: 1px solid var(--sidebar); |
|||
border-radius: 2px; |
|||
margin-top: 5px; |
|||
margin-bottom: 5px; |
|||
} |
|||
body.wgl-theme-dark .oo-ui-horizontalLayout.jsCalc-group { |
|||
border-color: #3f5073; |
|||
} |
|||
.oo-ui-horizontalLayout.jsCalc-group > .jsCalc-grouplabel { |
|||
width: 35%; |
|||
text-align: right; |
|||
font-weight: bold; |
|||
font-size: 1.14285714em; |
|||
} |
|||
.oo-ui-optionWidget.oo-ui-labelElement > .oo-ui-labelElement-label { |
|||
overflow: visible; |
|||
} |
Revision as of 17:12, 17 October 2024
.jcConfig { display: none;}.jcTable { margin: 0 !important;}.jcTable th { text-align: left !important;}.jcSubmit img { margin: 0 auto;}div > .jcTable .jsCalc-field.oo-ui-fieldLayout:before,div > .jcTable .jsCalc-field.oo-ui-fieldLayout:after,div > .jcTable .jsCalc-group.oo-ui-layout:before,div > .jcTable .jsCalc-group.oo-ui-layout:after { display: none;}div > .jcTable .jsCalc-group.oo-ui-layout:before,div > .jcTable .jsCalc-group.oo-ui-layout:after { display: none; clear: both;}div > .jcTable .jsCalc-field,div > .jcTable .jsCalc-group { display: block; clear: both;}.jsCalc-field.jsCalc-field-hs .oo-ui-fieldLayout-field .oo-ui-actionFieldLayout-input,.jsCalc-field.jsCalc-field-hs .oo-ui-fieldLayout-field .oo-ui-actionFieldLayout-button { display: inline-block;}/* Position toggle buttons same as other inputs */.oo-ui-fieldLayout.jsCalc-field-togglebutton.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-header { width: 35%; margin-right: 5%;}/* Style empty fixed field */.jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty { width: 50%; background-color: #fff; border: 1px solid #a2a9b1; border-radius: 2px; padding: 0.57142857em 0.57142857em 0.5em; box-shadow: inset 0 0 0 1px transparent; transition: border-color 200ms cubic-bezier(0.4, 0.55, 0.55, 1), box-shadow 200ms cubic-bezier(0.4, 0.55, 0.55, 1);}.jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty::before { content: '\200B';}body.wgl-theme-dark .jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty { background-color: #384766; border-color: #475980;}/* Action fields spacing, number field spaceing */.jsCalc-field-combobox .oo-ui-comboBoxInputWidget-field,.jsCalc-field-int .oo-ui-numberInputWidget-field,.jsCalc-field-number .oo-ui-numberInputWidget-field { border-spacing: 0;}/* Messages and errors spacing */.oo-ui-fieldLayout-messages > li { border-spacing: 0; margin-left: 40%;}/** * Styles for grouped inputs * Also removes OO.ui.HorizontalLayout styling**//** why not just use the correct widgets to use here instead of faking them? * would reduce the need to duplicate these styles */.oo-ui-horizontalLayout.jsCalc-group > .oo-ui-layout,.oo-ui-horizontalLayout.jsCalc-group > .oo-ui-widget { display: block; margin: 0;}.oo-ui-horizontalLayout.jsCalc-group { padding: 5px; border: 1px solid var(--sidebar); border-radius: 2px; margin-top: 5px; margin-bottom: 5px;}body.wgl-theme-dark .oo-ui-horizontalLayout.jsCalc-group { border-color: #3f5073;}.oo-ui-horizontalLayout.jsCalc-group > .jsCalc-grouplabel { width: 35%; text-align: right; font-weight: bold; font-size: 1.14285714em;}.oo-ui-optionWidget.oo-ui-labelElement > .oo-ui-labelElement-label { overflow: visible;}