Skip to content

Commit 51d5ef2

Browse files
Merge pull request #1625 from clpetersonucf/dev-10.3.0-final-fixes
Dev 10.3.0 final fixes
2 parents f87da13 + 24da5ad commit 51d5ef2

File tree

7 files changed

+157
-107
lines changed

7 files changed

+157
-107
lines changed

fuel/app/classes/controller/media.php

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Controller_Media extends Controller
1010
{
1111

1212
use Trait_CommonControllerTemplate;
13+
use Trait_DarkMode;
1314

1415
// overrides Trait_CommonControllerTemplate->before()
1516
public function before()
@@ -54,6 +55,11 @@ public function get_import()
5455
Css::push_group(['media_import']);
5556
Js::push_group(['react', 'media']);
5657

58+
if ($this->is_using_darkmode())
59+
{
60+
$theme->get_template()->set('darkmode', true);
61+
}
62+
5763
return Response::forge($theme->render());
5864
}
5965

src/components/include.scss

+12-1
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,10 @@ header {
395395
padding: 10px;
396396
display: flex;
397397
flex-direction: row;
398-
// align-items: center;
399398
gap: 10px;
400399

400+
font-weight: 400;
401+
401402
&:hover{
402403
background-color: rgb(250,250,250);
403404
}
@@ -667,6 +668,16 @@ header {
667668
}
668669

669670
.notice {
671+
672+
.noticeClose {
673+
filter: invert(1);
674+
675+
&:hover {
676+
cursor: pointer;
677+
filter: invert(-0.5) sepia(1) saturate(80) hue-rotate(340deg);
678+
}
679+
}
680+
670681
&:hover{
671682
background-color: $color-features-dark;
672683
}

src/components/media.scss

+92-40
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ body.import {
1717
flex-flow: row nowrap;
1818
width: 800px;
1919

20+
font-weight: 400;
21+
2022
> section {
2123
position: relative;
2224
height: calc(100vh - 35px);
@@ -128,46 +130,6 @@ body.import {
128130
}
129131
}
130132

131-
.darkMode .media-importer {
132-
> section {
133-
&:first-child {
134-
&:before {
135-
color: #dadada;
136-
}
137-
138-
&:after {
139-
border-left: thin solid #dadada;
140-
}
141-
}
142-
143-
.loading-icon-holder {
144-
background: rgba(33,35,45,0.95);
145-
}
146-
}
147-
148-
.pane-header {
149-
&.darker {
150-
color: #484848;
151-
}
152-
153-
.close-button {
154-
&:after {
155-
color: #fff;
156-
}
157-
}
158-
}
159-
160-
.pane-footer {
161-
span.content {
162-
background: rgba(255,255,255,0.95);
163-
164-
&.error-state {
165-
color: #730000;
166-
}
167-
}
168-
}
169-
}
170-
171133
#drag-wrapper {
172134
position: relative;
173135
height: 333px;
@@ -332,4 +294,94 @@ body.import {
332294
font-size: 12px;
333295
}
334296
}
297+
}
298+
299+
.darkMode .media-importer {
300+
301+
color: #fff;
302+
background: $color-background-dark;
303+
304+
> section {
305+
&:first-child {
306+
&:before {
307+
color: #dadada;
308+
}
309+
310+
&:after {
311+
border-left: thin solid #dadada;
312+
}
313+
}
314+
315+
.loading-icon-holder {
316+
background: rgba(33,35,45,0.95);
317+
}
318+
}
319+
320+
#drag-wrapper {
321+
border-color: $color-background-dark-gray;
322+
background: $color-input-box-bg-dark;
323+
}
324+
325+
#sort-bar {
326+
#sort-options .sort-asc:after {
327+
border-bottom: $arrow_size solid #fff;
328+
}
329+
}
330+
331+
.sort-bar {
332+
input {
333+
color: #fff;
334+
border: solid 1px $color-input-box-border-dark;
335+
background: $color-input-box-bg-dark;
336+
}
337+
}
338+
339+
#file-display {
340+
.file-info {
341+
342+
color: #fff;
343+
344+
&:hover {
345+
background: $color-blue-hover-dark;
346+
}
347+
348+
&:nth-child(odd) {
349+
background: $color-background-dark-gray;
350+
351+
&:hover {
352+
background: $color-blue-hover-dark;
353+
}
354+
}
355+
356+
.file-name {
357+
color: $color-text-light-gray;
358+
359+
.file-type {
360+
color: $very-light-gray;
361+
}
362+
}
363+
}
364+
}
365+
366+
.pane-header {
367+
&.darker {
368+
color: $gray;
369+
}
370+
371+
.close-button {
372+
&:after {
373+
color: #fff;
374+
}
375+
}
376+
}
377+
378+
.pane-footer {
379+
span.content {
380+
background: none;
381+
382+
&.error-state {
383+
color: #730000;
384+
}
385+
}
386+
}
335387
}

src/components/my-widgets-score-semester-individual.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const MyWidgetScoreSemesterIndividual = ({ semester, instId, setInvalidLogin })
126126
const studentList = (
127127
<ul aria-label="Students">
128128
{state.filteredLogs.map(user => (
129-
<li key={user.id}>
129+
<li key={user.userId}>
130130
<button
131131
className={state.selectedUser.userId === user.userId ? 'buttonSelected' : ''}
132132
onClick={() => {

0 commit comments

Comments
 (0)