Skip to content

Commit

Permalink
Outsource all inline scripts and styles (#635)
Browse files Browse the repository at this point in the history
* Outsource all inline scripts and styles. Fixes #531.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
sgelis and pre-commit-ci[bot] committed Jan 15, 2023
1 parent 1b23cd8 commit 415529c
Show file tree
Hide file tree
Showing 71 changed files with 2,051 additions and 1,223 deletions.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions scss/fonts.scss → scss/components/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,52 @@

@font-face {
font-family: FiraSans;
src: url(../fonts/fira/FiraSans-Regular.woff);
src: url(../../fonts/fira/FiraSans-Regular.woff);
font-weight: normal;
}

@font-face {
font-family: FiraSans;
src: url(../fonts/fira/FiraSans-Medium.woff);
src: url(../../fonts/fira/FiraSans-Medium.woff);
font-weight: bold;
}

@font-face {
font-family: FiraSans;
src: url(../fonts/fira/FiraSans-Bold.woff);
src: url(../../fonts/fira/FiraSans-Bold.woff);
font-weight: bolder;
}

@font-face {
font-family: FiraSans;
src: url(../fonts/fira/FiraSans-Light.woff);
src: url(../../fonts/fira/FiraSans-Light.woff);
font-weight: lighter;
}

@font-face {
font-family: FiraSans;
src: url(../fonts/fira/FiraSans-RegularItalic.woff);
src: url(../../fonts/fira/FiraSans-RegularItalic.woff);
font-weight: normal;
font-style: italic;
}

@font-face {
font-family: FiraSans;
src: url(../fonts/fira/FiraSans-MediumItalic.woff);
src: url(../../fonts/fira/FiraSans-MediumItalic.woff);
font-weight: bold;
font-style: italic;
}

@font-face {
font-family: FiraSans;
src: url(../fonts/fira/FiraSans-BoldItalic.woff);
src: url(../../fonts/fira/FiraSans-BoldItalic.woff);
font-weight: bolder;
font-style: italic;
}

@font-face {
font-family: FiraSans;
src: url(../fonts/fira/FiraSans-LightItalic.woff);
src: url(../../fonts/fira/FiraSans-LightItalic.woff);
font-weight: lighter;
font-style: italic;
}
Expand All @@ -60,26 +60,26 @@

@font-face {
font-family: Fantasque;
src: url(../fonts/fantasque/FantasqueSansMono-Regular.woff);
src: url(../../fonts/fantasque/FantasqueSansMono-Regular.woff);
font-weight: normal;
}

@font-face {
font-family: Fantasque;
src: url(../fonts/fantasque/FantasqueSansMono-Bold.woff);
src: url(../../fonts/fantasque/FantasqueSansMono-Bold.woff);
font-weight: bold;
}

@font-face {
font-family: Fantasque;
src: url(../fonts/fantasque/FantasqueSansMono-RegItalic.woff);
src: url(../../fonts/fantasque/FantasqueSansMono-RegItalic.woff);
font-weight: normal;
font-style: italic;
}

@font-face {
font-family: Fantasque;
src: url(../fonts/fantasque/FantasqueSansMono-BoldItalic.woff);
src: url(../../fonts/fantasque/FantasqueSansMono-BoldItalic.woff);
font-weight: bold;
font-style: italic;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
124 changes: 124 additions & 0 deletions scss/pages/base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
body {
font-family: FiraSans, "Helvetica Neue", Arial, sans-serif;
background-color: #f3f3f3;
margin: 0;
font-weight: lighter;
}

pre {
font-family: Fantasque;
background-color: white !important;
padding: 0.5em !important;
margin: 0 !important;
font-size: 14px;
text-align: left;
}

code {
font-family: Fantasque;
background-color: white !important;
padding: 0 !important;
margin: 0 !important;
font-size: 14px;

}

html {
margin: 0;
}

#header {
height: 50px;
background-color: rgb(51, 51, 68);
width: 100%;
position: relative;
padding: 0;


}

#header div {
display: inline-block;
}

.menu {
height: 50px;
padding: 0;
margin: 0;

}

.menu-item {
height: 50px;
padding-left: 10px;
padding-right: 10px;
margin: 0;
margin-right: -4px;
color: white;

}

.menu-item a {
color: white !important;
}

#filter .menu-item {
margin-right: 0px;
}

.selectable-menu-item {
transition: background-color 0.15s ease, color 0.15s ease;

}

.selectable-menu-item:hover {
background-color: #f3f3f3;
cursor: pointer;
color: black !important;
}

.selectable-menu-item:hover a {
color: black !important;
}

.menu-item-selected {
background-color: #f3f3f3;
color: black !important;
}

.menu-item-selected a {
color: black !important;
}

.menu-item-outer {
display: table !important;
height: 100%;
width: 100%;
}

.menu-item-inner {
display: table-cell !important;
vertical-align: middle;
width: 100%;
}

a:visited {
color: black;
}

a {
color: black;
text-decoration: none;
}

#filter {
height: 50px;
position: absolute;
right: 0;
}

.description {
font-style: italic;
font-size: 14px;
margin-bottom: 5px;
}
39 changes: 39 additions & 0 deletions scss/pages/clear_db.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.wrapper {
width: 100%;
margin-bottom: 20px;
}

.inner {
margin: auto;
width: 960px;
}

.cleardb-form .cleardb-form-wrapper{
margin-bottom: 20px;
}

.cleardb-form label {
display: block;
margin-bottom: 8px;
}

.cleardb-form .btn {
background: #333344;
color: #fff;
padding: 10px 20px;
border-radius: 2px;
cursor: pointer;
box-shadow: none;
font-size: 16px;
line-height: 20px;
border: 0;
min-width: 150px;
text-align: center;
}
.cleardb-form label :last-child {
margin-bottom: 0;
}
.msg {
margin-top: 20px;
color: #bac54b;
}
53 changes: 53 additions & 0 deletions scss/pages/cprofile.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#query-info-div {
margin-top: 15px;
}

#query-info-div .timestamp-div {
font-size: 13px;

}

#pyprofile-div {
display: block;
margin: auto;
width: 960px;
}

.pyprofile {
text-align: left;
}

a {
color: #45ADA8;
}

a:visited {
color: #45ADA8;
}

a:hover {
color: #547980;
}

a:active {
color: #594F4F;
}

#graph-div {
padding: 25px;
background-color: white;
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 25px;
width: 960px;
text-align: center;
}

#percent {
width: 20px;
}

svg {
display: block;
}
32 changes: 32 additions & 0 deletions scss/pages/detail_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#traceback {
overflow: visible;
}

#time-div {
text-align: center;
margin-bottom: 30px;
}

#query-div {
text-align: center;
margin-bottom: 20px;
}

#query {
text-align: left;
margin: 0 auto;
display: inline-block;
}

.line {
width: 100%;
display: inline-block;
}

.the-line {
background-color: #c3c3c3;
}

pre {
margin: 0;
}
53 changes: 53 additions & 0 deletions scss/pages/profile_detail.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#query-info-div {
margin-top: 15px;
}

#query-info-div .timestamp-div {
font-size: 13px;

}

#pyprofile-div {
display: block;
margin: auto;
width: 960px;
}

.pyprofile {
text-align: left;
}

a {
color: #45ADA8;
}

a:visited {
color: #45ADA8;
}

a:hover {
color: #547980;
}

a:active {
color: #594F4F;
}

#graph-div {
padding: 25px;
background-color: white;
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 25px;
width: 960px;
text-align: center;
}

#percent {
width: 20px;
}

svg {
display: block;
}

0 comments on commit 415529c

Please sign in to comment.