Skip to content

Commit 1155e8b

Browse files
committed
styling
1 parent 7195cd7 commit 1155e8b

File tree

10 files changed

+67
-62
lines changed

10 files changed

+67
-62
lines changed

build/webpack-bundle.js

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

build/webpack-bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/app.css

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
@import url('https://fonts.googleapis.com/css?family=Roboto:300');
12
*{
23
margin: 0px;
34
}
5+
46
body{
5-
background-color: rgb(255, 255, 255);
6-
/* background: #8e9eab; fallback for old browsers;
7-
background: -webkit-linear-gradient(to right, #eef2f3, #8e9eab); Chrome 10-25, Safari 5.1-6;
8-
background: linear-gradient(to right, #eef2f3, #8e9eab); W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+; */
7+
background: linear-gradient(to right, #ffffff, #e2ebf0);
8+
}
9+
10+
h2{
11+
font-family: 'Avenir';
12+
letter-spacing: 1px;
13+
font-weight: 100;
14+
font-size: 1.5em;
15+
padding: 5px;
16+
text-transform: uppercase;
917
}
1018

1119
#app-container{
@@ -20,6 +28,7 @@ body{
2028
}
2129

2230
.reactTab {
31+
padding: 10px;
2332
display: grid;
2433
grid-template-rows: 1fr 3fr;
2534
grid-template-columns: 1fr 3fr;
@@ -35,19 +44,19 @@ body{
3544
max-height: 150px;
3645
overflow-y: scroll;
3746
border: 1px solid black;
38-
border-radius: 5px;
3947
padding: 5px 5px;
4048
margin-right: 10px;
4149
}
4250

4351
#treeWrapper{
52+
text-align: center;
4453
grid-area: tree;
4554
height: 700px;
46-
background-color: rgba(214, 214, 214, 0.4);
47-
border: 1px solid rgba(0, 0, 0, 0.3);
48-
border-radius: 5px;
4955
padding: 10px;
5056
margin-left: 10px;
57+
font-family: 'Roboto';
58+
font-size: .9em;
59+
letter-spacing: 1.5px;
5160
}
5261

5362
.rd3t-tree-container{
@@ -59,13 +68,25 @@ body{
5968
white-space: pre-wrap;
6069
}
6170

62-
/* graph tab */
6371
.graphQLTab {
6472
display: flex;
6573
flex-direction: row;
6674
justify-content: center;
6775
}
6876

77+
button{
78+
font-size: 10px;
79+
text-transform: uppercase;
80+
letter-spacing: 1.15px;
81+
border: solid 1px rgba(214, 214, 214);
82+
border-radius: 4px;
83+
padding: 0px 6px;
84+
height: 20px;
85+
cursor: pointer;
86+
font-family: 'Avenir';
87+
transition: all .4s ease;
88+
margin: 5px;
89+
}
6990

7091
/* For window */
7192
#window{
@@ -85,26 +106,23 @@ body{
85106
}
86107
.window-btn{
87108
width: 30%;
109+
height: 35px;
88110
box-sizing: border-box;
89-
border: solid 1px rgba(214, 214, 214);
90-
color: rgba(214, 214, 214, 0.8);
91-
text-transform: uppercase;
92-
border-radius: 5px;
111+
color: #555;
93112
background-color: Transparent;
94113
font-size: 15px;
95114
padding: 5px 0;
96-
cursor: pointer;
97-
font-family: 'Avenir';
98-
transition: all .4s ease;
99115
}
100-
.window-btn:focus{
116+
button:focus{
101117
outline: none;
102118
}
103-
.window-btn:hover{
104-
background-color: rgba(214, 214, 214, 0.8);
105-
color: black;
119+
button:hover{
120+
background-color: #555;
121+
border: none;
122+
color: white;
106123
}
107124
.active{
108-
background-color: rgba(214, 214, 214, 0.8);
109-
color: black;
125+
background-color: #555;
126+
border: none;
127+
color: white;
110128
}

public/graphql.css

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
11
#graphql-container {
22
width: 75%;
3-
background-color: rgba(214, 214, 214, 0.4);
4-
border: 1px solid rgba(0, 0, 0, 0.3);
5-
border-radius: 5px;
3+
/* border: 1px solid #f2f2f2; */
4+
/* border-radius: 5px; */
65
margin-left: 20px;
76
min-height: 600px;
87
}
98

10-
#vr-log{
11-
border-left: 1px solid #000;
12-
height: 100%;
13-
margin: 0px;
14-
}
15-
169
#req-res{
1710
display: flex;
1811
}
1912

20-
#graphql-hr {
21-
margin: 10px 0px;
22-
}
23-
2413
#graphql {
25-
border-right: 1px solid black;
2614
width: 50%;
2715
padding: 10px;
2816
}
@@ -42,10 +30,6 @@
4230
padding: 5px;
4331
}
4432

