App.vue 5.55 KB
Newer Older
1
<template>
2 3 4 5
  <div id="App">
    <Navbar></Navbar>
    <MainContent></MainContent>
  </div>
6 7
</template>
<script>
8 9 10
  // loading font awesome icons before rendering anything else
  (function() { var css = document.createElement('link'); css.href = 'https://use.fontawesome.com/releases/v5.1.0/css/all.css'; css.rel = 'stylesheet'; css.type = 'text/css'; document.getElementsByTagName('head')[0].appendChild(css); })();

11 12
  import Navbar from './components/Navbar.vue'
  import MainContent from './components/MainContent.vue'
13

14 15 16 17 18 19 20
  export default {
    name: 'App',
    components: {
      Navbar,
      MainContent
    }
  }
21 22
</script>
<style>
23 24 25 26 27 28
  @font-face {
    font-family: 'sans';
    src: url('./assets/fonts/sourcesanspro-it-webfont.woff2') format('woff2'),
      url('./assets/fonts/sourcesanspro-it-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
29

30 31 32 33 34 35 36
  }
  @font-face {
    font-family: 'sans';
    src: url('./assets/fonts/sourcesanspro-light-webfont.woff2') format('woff2'),
      url('./assets/fonts/sourcesanspro-light-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
37

38 39 40 41 42 43 44
  }
  @font-face {
    font-family: 'sans';
    src: url('./assets/fonts/sourcesanspro-regular-webfont.woff2') format('woff2'),
      url('./assets/fonts/sourcesanspro-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
45

46 47 48 49 50 51 52
  }
  @font-face {
    font-family: 'sans';
    src: url('./assets/fonts/sourcesanspro-bold-webfont.woff2') format('woff2'),
      url('./assets/fonts/sourcesanspro-bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
53

54 55 56 57 58 59 60
  }
  @font-face {
    font-family: 'mono';
    src: url('./assets/fonts/sourcecodepro-regular-webfont.woff2') format('woff2'),
      url('./assets/fonts/sourcecodepro-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
61

62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
  }
  @font-face {
    font-family: 'mono';
    src: url('./assets/fonts/sourcecodepro-bold-webfont.woff2') format('woff2'),
      url('./assets/fonts/sourcecodepro-bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
  }
  @font-face {
    font-family: 'mono';
    src: url('./assets/fonts/sourcecodepro-semibold-webfont.woff2') format('woff2'),
      url('./assets/fonts/sourcecodepro-semibold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
  }
  @font-face {
    font-family: 'mono';
    src: url('./assets/fonts/sourcecodepro-medium-webfont.woff2') format('woff2'),
      url('./assets/fonts/sourcecodepro-medium-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
  }
  @font-face {
    font-family: 'mono';
    src: url('./assets/fonts/sourcecodepro-it-webfont.woff2') format('woff2'),
      url('./assets/fonts/sourcecodepro-it-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
  }
  @font-face {
    font-family: 'icon';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/fonts/material-icons.woff2') format('woff2');
  }
  html, body, a, p, div, li, dl {
    margin: 0;
    padding: 0;
    color: #222;
    font-family: 'Lato', 'sans', sans-serif;
  }
  html, body {
    width: 100%;
  }
  ul {
    padding: 0;
  }
  li {
    list-style: none;
  }
  a {
    text-decoration: none;
  }
  .full, .tools {
    margin: 0 auto;
    max-width: 1280px;
    display: block;
  }
  .tools {
    display: grid;
    grid-template-columns: 1fr 2fr;
  }
  main {
    padding: 1rem;
  }
  pre {
    padding: 5px;
    border: solid 1px #68c3a3;
    background-color: #eee;
    max-width: 1200px;
    font-family: 'mono';
    white-space: pre-wrap;
  }
  p {
    margin: 1rem 0;
  }
  .on {
    font-weight: bold;
  }
141 142


143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
  /*** FORMS ***/
  input[type=text],
  input[type=url] {
    line-height: 3em;
    border: 1px solid #eee;
    padding: 0 .5rem;
    min-width: 300px;
  }
  input[type=submit],
  .button {
    background-color: #68c3a3;
    border: none;
    padding: 0 10px;
    line-height: 3em;
    cursor: pointer;
    color: #fff;
  }
  input[type=submit]:hover,
  .button:hover {
    background-color: #56bc98;
  }
  /** icons **/
  /** See https://material.io/tools/icons/ **/
  .icon {
    font-family: 'icon';
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
    line-height: 1em;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variant: normal;
    vertical-align: baseline;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-font-feature-settings: 'liga';
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
  }
  textarea {
    width: 100%;
    border: 1px solid #f3f3f3;
    padding: 10px;
    min-height: 200px;
195
  }
196 197 198 199 200 201
  .main-button {
    border: 1px solid #384EAA;
  }
  .main-button:hover {
    background-color : #384EAA;
    color: white;
202
  }
203 204 205 206 207 208 209 210 211 212 213 214 215
  .main-button:hover:disabled {
    border: 1px solid #384EAA;
    background-color : #BDBADE;
    color: black;
  }
  .main-button-primary {
    background-color : #384EAA;
    color: white;
  }
  .main-button-primary:hover {
    background-color : #0D0850;
    color: white;
  }
216 217 218
  .loading-gif {
    padding-top: 8rem;
  }
219 220 221 222 223 224 225 226 227 228 229
  ul.dash {
    list-style: none;
    margin-left: 0;
    padding-left: 1em;
  }
  ul.dash > li:before {
      display: inline-block;
      content: "-";
      width: 1em;
      margin-left: -1em;
  }
230

Lucas Détré's avatar
Lucas Détré committed
231 232 233 234
  a:hover {
    color:#384EAA;
  }

235
</style>