Added background image
This commit is contained in:
		
							parent
							
								
									973cce5509
								
							
						
					
					
						commit
						321731f49e
					
				
					 2 changed files with 32 additions and 6 deletions
				
			
		|  | @ -48,6 +48,30 @@ a:hover #help { | |||
|     transform: translate(-50%); | ||||
| } | ||||
| 
 | ||||
| #background { | ||||
|     overflow: hidden; | ||||
|     position: absolute; | ||||
|     height: 100%; | ||||
|     width: 100%; | ||||
|     top: 0; | ||||
|     left: 0; | ||||
| } | ||||
| 
 | ||||
| #background::before { | ||||
|     content: ' '; | ||||
|     display: block; | ||||
|     background: url('/ab.jpg'); | ||||
|     background-repeat: no-repeat; | ||||
|     background-position: 50% 0; | ||||
|     background-size: cover; | ||||
|     left: 0; | ||||
|     top: 0; | ||||
|     width: 100%; | ||||
|     height: 100%; | ||||
|     position: absolute; | ||||
|     opacity: 0.3; | ||||
| } | ||||
| 
 | ||||
| #header { | ||||
|     border-radius: 10px; | ||||
|     text-align: center; | ||||
|  | @ -68,7 +92,7 @@ a:hover #help { | |||
|     overflow: hidden; | ||||
|     width: 65%; | ||||
|     margin: 0; | ||||
|     position: absolute; | ||||
|     position: relative; | ||||
|     top: 50%; | ||||
|     left: 50%; | ||||
|     transform: translate(-50%, -50%); | ||||
|  |  | |||
|  | @ -33,11 +33,13 @@ | |||
| </head> | ||||
| 
 | ||||
| <body> | ||||
|     <div id="content"> | ||||
|         <div id="header">{{ i18n.title }}</div> | ||||
|         <hr> | ||||
| {%- block main %} | ||||
| {%- endblock %} | ||||
|     <div id="background"> | ||||
|         <div id="content"> | ||||
|             <div id="header">{{ i18n.title }}</div> | ||||
|             <hr> | ||||
|             {%- block main %} | ||||
|             {%- endblock %} | ||||
|         </div> | ||||
|     </div> | ||||
|     <script type="text/javascript"> | ||||
|         initToggle(); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue