Port most remaining legacy styles to Tailwind
This commit is contained in:
		
							parent
							
								
									ade9261c2c
								
							
						
					
					
						commit
						8e5d6dabdc
					
				| @ -3,10 +3,6 @@ | ||||
|     @apply leading-none | ||||
|   } | ||||
| 
 | ||||
|   /* h1, h2, h3 { */ | ||||
|   /*   @apply font-light; */ | ||||
|   /* } */ | ||||
| 
 | ||||
|   h1 { | ||||
|     @apply text-3xl uppercase; | ||||
|   } | ||||
| @ -26,4 +22,16 @@ | ||||
|   main section:first-of-type { | ||||
|     @apply pt-0; | ||||
|   } | ||||
| 
 | ||||
|   main p { | ||||
|     @apply mb-4 leading-6; | ||||
|   } | ||||
| 
 | ||||
|   main ul { | ||||
|     @apply mb-6; | ||||
|   } | ||||
| 
 | ||||
|   main ul li { | ||||
|     @apply leading-6; | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -1 +1,22 @@ | ||||
| @import "legacy/layout"; | ||||
| body { | ||||
|   background: linear-gradient(35deg, rgba(255,0,255,0.2) 0, rgba(13,79,153,0.8) 100%), | ||||
|               url('/img/bg-1.jpg'); | ||||
|   background-size: cover; | ||||
|   background-attachment: fixed; | ||||
| } | ||||
| 
 | ||||
| body#admin { | ||||
|   background: linear-gradient(35deg, rgba(255,0,255,0.2) 0, rgba(153,12,14,0.9) 100%), | ||||
|               url('/img/bg-1.jpg'); | ||||
|   background-size: cover; | ||||
|   background-attachment: fixed; | ||||
| } | ||||
| 
 | ||||
| .ks-site-icon { | ||||
|   svg { | ||||
|     display: inline-block; | ||||
|     height: 1.875rem; | ||||
|     vertical-align: top; | ||||
|     width: auto; | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -1,58 +0,0 @@ | ||||
| @import "variables"; | ||||
| @import "mediaqueries"; | ||||
| 
 | ||||
| body { | ||||
|   background: linear-gradient(35deg, rgba(255,0,255,0.2) 0, rgba(13,79,153,0.8) 100%), | ||||
|               url('/img/bg-1.jpg'); | ||||
|   background-size: cover; | ||||
|   background-attachment: fixed; | ||||
| } | ||||
| 
 | ||||
| body#admin { | ||||
|   background: linear-gradient(35deg, rgba(255,0,255,0.2) 0, rgba(153,12,14,0.9) 100%), | ||||
|               url('/img/bg-1.jpg'); | ||||
|   background-size: cover; | ||||
|   background-attachment: fixed; | ||||
| } | ||||
| 
 | ||||
| .ks-site-icon { | ||||
|   svg { | ||||
|     display: inline-block; | ||||
|     height: 1.875rem; | ||||
|     vertical-align: top; | ||||
|     width: auto; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| main { | ||||
|   p { | ||||
|     line-height: 1.5rem; | ||||
|     margin-bottom: 1rem; | ||||
| 
 | ||||
|     &.notice { | ||||
|       text-align: center; | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   ul { | ||||
|     margin-bottom: 1.5rem; | ||||
| 
 | ||||
|     li { | ||||
|       line-height: 1.5rem; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| .grid { | ||||
|   display: grid; | ||||
| 
 | ||||
|   &.services { | ||||
|     grid-template-columns: 1fr 1fr 1fr; | ||||
|     grid-row-gap: 1rem; | ||||
|     grid-column-gap: 2rem; | ||||
| 
 | ||||
|     @include media-max(small) { | ||||
|       grid-template-columns: 1fr; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| @ -1,33 +0,0 @@ | ||||
| $breakpoints-max: ( | ||||
|   small: 600px, | ||||
|   medium: 960px, | ||||
|   large: 1280px | ||||
| ); | ||||
| 
 | ||||
| $breakpoints-min: ( | ||||
|   small: 601px, | ||||
|   medium: 961px, | ||||
|   large: 1281px | ||||
| ); | ||||
| 
 | ||||
| @mixin media-max($screen-size) { | ||||
|   @if map-has-key($breakpoints-max, $screen-size) { | ||||
|     @media (max-width: map-get($breakpoints-max, $screen-size)) { | ||||
|       @content; | ||||
|     } | ||||
|   } @else { | ||||
|     // Debugging | ||||
|     @warn "'#{$screen-size}' has not been declared as a breakpoint." | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| @mixin media-min($screen-size) { | ||||
|   @if map-has-key($breakpoints-min, $screen-size) { | ||||
|     @media (min-width: map-get($breakpoints-min, $screen-size)) { | ||||
|       @content; | ||||
|     } | ||||
|   } @else { | ||||
|     // Debugging | ||||
|     @warn "'#{$screen-size}' has not been declared as a breakpoint." | ||||
|   } | ||||
| } | ||||
| @ -1,13 +0,0 @@ | ||||
| $content-width: 800px; | ||||
| $content-max-width: 100%; | ||||
| 
 | ||||
| $text-color-body: #222; | ||||
| $text-color-discreet: #888; | ||||
| 
 | ||||
| $background-color-notice: #efffc4; | ||||
| $background-color-alert: #fff4c2; | ||||
| 
 | ||||
| $color-blue: #0d4f99; | ||||
| $color-purple: #8955a0; | ||||
| $color-red-bright: #c00; | ||||
| $color-red-dark: #990c0e; | ||||
| @ -6,7 +6,7 @@ | ||||
|       Your Kosmos account and password currently give you access to these | ||||
|       services: | ||||
|     </p> | ||||
|     <div class="grid services mt-12"> | ||||
|     <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 services mt-12"> | ||||
|       <div> | ||||
|         <h3 class="mb-3.5"> | ||||
|           <%= link_to "Chat", "https://wiki.kosmos.org/Services:Chat", class: "ks-text-link" %> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user