Files
myPrayerJournal/src/app/src/App.vue
T

245 lines
4.4 KiB
Vue
Raw Normal View History

2017-08-05 22:48:09 -05:00
<template lang="pug">
2018-08-16 21:57:54 -05:00
#app(role='application')
2017-09-23 10:53:40 -05:00
navigation
2018-08-16 21:57:54 -05:00
#content
2017-09-23 10:53:40 -05:00
router-view
vue-progress-bar
2017-09-30 12:36:57 -05:00
toast(ref='toast')
2018-08-16 21:57:54 -05:00
footer.mpj-text-right.mpj-muted-text
p
2017-10-23 21:19:39 -05:00
| myPrayerJournal v{{ version }}
br
em: small.
2018-05-19 23:22:44 -05:00
#[router-link(:to="{ name: 'PrivacyPolicy' }") Privacy Policy] &bull;
#[router-link(:to="{ name: 'TermsOfService' }") Terms of Service] &bull;
2018-08-16 22:09:39 -05:00
#[a(href='https://github.com/bit-badger/myprayerjournal' target='_blank') Developed] and hosted by
#[a(href='https://bitbadger.solutions' target='_blank') Bit Badger Solutions]
2017-07-29 16:28:27 -05:00
</template>
<script>
2017-09-23 10:53:40 -05:00
'use strict'
2018-08-18 19:32:48 -05:00
import Navigation from './components/common/Navigation.vue'
2017-07-29 16:28:27 -05:00
2017-10-19 15:11:51 -05:00
import { version } from '../package.json'
2017-07-29 16:28:27 -05:00
export default {
name: 'app',
components: {
Navigation
2017-09-30 12:36:57 -05:00
},
2017-10-19 15:11:51 -05:00
data () {
2018-08-21 20:39:41 -05:00
return {}
2017-10-19 15:11:51 -05:00
},
2017-09-30 12:36:57 -05:00
mounted () {
this.$refs.toast.setOptions({ position: 'bottom right' })
},
computed: {
toast () {
return this.$refs.toast
2018-08-21 20:39:41 -05:00
},
version () {
return version.endsWith('.0') ? version.substr(0, version.length - 2) : version
2017-09-30 12:36:57 -05:00
}
2017-07-29 16:28:27 -05:00
}
}
</script>
<style>
2017-10-08 19:19:24 -05:00
html, body {
background-color: whitesmoke;
2018-08-16 21:57:54 -05:00
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-size: 1rem;
2017-10-08 19:19:24 -05:00
}
2017-07-29 16:28:27 -05:00
body {
2018-08-16 21:57:54 -05:00
padding-top: 50px;
margin: 0;
}
2018-08-18 09:13:38 -05:00
h1, h2, h3, h4, h5 {
font-weight: 500;
2018-08-18 11:07:30 -05:00
margin-top: 0;
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 1.75rem;
}
h4 {
font-size: 1.5rem;
}
h5 {
font-size: 1.25rem;
2018-08-18 09:13:38 -05:00
}
2018-08-16 21:57:54 -05:00
p {
margin-bottom: 0;
}
2018-08-18 19:32:48 -05:00
input, textarea, select {
2018-08-18 11:07:30 -05:00
border-radius: .25rem;
2018-08-18 19:32:48 -05:00
font-size: 1rem;
}
textarea {
font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;
}
input, select {
font-family: inherit;
2018-08-18 11:07:30 -05:00
}
2018-08-16 21:57:54 -05:00
button,
a[role="button"] {
border: solid 1px #050;
border-radius: .5rem;
2018-08-18 11:07:30 -05:00
background-color: rgb(235, 235, 235);
2018-08-17 20:59:57 -05:00
padding: .25rem;
2018-08-18 11:07:30 -05:00
font-size: 1rem;
}
a[role="button"]:link,
a[role="button"]:visited {
color: black;
2018-08-17 20:59:57 -05:00
}
button.primary,
a[role="button"].primary {
background-color: white;
border-width: 3px;
}
2018-08-16 21:57:54 -05:00
button:hover,
a[role="button"]:hover {
2018-08-17 20:59:57 -05:00
cursor: pointer;
2018-08-16 21:57:54 -05:00
background-color: #050;
color: white;
text-decoration: none;
2017-07-29 16:28:27 -05:00
}
label {
font-variant: small-caps;
font-size: 1.1rem;
}
label.normal {
font-variant: unset;
font-size: unset;
}
2017-07-29 16:28:27 -05:00
footer {
border-top: solid 1px lightgray;
margin-top: 1rem;
padding: 0 1rem;
}
2017-08-06 23:17:08 -05:00
footer p {
margin: 0;
}
2017-10-19 15:11:51 -05:00
a:link, a:visited {
color: #050;
2018-08-16 21:57:54 -05:00
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.mpj-main-content {
max-width: 60rem;
margin: auto;
}
.mpj-main-content-wide {
margin: .5rem;
}
@media screen and (max-width: 21rem) {
.mpj-main-content-wide {
margin: 0;
}
2017-10-19 15:11:51 -05:00
}
2017-10-01 16:15:56 -05:00
.mpj-request-text {
white-space: pre-line;
}
2018-08-17 22:12:14 -05:00
.mpj-request-list p {
border-top: solid 1px lightgray;
}
.mpj-request-list p:first-child {
border-top: none;
}
2018-08-16 21:57:54 -05:00
.mpj-request-log {
width: 100%;
}
.mpj-request-log thead th {
border-top: solid 1px lightgray;
border-bottom: solid 2px lightgray;
text-align: left;
}
.mpj-request-log tbody td {
border-bottom: dotted 1px lightgray;
vertical-align: top;
}
.mpj-bg {
2017-10-08 19:19:24 -05:00
background-image: -webkit-gradient(linear, left top, left bottom, from(#050), to(whitesmoke));
background-image: -webkit-linear-gradient(top, #050, whitesmoke);
background-image: -moz-linear-gradient(top, #050, whitesmoke);
background-image: linear-gradient(to bottom, #050, whitesmoke);
}
2018-08-16 21:57:54 -05:00
.mpj-text-center {
text-align: center;
}
.mpj-text-nowrap {
white-space: nowrap;
}
.mpj-text-right {
text-align: right;
}
.mpj-muted-text {
2018-08-18 09:13:38 -05:00
color: rgba(0, 0, 0, .6);
}
.mpj-narrow {
max-width: 40rem;
margin: auto;
}
2018-08-18 11:07:30 -05:00
.mpj-skinny {
max-width: 20rem;
margin: auto;
}
2018-08-18 19:32:48 -05:00
.mpj-full-width {
width: 100%;
}
2018-08-18 09:13:38 -05:00
.mpj-modal {
position: fixed;
z-index: 8;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, .4);
}
.mpj-modal-content {
background-color: whitesmoke;
border: solid 1px #050;
border-radius: .5rem;
animation-name: animatetop;
animation-duration: 0.4s;
padding: 1rem;
margin-top: 4rem;
}
@keyframes animatetop {
from {
top: -300px;
opacity: 0;
}
to {
top: 0;
opacity: 1;
}
}
.mpj-modal-content header {
margin: -1rem -1rem .5rem;
border-radius: .4rem;
}
2018-08-18 11:07:30 -05:00
.mpj-modal-content header h5 {
2018-08-18 09:13:38 -05:00
color: white;
margin: 0;
padding: 1rem;
2018-08-16 21:57:54 -05:00
}
.mpj-margin {
margin-left: 1rem;
margin-right: 1rem;
}
2018-08-17 20:59:57 -05:00
.material-icons {
vertical-align: middle;
}
2017-07-29 16:28:27 -05:00
</style>