-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
105 lines (86 loc) · 2.25 KB
/
style.scss
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
/**
* MedCalc Newsfeed Styles
* Created by Pascal Pfiffner, 2012-11-09
*/
$tintcolor: rgb(4,120,136);
$headerbgcolor: rgb(4,120,136);
$onheadercolor: white; //rgb(129,187,194);
:root {
color-scheme: light dark;
--background-color: white;
--separator-color: rgb(197,198,200);
--news-date-color: rgba(0,0,0,0.6);
}
@media (prefers-color-scheme: dark) {
:root {
--background-color: black;
--separator-color: rgb(49,50,54);
--news-date-color: rgba(255,255,255,0.6);
}
}
html, body {
margin: 0; padding: 0;
font: 17px/23px -apple-system, "Helvetica Neue", Roboto, Helvetica, Arial, sans-serif; font: -apple-system-body;
line-height: 1.4;
background-color: var(--background-color);
}
a:link, a:active, a:visited {
color: $tintcolor;
text-decoration: none;
}
// header
header {
height: 60px;
padding: 20px 15px;
clear: right;
color: $onheadercolor; background-color: $headerbgcolor;
#medcalc {
display: block;
width: 130px; height: 100px;
margin-top: -20px;
background: url('logo.png') top left no-repeat;
@media screen and (-webkit-min-device-pixel-ratio: 1.5), screen and (min-device-pixel-ratio: 1.5), screen and (min-resolution: 192dpi) {
background-image: url('[email protected]'); background-size: 130px 100px;
}
@media screen and (-webkit-min-device-pixel-ratio: 2.5), screen and (min-device-pixel-ratio: 2.5), screen and (min-resolution: 320dpi) {
background-image: url('[email protected]'); background-size: 130px 100px;
}
}
}
#tagline {
clear: right; float: right;
margin: 4px 1px 0 0;
font-size: 0.85em; font: -apple-system-footnote;
}
// loader
#loader {
padding: 30px 15px;
text-align: center; color: rgba(0,0,0,0.75);
}
// Services
#twitter_follow {
float: right; width: 144px;
}
// news
#news {
padding: 0 0 20px;
}
.newsitem {
margin: 0; padding: 0.85em 15px;
word-wrap: break-word;
background: linear-gradient(var(--separator-color), var(--separator-color) 50%, transparent 50%) top right / 100% 1px no-repeat;
-webkit-tap-highlight-color: transparent;
&:first-child {
background: none;
}
.date {
float: right;
margin: 0 0 0.5em 0.75em;
font-size: 0.85em; font: -apple-system-footnote; color: var(--news-date-color);
}
&.unread-true {
.date {
color: rgb(64, 160, 201);
}
}
}