reader: everything in one file
Including css & js. Should now works by itself
This commit is contained in:
		@@ -6,7 +6,167 @@
 | 
				
			|||||||
		<meta charset="UTF-8" />
 | 
							<meta charset="UTF-8" />
 | 
				
			||||||
		<meta name="description" content="@feed.desc (via morss)" />
 | 
							<meta name="description" content="@feed.desc (via morss)" />
 | 
				
			||||||
		<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" />
 | 
							<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" />
 | 
				
			||||||
		<link rel="stylesheet" href="https://thisisdallas.github.io/Simple-Grid/simpleGrid.css" />
 | 
					
 | 
				
			||||||
 | 
							<style type="text/css">
 | 
				
			||||||
 | 
								/* columns - from https://thisisdallas.github.io/Simple-Grid/simpleGrid.css */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								* {
 | 
				
			||||||
 | 
									box-sizing: border-box;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								#content {
 | 
				
			||||||
 | 
									width: 100%;
 | 
				
			||||||
 | 
									max-width: 1140px;
 | 
				
			||||||
 | 
									min-width: 755px;
 | 
				
			||||||
 | 
									margin: 0 auto;
 | 
				
			||||||
 | 
									overflow: hidden;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									padding-top: 20px;
 | 
				
			||||||
 | 
									padding-left: 20px; /* grid-space to left */
 | 
				
			||||||
 | 
									padding-right: 0px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								.item {
 | 
				
			||||||
 | 
									width: 33.33%;
 | 
				
			||||||
 | 
									float: left;
 | 
				
			||||||
 | 
									padding-right: 20px; /* column-space */
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								@@media handheld, only screen and (max-width: 767px) { /* @@ to escape from the template engine */
 | 
				
			||||||
 | 
									#content {
 | 
				
			||||||
 | 
										width: 100%;
 | 
				
			||||||
 | 
										min-width: 0;
 | 
				
			||||||
 | 
										margin-left: 0px;
 | 
				
			||||||
 | 
										margin-right: 0px;
 | 
				
			||||||
 | 
										padding-left: 20px; /* grid-space to left */
 | 
				
			||||||
 | 
										padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									.item {
 | 
				
			||||||
 | 
										width: auto;
 | 
				
			||||||
 | 
										float: none;
 | 
				
			||||||
 | 
										margin-left: 0px;
 | 
				
			||||||
 | 
										margin-right: 0px;
 | 
				
			||||||
 | 
										margin-top: 10px;
 | 
				
			||||||
 | 
										margin-bottom: 10px;
 | 
				
			||||||
 | 
										padding-left: 0px;
 | 
				
			||||||
 | 
										padding-right: 10px; /* column-space */
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								/* design */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								#header h1, #header h2, #header p {
 | 
				
			||||||
 | 
									font-family: sans;
 | 
				
			||||||
 | 
									text-align: center;
 | 
				
			||||||
 | 
									margin: 0;
 | 
				
			||||||
 | 
									padding: 0;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								#header h1 {
 | 
				
			||||||
 | 
									font-size: 2.5em;
 | 
				
			||||||
 | 
									font-weight: bold;
 | 
				
			||||||
 | 
									padding: 1em 0 0.25em;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								#header h2 {
 | 
				
			||||||
 | 
									font-size: 1em;
 | 
				
			||||||
 | 
									font-weight: normal;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								#header p {
 | 
				
			||||||
 | 
									color: gray;
 | 
				
			||||||
 | 
									font-style: italic;
 | 
				
			||||||
 | 
									font-size: 0.75em;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								#content {
 | 
				
			||||||
 | 
									text-align: justify;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									.item .title {
 | 
				
			||||||
 | 
										font-weight: bold;
 | 
				
			||||||
 | 
										display: block;
 | 
				
			||||||
 | 
										text-align: center;
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									.item .link {
 | 
				
			||||||
 | 
										color: inherit;
 | 
				
			||||||
 | 
										text-decoration: none;
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									.item:not(.active) {
 | 
				
			||||||
 | 
										cursor: pointer;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										height: 20em;
 | 
				
			||||||
 | 
										margin-bottom: 20px;
 | 
				
			||||||
 | 
										overflow: hidden;
 | 
				
			||||||
 | 
										text-overflow: ellpisps;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										padding: 0.25em;
 | 
				
			||||||
 | 
										position: relative;
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										.item:not(.active) .title {
 | 
				
			||||||
 | 
											padding-bottom: 0.1em;
 | 
				
			||||||
 | 
											margin-bottom: 0.1em;
 | 
				
			||||||
 | 
											border-bottom: 1px solid silver;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										.item:not(.active):before {
 | 
				
			||||||
 | 
											content: " ";
 | 
				
			||||||
 | 
											display: block;
 | 
				
			||||||
 | 
											width: 100%;
 | 
				
			||||||
 | 
											position: absolute;
 | 
				
			||||||
 | 
											top: 18.5em;
 | 
				
			||||||
 | 
											height: 1.5em;
 | 
				
			||||||
 | 
											background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										.item:not(.active) .article * {
 | 
				
			||||||
 | 
											max-width: 100%;
 | 
				
			||||||
 | 
											font-size: 1em !important;
 | 
				
			||||||
 | 
											font-weight: normal;
 | 
				
			||||||
 | 
											display: inline;
 | 
				
			||||||
 | 
											margin: 0;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
									.item.active {
 | 
				
			||||||
 | 
										background: white;
 | 
				
			||||||
 | 
										position: fixed;
 | 
				
			||||||
 | 
										overflow: auto;
 | 
				
			||||||
 | 
										top: 0;
 | 
				
			||||||
 | 
										left: 0;
 | 
				
			||||||
 | 
										height: 100%;
 | 
				
			||||||
 | 
										width: 100%;
 | 
				
			||||||
 | 
										z-index: 1;
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										body.noscroll {
 | 
				
			||||||
 | 
											overflow: hidden;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										.item.active > * {
 | 
				
			||||||
 | 
											max-width: 700px;
 | 
				
			||||||
 | 
											margin: auto;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										.item.active .title {
 | 
				
			||||||
 | 
											font-size: 2em;
 | 
				
			||||||
 | 
											padding: 0.5em 0;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										.item.active .article object,
 | 
				
			||||||
 | 
										.item.active .article video,
 | 
				
			||||||
 | 
										.item.active .article audio {
 | 
				
			||||||
 | 
											display: none;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
										.item.active .article img {
 | 
				
			||||||
 | 
											max-height: 20em;
 | 
				
			||||||
 | 
											max-width: 100%;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
							</style>
 | 
				
			||||||
	</head>
 | 
						</head>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<body>
 | 
						<body>
 | 
				
			||||||
@@ -18,9 +178,8 @@
 | 
				
			|||||||
			<p>- via morss</p>
 | 
								<p>- via morss</p>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<div id="content" class="grid grid-pad">
 | 
							<div id="content">
 | 
				
			||||||
			@for item in feed.items:
 | 
								@for item in feed.items:
 | 
				
			||||||
				<div class="col-1-3">
 | 
					 | 
				
			||||||
				<div class="item">
 | 
									<div class="item">
 | 
				
			||||||
					@if item.link:
 | 
										@if item.link:
 | 
				
			||||||
						<a class="title link" href="@item.link" target="_blank">@item.title</a>
 | 
											<a class="title link" href="@item.link" target="_blank">@item.title</a>
 | 
				
			||||||
@@ -35,7 +194,6 @@
 | 
				
			|||||||
						@end
 | 
											@end
 | 
				
			||||||
					</div>
 | 
										</div>
 | 
				
			||||||
				</div>
 | 
									</div>
 | 
				
			||||||
				</div>
 | 
					 | 
				
			||||||
			@end
 | 
								@end
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -45,6 +203,7 @@
 | 
				
			|||||||
			items[i].onclick = function()
 | 
								items[i].onclick = function()
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				this.classList.toggle('active')
 | 
									this.classList.toggle('active')
 | 
				
			||||||
 | 
									document.body.classList.toggle('noscroll')
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
	</script>
 | 
						</script>
 | 
				
			||||||
	</body>
 | 
						</body>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user