45-
.graphql:not(:last-child) {
46-
border-bottom: 1px solid grey;
47-
}
48-
4933
.graphql-p {
5034
margin-top: 10px;
5135
}

public/log-container.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#log-container{
22
padding: 10px;
33
width: 250px;
4-
background-color: rgba(214, 214, 214, 0.4);
5-
border: 1px solid rgba(0, 0, 0, 0.3);
6-
border-radius: 5px;
7-
max-height: 600px;
8-
height: 600px;
4+
max-height: 700px;
5+
height: 700px;
96
}
107

118
#log-header{
@@ -21,8 +18,12 @@
2118
.log{
2219
overflow-x: scroll;
2320
padding: 15px;
24-
background:rgba(255,255,255,0.5);
25-
margin: 8px 0px;
21+
margin: 15px;
22+
background-color: rgba(255, 255, 255);
23+
/* transition: box-shadow .1s; */
24+
box-shadow: 0 15px 30px 0 rgba(0,0,0,0.11),
25+
0 5px 15px 0 rgba(0,0,0,0.08);
26+
margin-bottom: 15px;
2627
}
2728

2829
.log-p{

public/stateContainer.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
grid-area: diff;
33
max-height: 500px;
44
overflow-y: scroll;
5-
background-color: rgba(214, 214, 214, 0.4);
6-
border: 1px solid rgba(0, 0, 0, 0.3);
7-
border-radius: 5px;
85
padding: 10px;
96
margin-top: 10px;
107
margin-right: 10px;
@@ -18,9 +15,14 @@
1815

1916
.stateDiff-div {
2017
overflow-x: scroll;
21-
padding: 15px;
22-
background:rgba(255,255,255,0.5);
23-
margin: 8px 0px;
18+
font-size: .9em;
19+
line-height: .8em;
20+
letter-spacing: 0.50px;
21+
background-color: rgba(255, 255, 255);
22+
box-shadow: 0 15px 30px 0 rgba(0,0,0,0.11),
23+
0 5px 15px 0 rgba(0,0,0,0.08);
24+
margin-bottom: 15px;
25+
padding: 10px;
2426
}
2527

2628
.state-span{

src/containers/GraphQLContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const GraphQLContainer = ({ logs, schema, log }) => {
1717
<GraphQLSchema schema={schema} />
1818
</div>
1919
) : (
20-
<h1>No requests have been made yet.</h1>
20+
<p>No requests have been made yet.</p>
2121
)}
2222
</div>
2323
);

src/containers/LogContainer.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ const LogContainer = props => {
2121
return (
2222
<div id='log-container'>
2323
<div id='log-header'>
24-
<h2>Requests Log</h2>
25-
<button data-log='req-log' onClick={(e) => { props.clearLog(e); }}>Clear All</button>
24+
<h2>Request Log</h2>
25+
<button className='appButton' data-log='req-log' onClick={(e) => { props.clearLog(e); }}>Clear</button>
2626
</div>
27-
<hr />
2827
<div id='logs'>{logs}</div>
2928
</div>
3029
);

src/containers/StateContainer.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ const StateContainer = ({ stateDiffs, clearLog }) => {
88
<div id='state-header'>
99
<h2>State Changes</h2>
1010
<button
11+
className='appButton'
1112
data-log='state-log'
1213
onClick={e => {
1314
clearLog(e);
1415
}}
1516
>
16-
Clear All
17+
Clear
1718
</button>
1819
</div>
1920
{stateDiffs.map((el, i) => {

src/devtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class App extends Component {
195195
<div>
196196
{this.state.appState.length === 0 ?
197197
<div id='devToolsLoader'>
198-
<h1>Please trigger a setState() to activate Lucid devtool.<br /></h1>
198+
<p>Please trigger a setState() to activate Lucid devtool.<br /></p>
199199
<p>Lucid works best on React 16+ apps running in development mode</p>
200200
</div>
201201
:

0 commit comments

Comments
 (0)