Skip to content

Commit

Permalink
Visual cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Pupix committed Nov 22, 2017
1 parent 2eb4488 commit 24e765e
Show file tree
Hide file tree
Showing 50 changed files with 141 additions and 362 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const electron = require('electron');
const {app} = electron;
const {BrowserWindow} = electron;
const root = __dirname + '/app/swagger';
const root = __dirname + '/app';

const UX = require('./lib/ux');

Expand All @@ -26,7 +26,7 @@
mainWindow.loadURL('file://' + root + '/index.html');

// Check if dev env FIXME
// mainWindow.openDevTools();
//mainWindow.openDevTools();

// Avoid white page on load.
mainWindow.webContents.on('did-finish-load', () => {
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion app/swagger/css/screen.css → app/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@
.swagger-section .swagger-ui-wrap p {
line-height: 1.4em;
padding: 0 0 10px;
color: #333333;
}
.swagger-section .swagger-ui-wrap q:before,
.swagger-section .swagger-ui-wrap q:after,
Expand Down
58 changes: 58 additions & 0 deletions app/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
html {
background: #FAFAFA;
color: hsla(0, 0%, 0%, 0.87);
}

.swagger-section .github {
width: 24px;
height: 24px;
display: block;
background: transparent url(../images/github.svg) 100%/100% no-repeat;
float: right;
}

.swagger-section #swagger-ui-container:empty {
display: none;
}

.swagger-section #swagger-ui-container {
margin: 48px auto;
}

.swagger-section #swagger-ui-container .container {
box-sizing: border-box;
padding: 24px;
background: white;
box-shadow: 0 4px 5px 0 hsla(0, 0%, 0%, 0.14), 0 1px 10px 0 hsla(0, 0%, 0%, 0.12), 0 2px 4px -1px hsla(0, 0%, 0%, 0.4);
}

.swagger-section #message-bar {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 100vw;
padding-top: 0;
min-height: auto;
color: hsla(0, 0%, 0%, 0.54);

font-size: 34px;
font-weight: 400;
letter-spacing: 0;
line-height: 40px;
}

@media (max-width: 960px) {
.swagger-section #swagger-ui-container {
margin: 24px auto;
}

.swagger-section #swagger-ui-container .info {
padding: 0 16px;
}

.swagger-section #swagger-ui-container .container {
margin: 0px auto;
padding: 16px;
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
59 changes: 59 additions & 0 deletions app/images/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 18 additions & 18 deletions app/swagger/swagger-ui.js → app/swagger-ui.js

Large diffs are not rendered by default.

File renamed without changes.
250 changes: 0 additions & 250 deletions app/swagger/css/style.css

This file was deleted.

Loading

0 comments on commit 24e765e

Please sign in to comment.