Browse Source

Updated files/main.css

Mr.doob 5 years ago
parent
commit
0070261a17
1 changed files with 36 additions and 0 deletions
  1. 36 0
      files/main.css

+ 36 - 0
files/main.css

@@ -2,6 +2,7 @@
 	color-scheme: light dark;
 
 	--background-color: #fff;
+	--secondary-background-color: #f7f7f7;
 
 	--color-blue: #049EF4;
 	--text-color: #444;
@@ -21,6 +22,7 @@
 
 	:root {
 		--background-color: #222;
+		--secondary-background-color: #2e2e2e;
 
 		--text-color: #bbb;
 		--secondary-text-color: #666;
@@ -464,6 +466,40 @@ iframe {
 }
 
 
+.card {
+	border-radius: 3px;
+	overflow: hidden;
+	background-color: var(--secondary-background-color);
+	padding-bottom: 6px;
+	margin-bottom: 16px;
+}
+
+.card.selected {
+	box-shadow: 0 0 0 3px var(--color-blue);
+	text-decoration: none !important;
+}
+
+.card .cover {
+	padding-bottom: 56.25%; /* 16:9 aspect ratio */
+	position: relative;
+	overflow: hidden;
+}
+
+.card .cover img {
+	position: absolute;
+	width: 100%;
+	top: 50%;
+	left: 50%;
+	transform: translate(-50%, -50%);
+}
+
+.card .title {
+	padding: 8px 12px 4px;
+	font-size: calc(var(--font-size) - 1px);
+	font-weight: 500;
+	line-height: calc(var(--line-height) - 6px);
+}
+
 /* mobile */
 
 @media all and ( max-width: 640px ) {