summaryrefslogtreecommitdiff
path: root/public/imworkingon/imworkingon.scss
blob: 5405fef2cbbb54628164b7d088fa3c6dc07b2db8 (plain)
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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
@use 'sass:math';
@use 'sass:list';

* {
	box-sizing: border-box;
}

article {
	border: solid 1px #333333;
	border-radius: 8px;
	margin: 0.5em;
}

article, div {
	overflow: hidden;
	text-overflow: ellipsis;
}

@mixin color-panel {
	background-color: #DDDDFF;
	border: solid 1px #8D8DA6;
	margin: -1px;
}

div > p {
	&:first-child {
		margin-top: 0;
	}
	&:last-child {
		margin-bottom: 0;
	}
}

time {
	text-decoration: dotted underline;
}

article.tag {
	padding: 0.5em 2em;
	& > h2 {
		margin: 0 0 0.25em -1em;
	}
}

article.contrib {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-areas:
		"uname submitted updated status"
		"uname url url url"
		"uname tag tag tag"
		"udesc desc desc desc";
	gap: 1px;

	& > div {
		padding: 0.5em;
	}
	
	div.contrib-upstream-name {
		grid-area: uname;
		@include color-panel;
		text-align: center;
		padding-top: 1em;
	}
	div.contrib-upstream-desc {
		grid-area: udesc;
		@include color-panel;
	}
	div.contrib-urls {
		grid-area: url;
		padding-bottom: 0;
	}
	div.contrib-tags {
		grid-area: tag;
		padding-top: 0;
	}
	div.contrib-submitted {
		grid-area: submitted;
		@include color-panel;
	}
	div.contrib-updated {
		grid-area: updated;
		@include color-panel;
	}
	div.contrib-status {
		grid-area: status;
		@include color-panel;
	}
	div.contrib-desc {
		grid-area: desc;
	}

	&.closed-contrib   div.contrib-status { background-color: #cf222e; color: white; }
	&.open-contrib     div.contrib-status { background-color: #d3ab3a; color: black; }
	&.merged-contrib   div.contrib-status {
		background: repeating-linear-gradient(315deg, #1f883d, #1f883d 1.0em, #d3ab3a 1.0em, #d3ab3a 1.4em);
		color: white;
		$shadow: [];
		@for $w from 1 through 3 {
			@for $a from 0 to 24 {
				$shadow: list.append($shadow, #{$w*math.cos($a*15deg)}px #{$w*math.sin($a*15deg)}px #1f883d);
			};
		};
		text-shadow: list.join($shadow, [], $separator: comma, $bracketed: false);
	}
	&.released-contrib div.contrib-status { background-color: #1f883d; color: white; }
}

article.standup {
	div {
		padding: 0.5em 1em;
	}
	div.standup-title {
		@include color-panel;
		text-align: center;
	}
}

$cal-inner-width: 0.3;
$cal-outer-width: 0.5;
$cal-total-width: (7*$cal-inner-width)+(2*$cal-outer-width);
section#standups {
	& > p, summary {
		text-align: center;
	}

	/* Calendar: Font styling */
	table {
		font-size: small;
	}
	td {
		text-align: right;
		&:has(a) {
			font-weight: bold;
		}
	}

	/* Calendar: Sizing */
	table {
		font-size: small;
		table-layout: fixed;
		width: #{$cal-total-width}in;
	}
	td, th {
		overflow: hidden;
		width: #{$cal-inner-width}in;
		max-width: #{$cal-inner-width}in;
		&:first-child, &:last-child {
			width: #{$cal-outer-width}in;
			max-width: #{$cal-outer-width}in;
		}
	}
	th {
		span {
			display: inline-block;
			transform-origin: 0 50%;
		}
		&:first-child span { transform: rotate(-90deg) translateX(-50%) translateY(50%); }
		&:last-child  span { transform: rotate(90deg) translateX(-50%) translateY(-50%); }
	}

	/* Calendar: Colors */
	td.odd-month:has(a)  { background-color: hsl(220, 50%, 88%); }
	td.odd-month         { background-color: hsl(220, 50%, 93%); }
	th.odd-month         { background-color: hsl(220, 50%, 80%); }
	td.even-month:has(a) { background-color: hsl(260, 50%, 88%); }
	td.even-month        { background-color: hsl(260, 50%, 93%); }
	th.even-month        { background-color: hsl(260, 50%, 80%); }

}

@media not (min-width: 8.5in) {
	kbd, code, samp, tt, pre {
		white-space: pre-wrap;
	}
}
@media (min-width: 8.5in) {
	body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) #{$cal-total-width}in;
		grid-template-rows:
			min-content
			min-content
			min-content
			min-content
			1fr
			min-content;
		grid-template-areas:
			"head1              head1"
			"head2              head2"
			"tags               standups"
			"contribs-pending   standups"
			"contribs-completed standups"
			"foot               foot";
	}
	body > header              { grid-area: head1; }
	section#intro              { grid-area: head2; }
	section#tags               { grid-area: tags; }
	section#contribs-pending   { grid-area: contribs-pending; }
	section#contribs-completed { grid-area: contribs-completed; }
	section#standups           { grid-area: standups; max-width: 3.2in; }
	body > footer              { grid-area: foot; }
	
	section#tags, section#standups {
		& > h2:first-child {
			margin-top: 0;
		}
	}
}