Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit 099c02a

Browse files
alexspencerickr
authored andcommitted
Move react table css to global instead of the public folder.
1 parent 5d263cb commit 099c02a

5 files changed

Lines changed: 31 additions & 23 deletions

File tree

public/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<link rel="icon" type="image/png" sizes="32x32" href="%PUBLIC_URL%/favicon-32x32.png">
1717
<link rel="icon" type="image/png" sizes="96x96" href="%PUBLIC_URL%/favicon-96x96.png">
1818
<link rel="icon" type="image/png" sizes="16x16" href="%PUBLIC_URL%/favicon-16x16.png">
19-
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%/index.css">
2019
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
2120
<meta name="msapplication-TileColor" content="#ffffff">
2221
<meta name="msapplication-TileImage" content="%PUBLIC_URL%/ms-icon-144x144.png">

scripts/start.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const fs = require('fs');
1818
const chalk = require('chalk');
1919
const webpack = require('webpack');
2020
const WebpackDevServer = require('webpack-dev-server');
21-
const clearConsole = require('react-dev-utils/clearConsole');
2221
const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
2322
const {
2423
choosePort,
@@ -70,9 +69,6 @@ choosePort(HOST, DEFAULT_PORT)
7069
if (err) {
7170
return console.log(err);
7271
}
73-
if (isInteractive) {
74-
clearConsole();
75-
}
7672
console.log(chalk.cyan('Starting the development server...\n'));
7773
openBrowser(urls.localUrlForBrowser);
7874
});
Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.ReactModal__Content {
2-
overflow: visible !important;
2+
overflow: visible !important;
33
}
44

55
.ReactModal__Body--open {
6-
overflow: hidden;
6+
overflow: hidden;
77
}
88

99
.ReactModal__Body--open #root {
@@ -23,9 +23,9 @@
2323
}
2424

2525
.ReactTable .rt-tr-group:hover {
26-
background: #f3f3f3;
27-
cursor: pointer;
28-
box-shadow: 14px 0px 6px #c2c2c2;
26+
background: #f3f3f3;
27+
cursor: pointer;
28+
box-shadow: 14px 0px 6px #c2c2c2;
2929
}
3030

3131
.ReactTable .rt-table {
@@ -69,7 +69,8 @@
6969
text-align: center;
7070
}
7171

72-
.ReactTable .rt-thead .rt-th, .ReactTable .rt-thead .rt-td {
72+
.ReactTable .rt-thead .rt-th,
73+
.ReactTable .rt-thead .rt-td {
7374
padding: 5px 5px;
7475
line-height: normal;
7576
position: relative;
@@ -78,19 +79,23 @@
7879
box-shadow: inset 0 0 0 0 transparent;
7980
}
8081

81-
.ReactTable .rt-thead .rt-th.-sort-asc, .ReactTable .rt-thead .rt-td.-sort-asc {
82+
.ReactTable .rt-thead .rt-th.-sort-asc,
83+
.ReactTable .rt-thead .rt-td.-sort-asc {
8284
box-shadow: inset 0 3px 0 0 rgba(0, 0, 0, 0.6);
8385
}
8486

85-
.ReactTable .rt-thead .rt-th.-sort-desc, .ReactTable .rt-thead .rt-td.-sort-desc {
87+
.ReactTable .rt-thead .rt-th.-sort-desc,
88+
.ReactTable .rt-thead .rt-td.-sort-desc {
8689
box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.6);
8790
}
8891

89-
.ReactTable .rt-thead .rt-th.-cursor-pointer, .ReactTable .rt-thead .rt-td.-cursor-pointer {
92+
.ReactTable .rt-thead .rt-th.-cursor-pointer,
93+
.ReactTable .rt-thead .rt-td.-cursor-pointer {
9094
cursor: pointer;
9195
}
9296

93-
.ReactTable .rt-thead .rt-th:last-child, .ReactTable .rt-thead .rt-td:last-child {
97+
.ReactTable .rt-thead .rt-th:last-child,
98+
.ReactTable .rt-thead .rt-td:last-child {
9499
border-right: 0;
95100
}
96101

@@ -111,7 +116,8 @@
111116
border-right-color: #f7f7f7;
112117
}
113118

114-
.ReactTable .rt-thead .rt-header-pivot:after, .ReactTable .rt-thead .rt-header-pivot:before {
119+
.ReactTable .rt-thead .rt-header-pivot:after,
120+
.ReactTable .rt-thead .rt-header-pivot:before {
115121
left: 100%;
116122
top: 50%;
117123
border: solid transparent;
@@ -175,7 +181,8 @@
175181
display: inline-flex;
176182
}
177183

178-
.ReactTable .rt-th, .ReactTable .rt-td {
184+
.ReactTable .rt-th,
185+
.ReactTable .rt-td {
179186
flex: 1 0 0px;
180187
white-space: nowrap;
181188
text-overflow: ellipsis;
@@ -185,7 +192,8 @@
185192
transition-property: width, min-width, padding, opacity;
186193
}
187194

188-
.ReactTable .rt-th.-hidden, .ReactTable .rt-td.-hidden {
195+
.ReactTable .rt-th.-hidden,
196+
.ReactTable .rt-td.-hidden {
189197
width: 0 !important;
190198
min-width: 0 !important;
191199
padding: 0 !important;
@@ -290,7 +298,8 @@
290298
color: #fff;
291299
}
292300

293-
.ReactTable .-pagination .-previous, .ReactTable .-pagination .-next {
301+
.ReactTable .-pagination .-previous,
302+
.ReactTable .-pagination .-next {
294303
flex: 1;
295304
text-align: center;
296305
}
@@ -375,7 +384,8 @@
375384
transform: translateY(50%);
376385
}
377386

378-
.ReactTable input, .ReactTable select {
387+
.ReactTable input,
388+
.ReactTable select {
379389
border: 1px solid rgba(0, 0, 0, 0.1);
380390
background: #fff;
381391
padding: 5px 7px;
@@ -385,7 +395,8 @@
385395
outline: none;
386396
}
387397

388-
.ReactTable input:not([type="checkbox"]):not([type="radio"]), .ReactTable select {
398+
.ReactTable input:not([type="checkbox"]):not([type="radio"]),
399+
.ReactTable select {
389400
appearance: none;
390401
}
391402

@@ -410,7 +421,8 @@
410421
border-width: 5px 5px 2.5px;
411422
}
412423

413-
.ReactTable .rt-resizing .rt-th, .ReactTable .rt-resizing .rt-td {
424+
.ReactTable .rt-resizing .rt-th,
425+
.ReactTable .rt-resizing .rt-td {
414426
transition: none !important;
415427
cursor: col-resize;
416428
user-select: none;

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import ReactDOM from 'react-dom';
33
import 'font-awesome/css/font-awesome.css';
44
import App from './App';
55
import './index.css';
6+
import './index.global.css';
67

78
ReactDOM.render(
89
<App />,

src/scenes/home/header/topNav/topNav.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.topNav {
22
display: flex;
33
justify-content: flex-end;
4-
flex: 1 60%;
4+
flex: 1 0 60%;
55
font-size:20px;
66
}
77

0 commit comments

Comments
 (0)