moved screen effects to divs a layer above to fix a scrolling issue
This commit is contained in:
		
							
								
								
									
										4
									
								
								_includes/screen-effects.html
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								_includes/screen-effects.html
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
<div class="screen-image"></div>
 | 
			
		||||
<div class="crt-flicker"></div>
 | 
			
		||||
<div class="crt-blur"></div>
 | 
			
		||||
<div class="crt-scanlines"></div>
 | 
			
		||||
@@ -3,8 +3,9 @@
 | 
			
		||||
	{% include head.html %}
 | 
			
		||||
	<body>
 | 
			
		||||
		<div class="screen">
 | 
			
		||||
			<div class="screen-image"></div>
 | 
			
		||||
			<div class="screen-content crt">
 | 
			
		||||
			<!-- effects -->
 | 
			
		||||
			{% include screen-effects.html %}
 | 
			
		||||
			<div class="screen-content">
 | 
			
		||||
				<!-- header -->
 | 
			
		||||
				{% include header.html %}
 | 
			
		||||
				<!-- nav -->
 | 
			
		||||
 
 | 
			
		||||
@@ -3,8 +3,9 @@
 | 
			
		||||
	{% include head.html %}
 | 
			
		||||
	<body>
 | 
			
		||||
		<div class="screen">
 | 
			
		||||
			<div class="screen-image"></div>
 | 
			
		||||
			<div class="screen-content crt">
 | 
			
		||||
			<!-- effects -->
 | 
			
		||||
			{% include screen-effects.html %}
 | 
			
		||||
			<div class="screen-content">
 | 
			
		||||
				<!-- header -->
 | 
			
		||||
				{% include header.html %}
 | 
			
		||||
				<!-- nav -->
 | 
			
		||||
 
 | 
			
		||||
@@ -3,8 +3,9 @@
 | 
			
		||||
	{% include head.html %}
 | 
			
		||||
	<body>
 | 
			
		||||
		<div class="screen">
 | 
			
		||||
			<div class="screen-image"></div>
 | 
			
		||||
			<div class="screen-content crt">
 | 
			
		||||
			<!-- effects -->
 | 
			
		||||
			{% include screen-effects.html %}
 | 
			
		||||
			<div class="screen-content">
 | 
			
		||||
				<!-- page content -->
 | 
			
		||||
				<div class="welcome">
 | 
			
		||||
					{{content}}
 | 
			
		||||
 
 | 
			
		||||
@@ -3,8 +3,9 @@
 | 
			
		||||
	{% include head.html %}
 | 
			
		||||
	<body>
 | 
			
		||||
		<div class="screen">
 | 
			
		||||
			<div class="screen-image"></div>
 | 
			
		||||
			<div class="screen-content crt">
 | 
			
		||||
			<!-- effects -->
 | 
			
		||||
			{% include screen-effects.html %}
 | 
			
		||||
			<div class="screen-content">
 | 
			
		||||
				<style>
 | 
			
		||||
					.meta {
 | 
			
		||||
						font-size: .7rem;
 | 
			
		||||
 
 | 
			
		||||
@@ -140,12 +140,14 @@ http://aleclownes.com/2017/02/01/crt-display.html
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.crt::after {
 | 
			
		||||
.crt-blur {
 | 
			
		||||
  content: " ";
 | 
			
		||||
  display: block;
 | 
			
		||||
  position: absolute;
 | 
			
		||||
  top: 0;
 | 
			
		||||
  left: 0;
 | 
			
		||||
  top: 141px;
 | 
			
		||||
  left: 117px;
 | 
			
		||||
  width: 768px;
 | 
			
		||||
  height: 584px;
 | 
			
		||||
  bottom: auto;
 | 
			
		||||
  right: auto;
 | 
			
		||||
  background: rgba(18, 16, 16, 0.1);
 | 
			
		||||
@@ -153,16 +155,16 @@ http://aleclownes.com/2017/02/01/crt-display.html
 | 
			
		||||
  z-index: 2;
 | 
			
		||||
  pointer-events: none;
 | 
			
		||||
  animation: flicker 3s infinite;
 | 
			
		||||
  width: 100%;
 | 
			
		||||
  height: 100%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.crt-flicker {
 | 
			
		||||
  content: " ";
 | 
			
		||||
  display: block;
 | 
			
		||||
  position: absolute;
 | 
			
		||||
  top: 0;
 | 
			
		||||
  left: 0;
 | 
			
		||||
  top: 141px;
 | 
			
		||||
  left: 117px;
 | 
			
		||||
  width: 768px;
 | 
			
		||||
  height: 584px;
 | 
			
		||||
  bottom: auto;
 | 
			
		||||
  right: auto;
 | 
			
		||||
  background: rgba(18, 16, 16, 0.1);
 | 
			
		||||
@@ -170,24 +172,22 @@ http://aleclownes.com/2017/02/01/crt-display.html
 | 
			
		||||
  z-index: 2;
 | 
			
		||||
  pointer-events: none;
 | 
			
		||||
  animation: flicker 3s infinite;
 | 
			
		||||
  width: inherit;
 | 
			
		||||
  height: inherit;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.crt::before {
 | 
			
		||||
.crt-scanlines {
 | 
			
		||||
  content: " ";
 | 
			
		||||
  display: block;
 | 
			
		||||
  position: absolute;
 | 
			
		||||
  top: auto;
 | 
			
		||||
  left: auto;
 | 
			
		||||
  top: 141px;
 | 
			
		||||
  left: 117px;
 | 
			
		||||
  width: 768px;
 | 
			
		||||
  height: 584px;
 | 
			
		||||
  bottom: auto;
 | 
			
		||||
  right: auto;
 | 
			
		||||
  z-index: 2;
 | 
			
		||||
  pointer-events: none;
 | 
			
		||||
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
 | 
			
		||||
  background-size: 100% 2px, 3px 100%;
 | 
			
		||||
  width: inherit;
 | 
			
		||||
  height: inherit;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.crt {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user