Skip to content

Commit a3f5129

Browse files
committed
wip: cleanup old classes
1 parent 0726309 commit a3f5129

File tree

32 files changed

+119
-113
lines changed

32 files changed

+119
-113
lines changed

packages/webui/src/client/lib/Components/LabelAndOverrides.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { OverrideOpHelperForItemContents, WrappedOverridableItemNormal } from '.
88
import { DropdownInputOption, findOptionByValue } from './DropdownInput'
99
import { hasOpWithPath } from './util'
1010
import Button from 'react-bootstrap/Button'
11+
import classNames from 'classnames'
1112

1213
export interface LabelAndOverridesProps<T extends object, TValue> {
1314
label: string
@@ -76,15 +77,18 @@ export function LabelAndOverrides<T extends object, TValue = any>({
7677
<label className="field">
7778
<LabelActual label={label} />
7879

79-
<div className="field-content">
80+
<div
81+
className={classNames('field-content', {
82+
'checkbox-enable-before': showClearButton,
83+
})}
84+
>
8085
{showClearButton && (
8186
<Button
8287
variant="primary"
8388
className="field-clear"
8489
onClick={() => setValue(undefined)}
8590
title={t('Clear value')}
8691
>
87-
&nbsp;
8892
<FontAwesomeIcon icon={faSync} />
8993
</Button>
9094
)}

packages/webui/src/client/lib/ModalDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function ModalDialog({
215215
<Button
216216
key={i}
217217
variant={!(action.classNames || '').match(/btn-/) ? 'outline-secondary' : undefined}
218-
className={ClassNames('right mrs', action.classNames)}
218+
className={ClassNames('right me-1', action.classNames)}
219219
onClick={(e) => handleAction(e, action.on)}
220220
onKeyDown={preventClickOnEnter}
221221
onKeyUp={emulateClick}

packages/webui/src/client/lib/Spinner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface SpinnerProps {
77
}
88

99
export const Spinner: React.FunctionComponent<SpinnerProps> = (props: SpinnerProps) => (
10-
<div className={props.className !== undefined ? props.className : 'mod mhl mvl alc'}>
10+
<div className={props.className !== undefined ? props.className : 'm-4 text-center'}>
1111
<div className={'origo-spinner sp-' + (props.color || 'blue') + ' sp-' + (props.size || 'large')}>
1212
<svg className="origo-spinner-svg" version="1.1" xmlns="http://www.w3.org/2000/svg">
1313
<circle className="origo-spin-circle" cx="17" cy="17" r="15"></circle>

packages/webui/src/client/lib/forms/SchemaFormSectionHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function SchemaFormSectionHeader({
1313

1414
return (
1515
<>
16-
<h3 className="mhn mbn">{translateStringIfHasNamespaces(title, translationNamespaces)}</h3>
16+
<h3 className="m-0">{translateStringIfHasNamespaces(title, translationNamespaces)}</h3>
1717
{description ? (
1818
<p className="text-s subtle">{translateStringIfHasNamespaces(description, translationNamespaces)}</p>
1919
) : null}

packages/webui/src/client/lib/forms/SchemaFormTable/ObjectTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ function ImportExportButtons({ schema, overrideHelper, wrappedRows }: Readonly<I
384384
<span className="inline-block">
385385
<UploadButton
386386
key={uploadFileKey}
387-
className="btn btn-secondary mls"
387+
className="btn btn-secondary"
388388
onChange={importTable}
389389
accept="application/json,.json"
390390
>
@@ -394,7 +394,7 @@ function ImportExportButtons({ schema, overrideHelper, wrappedRows }: Readonly<I
394394
</Tooltip>
395395

396396
<Tooltip overlay={t('Export')} placement="top">
397-
<button className="btn btn-secondary mls" onClick={exportTable}>
397+
<button className="btn btn-secondary" onClick={exportTable}>
398398
<FontAwesomeIcon icon={faDownload} />
399399
</button>
400400
</Tooltip>

packages/webui/src/client/lib/notifications/NotificationCenterPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class NotificationPopUp extends React.Component<IPopUpProps> {
106106
className={ClassNames(
107107
'btn',
108108
['default', 'primary'].indexOf(action.type) ? 'btn-primary' : 'btn-default',
109-
'mls'
109+
'ms-1'
110110
)}
111111
onClick={(e) => this.triggerEvent(action, e)}
112112
>

packages/webui/src/client/styles/externalMessagesStatus.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
.external-message-status {
32
padding-bottom: 70vh;
43

@@ -18,7 +17,7 @@
1817
&.waiting {
1918
background-color: #bbbbbb;
2019
}
21-
.small {
20+
&.small {
2221
font-size: 75%;
2322
}
2423
}

packages/webui/src/client/styles/fromOrigo.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ h5,
7272
font-weight: 300;
7373
}
7474

75+
.text-s {
76+
font-size: 0.875rem;
77+
font-family: Roboto, arial, sans-serif;
78+
font-weight: 100;
79+
line-height: 1.5;
80+
letter-spacing: 0.5px;
81+
}
82+
7583
p,
7684
center,
7785
.table {

packages/webui/src/client/ui/ClockView/CameraScreen/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,14 @@ export function CameraScreen({ playlist, studioId }: Readonly<IProps>): JSX.Elem
239239

240240
useWakeLock()
241241

242-
if (!studio && studioReady) return <h1 className="mod mal alc">{t("This studio doesn't exist.")}</h1>
242+
if (!studio && studioReady) return <h1 className="m-4 text-center">{t("This studio doesn't exist.")}</h1>
243243

244244
if (!playlist && rundownsReady)
245-
return <h1 className="mod mal alc">{t('There is no rundown active in this studio.')}</h1>
245+
return <h1 className="m-4 text-center">{t('There is no rundown active in this studio.')}</h1>
246246

247247
if ((playlist && !piecesReadyOnce) || !playlist)
248248
return (
249-
<div className="mod mal alc">
249+
<div className="m-4">
250250
<Spinner />
251251
</div>
252252
)

packages/webui/src/client/ui/RundownView.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,6 @@ const RundownHeader = withTranslation()(
12081208
>
12091209
<div className="media-elem me-2 sofie-logo" />
12101210
</Tooltip>
1211-
<div className="bd mls">
1212-
<span className="logo-text"></span>
1213-
</div>
12141211
</div>
12151212
</div>
12161213
{this.props.layout && RundownLayoutsAPI.isDashboardLayout(this.props.layout) ? (
@@ -1242,7 +1239,7 @@ const RundownHeader = withTranslation()(
12421239
</>
12431240
)}
12441241
<div className="flex-col right horizontal-align-right">
1245-
<div className="links mod close">
1242+
<div className="links close">
12461243
<NavLink to="/rundowns" title={t('Exit')}>
12471244
<CoreIcon.NrkClose />
12481245
</NavLink>
@@ -2828,7 +2825,7 @@ const RundownViewContent = translateWithTracker<IPropsWithReady, IState, ITracke
28282825
renderSegmentsList() {
28292826
if (!this.props.playlist || !this.props.rundowns.length) {
28302827
return (
2831-
<div className="mod">
2828+
<div className="m-2">
28322829
<Spinner />
28332830
</div>
28342831
)

0 commit comments

Comments
 (0)