feat: responsive css
This commit is contained in:
		
							parent
							
								
									e1f4d854c2
								
							
						
					
					
						commit
						af556feb30
					
				
					 1 changed files with 39 additions and 9 deletions
				
			
		|  | @ -78,7 +78,7 @@ | ||||||
| </script> | </script> | ||||||
| <template> | <template> | ||||||
|     <main> |     <main> | ||||||
|         <h class="title">{{ t("classes") }}</h> |         <h1 class="title">{{ t("classes") }}</h1> | ||||||
| 
 | 
 | ||||||
|         <v-table class="table"> |         <v-table class="table"> | ||||||
|             <thead> |             <thead> | ||||||
|  | @ -129,9 +129,13 @@ | ||||||
|         </v-dialog> |         </v-dialog> | ||||||
|         <div v-if="role === 'student'"> |         <div v-if="role === 'student'"> | ||||||
|             <div class="join"> |             <div class="join"> | ||||||
|                 <h1>{{ t("joinClass") }}</h1> |                 <h2>{{ t("joinClass") }}</h2> | ||||||
|                 <p>{{ t("JoinClassExplanation") }}</p> |                 <p>{{ t("JoinClassExplanation") }}</p> | ||||||
|                 <v-sheet width="400"> | 
 | ||||||
|  |                 <v-sheet | ||||||
|  |                     class="pa-4 sheet" | ||||||
|  |                     max-width="400" | ||||||
|  |                 > | ||||||
|                     <v-form @submit.prevent> |                     <v-form @submit.prevent> | ||||||
|                         <v-text-field |                         <v-text-field | ||||||
|                             label="CODE" |                             label="CODE" | ||||||
|  | @ -187,21 +191,19 @@ | ||||||
| 
 | 
 | ||||||
|     .table { |     .table { | ||||||
|         width: 60%; |         width: 60%; | ||||||
|         margin: 0 auto; |         padding-top: 10px; | ||||||
|         padding-top: 3%; |  | ||||||
|         border-collapse: collapse; |         border-collapse: collapse; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     .title { |     h1 { | ||||||
|         color: #0e6942; |         color: #0e6942; | ||||||
|         text-transform: uppercase; |         text-transform: uppercase; | ||||||
|         font-weight: bolder; |         font-weight: bolder; | ||||||
|         padding-left: 30px; |  | ||||||
|         padding-top: 2%; |         padding-top: 2%; | ||||||
|         font-size: 50px; |         font-size: 50px; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     h1 { |     h2 { | ||||||
|         color: #0e6942; |         color: #0e6942; | ||||||
|         font-size: 30px; |         font-size: 30px; | ||||||
|     } |     } | ||||||
|  | @ -210,7 +212,6 @@ | ||||||
|         display: flex; |         display: flex; | ||||||
|         flex-direction: column; |         flex-direction: column; | ||||||
|         gap: 20px; |         gap: 20px; | ||||||
|         margin-left: 30px; |  | ||||||
|         margin-top: 50px; |         margin-top: 50px; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | @ -218,4 +219,33 @@ | ||||||
|         color: #0b75bb; |         color: #0b75bb; | ||||||
|         text-decoration: underline; |         text-decoration: underline; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     main { | ||||||
|  |         margin-left: 30px; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     @media screen and (max-width: 800px) { | ||||||
|  |         h1 { | ||||||
|  |             text-align: center; | ||||||
|  |             padding-left: 0; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         .join { | ||||||
|  |             text-align: center; | ||||||
|  |             align-items: center; | ||||||
|  |             margin-left: 0; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         .sheet { | ||||||
|  |             width: 100%; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         main { | ||||||
|  |             display: flex; | ||||||
|  |             flex-direction: column; | ||||||
|  |             align-items: center; | ||||||
|  |             justify-content: center; | ||||||
|  |             margin: 5px; | ||||||
|  |         } | ||||||
|  |     } | ||||||
| </style> | </style> | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 laurejablonski
						laurejablonski