pull/10/head
Hunter Long 2018-06-28 09:44:56 -07:00
parent 6aa5ebce46
commit b4ee5ae514
5 changed files with 117 additions and 51 deletions

View File

@ -51,7 +51,6 @@ notifications:
email: false
before_install:
- gem install sass
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then travis_wait 30 docker pull karalabe/xgo-latest; fi
before_script:

View File

@ -4,17 +4,20 @@ APP="statup"
REPO="hunterlong/statup"
SASS=1.7.1
# COMPILE BOOTSTRAP
git clone https://github.com/twbs/bootstrap.git
cd bootstrap
npm install
rm -f scss/_variables.scss
mv html/scss/bootstrap.scss scss/_variables.scss
cp ../html/scss/_variables.scss scss/_variables.scss
npm run dist
mv dist/css/bootstrap.min.cs html/css/bootstrap.min.css
mv dist/css/bootstrap.min.css ../html/css/bootstrap.min.css
cd ../
rm -rf bootstrap
# RENDERING CSS
sass html/scss/base.scss:html/css/base.css
gem install sass
sass html/scss/base.scss html/css/base.css
# MIGRATION SQL FILE FOR CURRENT VERSION
printf "UPDATE core SET version='$VERSION';\n" >> sql/upgrade.sql
@ -22,6 +25,7 @@ printf "UPDATE core SET version='$VERSION';\n" >> sql/upgrade.sql
# COMPILE SRC INTO BIN
rice embed-go
# BUILD STATUP GOLANG BINS
mkdir build
xgo -go 1.10.x --targets=darwin/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo -go 1.10.x --targets=darwin/386 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
@ -30,7 +34,6 @@ xgo -go 1.10.x --targets=linux/386 --dest=build -ldflags="-X main.VERSION=$VERSI
xgo -go 1.10.x --targets=windows-6.0/amd64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo -go 1.10.x --targets=linux/arm-7 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
xgo -go 1.10.x --targets=linux/arm64 --dest=build -ldflags="-X main.VERSION=$VERSION" ./
CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.VERSION=$VERSION" -a -o build/$APP-linux-alpine .
cd build

View File

@ -11,72 +11,88 @@
================
*/
HTML, BODY {
background-color: #fcfcfc; }
background-color: #fcfcfc;
}
.container {
padding-top: 20px;
padding-bottom: 20px;
max-width: 860px; }
max-width: 860px;
}
.online_list .badge {
margin-top: 0.2rem; }
margin-top: 0.2rem;
}
.navbar {
margin-bottom: 30px; }
margin-bottom: 30px;
}
.btn-sm {
line-height: 1.3;
font-size: 0.75rem; }
font-size: 0.75rem;
}
.view_service_btn {
position: absolute;
bottom: -40px;
right: 40px; }
right: 40px;
}
.service_lower_info {
position: absolute;
bottom: -40px;
left: 40px;
color: #d1ffca;
font-size: 0.85rem; }
font-size: 0.85rem;
}
.lg_number {
font-size: 26pt;
font-weight: bold;
display: block;
color: #474747; }
color: #474747;
}
.stats_area {
text-align: center;
color: #a5a5a5; }
color: #a5a5a5;
}
.lower_canvas {
height: 55px;
width: 100%;
background-color: #48d338;
padding: 17px 10px; }
padding: 17px 10px;
}
.lower_canvas SPAN {
font-size: 1rem; }
font-size: 1rem;
}
.footer {
text-decoration: none;
margin-top: 20px; }
margin-top: 20px;
}
.footer A {
color: #aaaaaa;
text-decoration: none; }
text-decoration: none;
}
.footer A:HOVER {
color: #6d6d6d; }
color: #6d6d6d;
}
.online_badge {
color: #fff;
background-color: #35b317; }
background-color: #35b317;
}
.offline_badge {
color: #fff;
background-color: #c51919; }
background-color: #c51919;
}
.progress {
margin-top: -20px;
@ -84,88 +100,136 @@ HTML, BODY {
margin-bottom: 15px;
width: calc(100% + 40px);
height: 3px;
border-radius: 0; }
border-radius: 0;
}
.card {
background-color: #fff; }
background-color: #fff;
}
.card-body {
overflow: hidden; }
overflow: hidden;
}
.card-body H4 A {
color: #239e07;
text-decoration: none; }
text-decoration: none;
}
.chart-container {
position: relative;
height: 170px;
width: 100%; }
width: 100%;
}
.btn-primary {
background-color: white;
border: 1px solid #b9b9b9;
color: #353535;
height: 35px;
padding: 5px 15px; }
.CodeMirror {
/* Bootstrap Settings */
box-sizing: border-box;
margin: 0;
font: inherit;
overflow: auto;
font-family: inherit;
display: block;
width: 100%;
padding: 0px;
font-size: 14px;
line-height: 1.5;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
/* Code Mirror Settings */
font-family: monospace;
position: relative;
overflow: hidden;
height: 60vh;
}
.CodeMirror-focused {
/* Bootstrap Settings */
border-color: #66afe9;
outline: 0;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}
@media (max-width: 767px) {
.sm-container {
margin-top: 40px !important;
padding: 0 !important; }
padding: 0 !important;
}
.list-group-item H5 {
font-size: 0.9rem; }
font-size: 0.9rem;
}
.container {
padding: 0 !important; }
padding: 0 !important;
}
.navbar {
margin-left: 0px;
margin-top: 0px;
width: 100%;
margin-bottom: 0; }
margin-bottom: 0;
}
.card-body {
font-size: 6pt;
padding: 5px 5px; }
padding: 5px 5px;
}
.lg_number {
font-size: 1.5rem; }
font-size: 1.5rem;
}
.stats_area {
margin-top: 35px !important;
margin-bottom: 35px !important; }
margin-bottom: 35px !important;
}
.stats_area .col-4 {
padding-left: 0;
padding-right: 0; }
padding-right: 0;
}
.lower_canvas SPAN {
font-size: 0.9rem;
float: left; }
float: left;
}
.btn-sm {
line-height: 0.9rem;
font-size: 0.65rem; }
font-size: 0.65rem;
}
.full-col-12 {
padding-left: 0px;
padding-right: 0px; }
padding-right: 0px;
}
.card {
border: 0;
border-radius: 0; }
border-radius: 0;
}
.list-group-item {
border-top: 1px solid #e4e4e4;
border: 0px; }
border: 0px;
}
.list-group-item:first-child {
border-top-left-radius: 0;
border-top-right-radius: 0; }
border-top-right-radius: 0;
}
.list-group-item:last-child {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0; } }
border-bottom-left-radius: 0;
}
}
/*# sourceMappingURL=base.css.map */

File diff suppressed because one or more lines are too long

View File

@ -948,4 +948,4 @@ $pre-scrollable-max-height: 340px !default;
// Printing
$print-page-size: a3 !default;
$print-body-min-width: map-get($grid-breakpoints, "lg") !default;
$print-body-min-width: map-get($grid-breakpoints, "lg") !default;