Skip to content

Commit 27d6724

Browse files
committed
Merge branch 'css-more-cleanup' of Arnei/opencast-admin-interface into develop
Pull request #1400 Css cleanup
2 parents 9413b64 + 1f39b23 commit 27d6724

File tree

117 files changed

+1272
-2446
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+1272
-2446
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Header.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,7 @@ const Header = () => {
195195
>
196196
<Tooltip active={!displayMenuNotify} title={t("SYSTEM_NOTIFICATIONS")}>
197197
<BaseButton onClick={() => setMenuNotify(!displayMenuNotify)} className="nav-dd-element">
198-
<LuBell style={{
199-
fontSize: "20px",
200-
}}/>
198+
<LuBell className="header-icon"/>
201199
{errorCounter !== 0 && (
202200
<span id="error-count" className="badge">
203201
{errorCounter}
@@ -326,11 +324,11 @@ const MenuNotify = ({
326324
>
327325
<span> {service.name} </span>
328326
{service.error ? (
329-
<span className="ng-multi-value ng-multi-value-red">
327+
<span className="multi-value multi-value-red">
330328
{service.status}
331329
</span>
332330
) : (
333-
<span className="ng-multi-value ng-multi-value-green">
331+
<span className="multi-value multi-value-green">
334332
{service.status}
335333
</span>
336334
)}

src/components/MainView.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import React from "react";
2-
import { styleNavClosed, styleNavOpen } from "../utils/componentsUtils";
2+
import cn from "classnames";
33

44
/**
55
* Component that renders the main view
66
*/
77
const MainView: React.FC<{ open: boolean, children: React.ReactNode }> = ({ open, children }) => {
88
return (
99
<main
10-
className="main-view"
11-
style={open ? styleNavOpen : styleNavClosed}
10+
className={cn("main-view", { open: open })}
1211
role="main"
1312
>
1413
{children}

src/components/NavBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const NavBar = ({
118118
onClick={showNewResourceModal}
119119
style={{ display: "flex", alignItems: "center" }}
120120
>
121-
<LuPlus className="btn-group-icon"/>
121+
<LuPlus className="btn-group-icon" />
122122
<span>{t(create.text)}</span>
123123
</BaseButton>
124124
)}

src/components/configuration/partials/wizard/GeneralPage.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,14 @@ const GeneralPage = <T, >({
2121
}) => {
2222
const { t } = useTranslation();
2323

24-
// Style used in themes details modal
25-
const editStyle = {
26-
color: "#666666",
27-
fontSize: "14px",
28-
};
29-
3024
return (
3125
<>
3226
{/* Fields for name and description */}
3327
<ModalContentTable>
3428
<div className="form-container">
3529
<div className="row">
3630
<Notifications context={"other"}/>
37-
<label className="required" style={isEdit ? editStyle : undefined}>
31+
<label className="required">
3832
{t("CONFIGURATION.THEMES.DETAILS.GENERAL.NAME")}
3933
</label>
4034
<Field
@@ -47,7 +41,7 @@ const GeneralPage = <T, >({
4741
/>
4842
</div>
4943
<div className="row">
50-
<label style={isEdit ? editStyle : undefined}>
44+
<label>
5145
{t("CONFIGURATION.THEMES.DETAILS.GENERAL.DESCRIPTION")}
5246
</label>
5347
<Field

src/components/configuration/partials/wizard/WatermarkPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const WatermarkPage = <T extends RequiredFormProps>({
9595
</header>
9696
<div className="obj-container padded">
9797
<div className="video-container">
98-
<div className="watermark-config">
98+
<div>
9999
<div className="position-selection">
100100
<BaseButton
101101
className={cn(

src/components/events/partials/EventActionCell.tsx

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ const EventActionCell = ({
137137
// tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS"} // Disabled due to performance concerns
138138
className={"action-cell-button comments"}
139139
>
140-
<LuMessageCircle style={{
141-
color: "#1d5888",
142-
}}/>
140+
<LuMessageCircle className="blue"/>
143141
</ButtonLikeAnchor>
144142
)}
145143

@@ -150,9 +148,7 @@ const EventActionCell = ({
150148
// tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.COMMENTS"} // Disabled due to performance concerns
151149
className={"action-cell-button comments-open"}
152150
>
153-
<LuMessageCircle style={{
154-
color: "#1d5888",
155-
}}/>
151+
<LuMessageCircle className="blue"/>
156152
</ButtonLikeAnchor>
157153
)}
158154

@@ -165,9 +161,7 @@ const EventActionCell = ({
165161
// tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.PAUSED_WORKFLOW"} // Disabled due to performance concerns
166162
className={"action-cell-button"}
167163
>
168-
<LuTriangleAlert style={{
169-
color: "#444",
170-
}}/>
164+
<LuTriangleAlert className="darkgrey"/>
171165
</ButtonLikeAnchor>
172166
}
173167

@@ -178,9 +172,7 @@ const EventActionCell = ({
178172
// tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.ASSETS"} // Disabled due to performance concerns
179173
className={"action-cell-button"}
180174
>
181-
<LuFolderOpen style={{
182-
color: "#444",
183-
}}/>
175+
<LuFolderOpen className="darkgrey"/>
184176
</ButtonLikeAnchor>
185177

186178
{/* Open dialog for embedded code*/}
@@ -190,9 +182,7 @@ const EventActionCell = ({
190182
// tooltipText={"EVENTS.EVENTS.TABLE.TOOLTIP.EMBEDDING_CODE"} // Disabled due to performance concerns
191183
className={"action-cell-button"}
192184
>
193-
<LuLink style={{
194-
color: "#444",
195-
}}/>
185+
<LuLink className="darkgrey"/>
196186
</ButtonLikeAnchor>
197187

198188
{/* Embedding Code Modal */}

src/components/events/partials/EventsNotesCell.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const EventsNotesCell = ({
5656
};
5757

5858
return (
59-
<div className="comment-container" key={row.id}>
59+
<div className="notes-container" key={row.id}>
6060
{comments.length === 0 &&
6161
<textarea
6262
className="textarea"
@@ -65,7 +65,7 @@ const EventsNotesCell = ({
6565
</textarea>
6666
}
6767
{comments.map((comment, key) => (
68-
<div className="comment" key={row.id + key}>
68+
<div className="notes" key={row.id + key}>
6969
<hr />
7070
<textarea
7171
className="textarea"

src/components/events/partials/ModalTabsAndPages/DetailsTobiraTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const TobiraTable = ({ tobiraData, i18nKey, openSubTab, handleDelete }: TobiraTa
219219
onClick={() => openSubTab("edit-path")}
220220
tooltipText="EVENTS.SERIES.DETAILS.TOBIRA.MOUNT_SERIES"
221221
>
222-
<LuSquarePen style={{ float: "right", cursor: "pointer", margin: "5px", fontSize: "14px" }} />
222+
<LuSquarePen className="pen" />
223223
</ButtonLikeAnchor>}
224224
</td>
225225
</tr>}
@@ -260,7 +260,7 @@ const TobiraTable = ({ tobiraData, i18nKey, openSubTab, handleDelete }: TobiraTa
260260
onClick={() => openSubTab("edit-path", hostPage)}
261261
tooltipText="EVENTS.SERIES.DETAILS.TOBIRA.EDIT_PATH"
262262
>
263-
<LuSquarePen style={{ float: "right", cursor: "pointer", margin: "5px", fontSize: "14px" }} />
263+
<LuSquarePen className="pen" />
264264
</ButtonLikeAnchor>
265265
<ConfirmModal
266266
close={() => deleteConfirmationModalRef.current?.close?.()}

src/components/events/partials/ModalTabsAndPages/EditScheduledEventsEditPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const EditScheduledEventsEditPage = <T extends RequiredFormProps>({
115115

116116
return (
117117
<>
118-
<ModalContentTable modalContentClassName="modal-content active">
118+
<ModalContentTable modalContentClassName="modal-content">
119119
<Notifications context="not_corner" />
120120

121121
{/* Table that shows conflicts with other events*/}
@@ -177,7 +177,7 @@ const EditScheduledEventsEditPage = <T extends RequiredFormProps>({
177177
)}
178178
</span>
179179
</td>
180-
<td className="editable ng-isolated-scope">
180+
<td className="editable">
181181
{/*
182182
* Per event there are 14 input fields, so with 'key * 14', the right
183183
* event is reached. After the '+' comes the number of the input field.
@@ -205,7 +205,7 @@ const EditScheduledEventsEditPage = <T extends RequiredFormProps>({
205205
)}
206206
</span>
207207
</td>
208-
<td className="editable ng-isolated-scope">
208+
<td className="editable">
209209
{/*
210210
* Per event there are 14 input fields, so with 'key * 14', the right
211211
* event is reached. After the '+' comes the number of the input field.

0 commit comments

Comments
 (0)