Просмотр исходного кода

Merge branch 'MickGe'

fix selectors, deduplicate common styles
El RIDO 1 год назад
Родитель
Сommit
5ba56c20cb
3 измененных файлов с 50 добавлено и 89 удалено
  1. 0 39
      css/bootstrap/privatebin.css
  2. 0 38
      css/bootstrap5/privatebin.css
  3. 50 12
      css/common.css

+ 0 - 39
css/bootstrap/privatebin.css

@@ -69,47 +69,8 @@ body.loading {
 	margin-right: 8px;
 }
 
-#qrcodemodalClose {
-	float: right;
-}
-
-#qrcode-display {
-	width: 200px;
-	height: 200px;
-	margin: auto;
-}
-
-#pastelink {
-	display: inline;
-}
-
-#pastelink > a {
-	word-wrap: break-word;
-}
-
-#message {
-	height: 70dvh;
-}
-
-@media ((max-width: 450px) and (max-height: 950px)) {
-	#message {
-		height: 55dvh;
-	}
-}
-
-#message, .replymessage {
-	font-family: monospace;
-	resize: vertical;
-}
-
-#nickname {
-	margin: 5px 0;
-}
-
 .comment {
-	border-left: 1px solid #ccc;
 	padding: 5px 0 5px 10px;
-	transition: background-color 0.75s ease-out;
 }
 
 footer h4 {

+ 0 - 38
css/bootstrap5/privatebin.css

@@ -14,44 +14,6 @@
 	display: none !important;
 }
 
-#qrcodemodalClose {
-	float: right;
-}
-
-#qrcode-display {
-	width: 200px;
-	height: 200px;
-	margin: auto;
-}
-
-#pastelink {
-	display: inline;
-}
-
-#pastelink > a {
-	word-wrap: break-word;
-}
-
-#message {
-	height: 70dvh;
-}
-
-@media ((max-width: 450px) and (max-height: 950px)) {
-	#message {
-		height: 55dvh;
-	}
-}
-
-#message, .replymessage {
-	font-family: monospace;
-	resize: vertical;
-}
-
-.comment {
-	border-left: 1px solid #ccc;
-	transition: background-color 0.75s ease-out;
-}
-
 .dropdown-menu {
 	--bs-dropdown-min-width: 23rem;
 }

+ 50 - 12
css/common.css

@@ -38,27 +38,65 @@
 	outline-offset: -50px;
 }
 
-.dragAndDropFile {
-	color: #777;
-	font-size: 1em;
-	display: inline;
-	white-space: normal;
-}
-
 #filewrap {
 	transition: background-color 0.75s ease-out;
 }
 
-.highlight {
-	background-color: #fd8;
-	transition: background-color 0.2s ease-in;
-}
-
 #deletelink {
 	float: right;
 	margin-left: 5px;
 }
 
+#qrcodemodalClose {
+	float: right;
+}
+
+#qrcode-display {
+	width: 200px;
+	height: 200px;
+	margin: auto;
+}
+
+#pastelink {
+	display: inline;
+}
+
+#pastelink > a, #plaintext > a {
+	word-wrap: break-word;
+}
+
+#message {
+	height: 70dvh;
+}
+
+@media ((max-width: 450px) and (max-height: 950px)) {
+	#message {
+		height: 55dvh;
+	}
+}
+
+#message, .replymessage {
+	font-family: monospace;
+	resize: vertical;
+}
+
+.comment {
+	border-left: 1px solid #ccc;
+	transition: background-color 0.75s ease-out;
+}
+
 .commentdata {
 	white-space: pre-wrap;
 }
+
+.dragAndDropFile {
+	color: #777;
+	font-size: 1em;
+	display: inline;
+	white-space: normal;
+}
+
+.highlight {
+	background-color: #fd8;
+	transition: background-color 0.2s ease-in;
+}