CSS.
This commit is contained in:
		
							parent
							
								
									757b67b78c
								
							
						
					
					
						commit
						6ba6121988
					
				| @ -21,4 +21,5 @@ class LoginForm(Form): | ||||
|         text="Login", | ||||
|         type="button" | ||||
|     ) | ||||
|     | ||||
| 
 | ||||
|  | ||||
| @ -30,9 +30,7 @@ class HTMLFrame extends HTMLElement { | ||||
|           const parent = this | ||||
|           const markdownElement = document.createElement('div') | ||||
|           markdownElement.innerHTML = html | ||||
|           document.body.appendChild(markdownElement) | ||||
|           //parent.parentElement.appendChild(markdownElement)
 | ||||
|            | ||||
|           this.outerHTML = html | ||||
|         }else{ | ||||
|           this.container.innerHTML = html; | ||||
|         } | ||||
|  | ||||
| @ -1,18 +1,18 @@ | ||||
| 
 | ||||
| * { | ||||
|     margin: 0; | ||||
|     padding: 0; | ||||
|    | ||||
|     box-sizing: border-box; | ||||
|   } | ||||
| 
 | ||||
| .center { | ||||
|   .dialog { | ||||
| 
 | ||||
|     background-color:  #0f0f0f; | ||||
|     border-radius: 10px; | ||||
|     padding: 30px; | ||||
|      | ||||
|     text-align: center; | ||||
|     margin: auto auto; | ||||
|     left: 25%; | ||||
|     position: absolute; | ||||
|   } | ||||
|     width: 800px; | ||||
|     margin: 30px; | ||||
|     box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); | ||||
| } | ||||
| 
 | ||||
|   @media screen and (max-width: 500px) { | ||||
|     .center { | ||||
| @ -34,8 +34,15 @@ h2 { | ||||
|     margin-bottom: 20px; | ||||
| } | ||||
| body { | ||||
|     background-color: #000; | ||||
|     color: #efefef; | ||||
|     font-family: Arial, sans-serif; | ||||
|     background-color: #1a1a1a; | ||||
|     color: #e6e6e6; | ||||
|     line-height: 1.5; | ||||
|     display: flex; | ||||
|     flex-direction: column; | ||||
|     justify-content: center; | ||||
|     align-items: center; | ||||
|     min-height: 100vh; | ||||
| 
 | ||||
| } | ||||
| div { | ||||
|  | ||||
| @ -1,7 +1,10 @@ | ||||
| {% extends "base.html" %} | ||||
| 
 | ||||
| {% block main %} | ||||
| <div class="dialog"> | ||||
| 
 | ||||
|     <fancy-button size="auto"  text="Back" url="/back"></fancy-button> | ||||
| <html-frame url="/about.md"></html-frame> | ||||
| <fancy-button size="auto"  text="Back" url="/back"></fancy-button> | ||||
| 
 | ||||
| </div> | ||||
| {% endblock %} | ||||
| @ -1,7 +1,7 @@ | ||||
| {% extends "base.html" %} | ||||
| 
 | ||||
| {% block main %} | ||||
| 
 | ||||
|   <fancy-button url="/back" text="Back" size="auto"></fancy-button> | ||||
|    <generic-form class="center" url="/login-form.json"></generic-form> | ||||
| 
 | ||||
| {% endblock %} | ||||
|  | ||||
| @ -1,5 +1,7 @@ | ||||
| {% extends "base.html" %} | ||||
| 
 | ||||
| {% block main %} | ||||
| <fancy-button url="/back" text="Back" size="auto"></fancy-button> | ||||
|    | ||||
|   <generic-form class="center" url="/register-form.json"></generic-form> | ||||
| {% endblock %} | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user