MediaWiki:Common.css/calc.css
From Fallen London Wiki (Staging)
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
.jcConfig {
display:none;
}
.jcInvalid {}
.jcError {
font-weight: bold;
color: red;
}
.jcTable {
margin: 0 !important;
}
.jcTable th {
text-align: left !important;
}
.jcSubmit {
text-align: center !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;
}
div > .jcTable .jsCalc-field .oo-ui-fieldLayout-body .oo-ui-fieldLayout-header,
div > .jcTable .jsCalc-field .oo-ui-fieldLayout-body .oo-ui-fieldLayout-field {
margin-top: 5px;
margin-bottom:5px;
}
.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%;
border-width: 1px;
border: solid;
border-radius: 2px;
padding: 0.57142857em 0.57142857em 0.5em;
box-shadow: inset 0 0 0 1px transparent;
-webkit-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);
-moz-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);
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';
}
.jsCalc-field-fixed > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field > .oo-ui-labelElement-label:empty {
background-color: #fff;
border-color: var(--table-border-color, #7f7f7f);
}
/* 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%;
}
/* Help button position */
.jsCalc-field.oo-ui-fieldLayout.oo-ui-fieldLayout-align-left > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-help,
.jsCalc-field.oo-ui-fieldLayout.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-help {
margin-right: 0;
margin-left: -2.35714286em;
}
/**
* Styles for grouped inputs
* Also removes OO.ui.HorizontalLayout styling
*/
.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-width: 1px;
border: solid;
border-radius: 2px;
margin-top: 5px;
margin-bottom:5px;
overflow-y: auto;
}
.oo-ui-horizontalLayout.jsCalc-group {
border-color: var(--table-border-color, #7f7f7f);
}
.oo-ui-horizontalLayout.jsCalc-group > .jsCalc-grouplabel {
width: 35%;
text-align: right;
font-weight: bold;
font-size: 110%;
}
html[data-flw-theme="dark"] .jcTable .oo-ui-icon-info {
filter: invert(1) hue-rotate(180deg);
}
.jcTable .oo-ui-popupWidget-popup {
background-color: var(--text-bg-color, #fff);
}
.jcTable .oo-ui-fieldLayout-messages {
padding-top: 3em; /* otherwise horrible things happen when you try to submit an invalid form */
}