install-usercss: css tweaks
* pad the Install button * remove global * selector * add narrow @media query * simplify css
This commit is contained in:
		
							parent
							
								
									d767ad7a8c
								
							
						
					
					
						commit
						e9abcc8031
					
				|  | @ -4,10 +4,6 @@ body { | |||
|   background: white; | ||||
| } | ||||
| 
 | ||||
| * { | ||||
|   box-sizing: border-box; | ||||
| } | ||||
| 
 | ||||
| a { | ||||
|   color: #000; | ||||
|   transition: color .5s; | ||||
|  | @ -32,6 +28,7 @@ svg.icon { | |||
| 
 | ||||
| .header { | ||||
|   flex: 0 0 280px; | ||||
|   box-sizing: border-box; | ||||
|   padding: 15px; | ||||
|   border-right: 1px dashed #aaa; | ||||
|   box-shadow: 0 0 50px -18px black; | ||||
|  | @ -53,9 +50,7 @@ h1 small { | |||
| 
 | ||||
| .warning { | ||||
|   padding: 3px 6px; | ||||
|   border: 1px dashed black; | ||||
| 
 | ||||
|   border-color: #ef6969; | ||||
|   border: 1px dashed #ef6969; | ||||
|   background: #ffe2e2; | ||||
| } | ||||
| 
 | ||||
|  | @ -68,13 +63,19 @@ h1 small { | |||
| } | ||||
| 
 | ||||
| .actions label { | ||||
|   max-width: fit-content; | ||||
|   max-width: -moz-fit-content; | ||||
|   max-width: fit-content; | ||||
|   display: flex; | ||||
|   align-items: center; | ||||
|   margin: 0.5em 0; | ||||
| } | ||||
| 
 | ||||
| .install { | ||||
|   padding: 1ex 1em; | ||||
|   font-weight: bold; | ||||
|   margin-bottom: 1ex; | ||||
| } | ||||
| 
 | ||||
| .actions label input { | ||||
|   margin: 0 0.5em 0 0; | ||||
|   flex: 0 0 auto; | ||||
|  | @ -92,6 +93,10 @@ h1 small { | |||
|   margin: 0 7.5px; | ||||
| } | ||||
| 
 | ||||
| li { | ||||
|   margin-left: -2em; | ||||
| } | ||||
| 
 | ||||
| .code { | ||||
|   padding: 2em; | ||||
| } | ||||
|  | @ -101,9 +106,7 @@ h1 small { | |||
|   overflow: hidden; | ||||
|   overflow-wrap: break-word; | ||||
|   min-width: 0; | ||||
| 
 | ||||
|   display: flex; | ||||
|   flex-direction: column; | ||||
| } | ||||
| 
 | ||||
| .main > :first-child { | ||||
|  | @ -119,3 +122,25 @@ h1 small { | |||
| .main .CodeMirror { | ||||
|   height: 100%; | ||||
| } | ||||
| 
 | ||||
| /************ reponsive layouts ************/ | ||||
| @media (max-width:7.5in) { | ||||
|   .container { | ||||
|     flex-direction: column; | ||||
|   } | ||||
|   .header { | ||||
|     flex-basis: auto; | ||||
|     -webkit-column-count: 2; | ||||
|     -moz-column-count: 2; | ||||
|     column-count: 2; | ||||
|     border-right: none; | ||||
|     border-bottom: 1px dashed #AAA; | ||||
|     z-index: 2; | ||||
|   } | ||||
|   .main { | ||||
|     padding-left: 0; | ||||
|   } | ||||
|   .code { | ||||
|     padding: 0; | ||||
|   } | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user