Преглед изворни кода

refactor: made admin page look better without bulma

Kristian Vos пре 3 година
родитељ
комит
628b8a329d
2 измењених фајлова са 85 додато и 0 уклоњено
  1. 58 0
      frontend/src/App.vue
  2. 27 0
      frontend/src/pages/Admin/index.vue

+ 58 - 0
frontend/src/App.vue

@@ -678,6 +678,31 @@ a {
 	text-decoration: none;
 }
 
+table {
+	border-collapse: collapse;
+	width: 100%;
+
+	thead {
+		td {
+			border-width: 0 0 2px;
+		}
+	}
+
+	td {
+		border: 1px solid #dbdbdb;
+		border-width: 0 0 1px;
+		padding: 8px 10px;
+	}
+
+	tbody {
+		tr:last-child {
+			td {
+				border-bottom-width: 0;
+			}
+		}
+	}
+}
+
 .modal-card {
 	margin: 0 !important;
 }
@@ -1086,6 +1111,18 @@ button.delete:focus {
 }
 
 .button {
+	border: 1px solid #dbdbdb;
+	border-radius: 3px;
+	line-height: 24px;
+	align-items: center;
+	display: inline-flex;
+	font-size: 14px;
+	padding-left: 10px;
+	padding-right: 10px;
+	justify-content: center;
+	cursor: pointer;
+	user-select: none;
+
 	&:hover,
 	&:focus {
 		filter: brightness(95%);
@@ -1093,25 +1130,46 @@ button.delete:focus {
 
 	&.is-success {
 		background-color: var(--green) !important;
+		border-width: 0;
+		color: white;
 	}
 
 	&.is-primary {
 		background-color: var(--primary-color) !important;
+		border-width: 0;
+		color: white;
 	}
 
 	&.is-danger {
 		background-color: var(--red) !important;
+		border-width: 0;
+		color: white;
 	}
 
 	&.is-info {
 		background-color: var(--primary-color) !important;
+		border-width: 0;
+		color: white;
 	}
 
 	&.is-warning {
 		background-color: var(--yellow) !important;
+		border-width: 0;
+		color: white;
 	}
 }
 
+.input {
+	width: 100%;
+	padding-left: 8px;
+	padding-right: 8px;
+	line-height: 24px;
+	font-size: 14px;
+	border-radius: 3px;
+	box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
+	border: 1px solid #dbdbdb;
+}
+
 .input,
 .button {
 	height: 36px;

+ 27 - 0
frontend/src/pages/Admin/index.vue

@@ -259,6 +259,19 @@ export default {
 	}
 }
 
+/deep/ .container {
+	position: relative;
+}
+
+/deep/ .box {
+	box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
+	display: block;
+
+	&:not(:last-child) {
+		margin-bottom: 20px;
+	}
+}
+
 .main-container {
 	height: auto;
 }
@@ -272,6 +285,7 @@ export default {
 	overflow-y: hidden;
 	overflow-x: auto;
 	margin-bottom: 20px;
+	user-select: none;
 
 	ul {
 		display: flex;
@@ -340,4 +354,17 @@ export default {
 		border-width: 3px;
 	}
 }
+
+@media screen and (min-width: 980px) {
+	/deep/ .container {
+		margin: 0 auto;
+		max-width: 960px;
+	}
+}
+
+@media screen and (min-width: 1180px) {
+	/deep/ .container {
+		max-width: 1200px;
+	}
+}
 </style>