aboutsummaryrefslogtreecommitdiff
path: root/ui/src/routes/+layout.svelte
blob: 6539952110d151c8cc2cdd2fac276feee3f7cce5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
<body>
    <nav>
        <a href="/">Home</a>
        |
        <a href="/new">New</a>
        <a href="/login" class="nav-right">Login</a>
    </nav>


    <div class="container">
        <slot></slot>
    </div>
</body>

<style>
nav {
  border-bottom: 3px solid #000;
  padding-bottom: 10px;
}
.nav-right {
    display: block;
    float: right;
}
a {
  text-decoration: none;
  color: #268bd2;
}
a:visited {
  color: #d22653;
  /*
   * Previous colors:
   * #aa26d2;
   * #888;
   */
}
a:hover {
  text-decoration: underline;
}

code {
  /* color: #9672d5; */
  color: #222;
  /* background-color: #ff000020; */
  /* padding: 2px; */
  border: 1px solid;
  padding: 2px;
  font-size: .8em;
  font-family: "Roboto Mono", "Monaco", "Lucida Console", "DejaVu Sans Mono", "monospace";
}

pre code, textarea {
  color: #000;
  background-color: #FFFFEA;
  display: block;
  padding: 10px;
  border: 1px solid;
  line-height: 1.1;
  overflow: auto;
}

.code {
  color: #000;
  background-color: #FFFFEA;
  display: block;
  padding: 10px;
  border: 1px solid;
  line-height: 1.1;
  overflow: auto;
  border: 1px solid;
  padding: 2px;
  font-size: .8em;
  font-family: "Roboto Mono", "Monaco", "Lucida Console", "DejaVu Sans Mono", "monospace";
}

textarea {
	width: 100%;
}

blockquote {
  border-left: 4px solid #aaa;
  padding-left: 1em;
}

/*
 * The following was shamelessly ripped from:
 * http://bettermotherfuckingwebsite.com/
 * And subsequently modified to suit my needs
 */

body {
  margin: 40px auto;
  max-width: 80%;
  line-height: 1.6;
  font-size: 1em;
  color: #444;
  padding: 0 10px;
  /* Added because some browsers don't default to white */
  background-color: #fff;
}

img {
  width: 100%;
  height: auto;
}

h1,h2,h3 {
  line-height: 1.2
}

@media screen and (min-width: 960px) {
  body {
    max-width: 768px;
  }
}

@media print {
  .hide-print { display: none; }
  nav {
    display: none;
  }
  body {
    background-color: transparent;
    line-height: 1;
    font-size: 10pt;
    /* margin: 5px auto; */
    margin: 5px 5px 5px 5px;
    max-width: 100%;
  }

  pre code {
    color: #000;
    background-color: inherit;
    display: block;
    padding: 10px;
    border: none;
  }

}

</style>