]> git.ardis.lu - css-for-line-clamp-ellipsis/commitdiff
Add basic styling
authorArdis Lu <ardisglu@gmail.com>
Sat, 8 Apr 2023 03:09:03 +0000 (20:09 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 8 Apr 2023 03:09:03 +0000 (20:09 -0700)
index.html

index ef497c887c70dd3dc6babb265df07d1da79feb89..0d58439cb47a671d9ecfc74f195727f60c930692 100644 (file)
@@ -9,18 +9,33 @@
   <style>
     body {
       font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
+      background: hsl(216deg 50% 97%);
+      color: hsl(216deg 50% 5%);
     }
 
     header {
       display: flex;
       justify-content: center;
+      margin-inline: 8px;
     }
 
     main {
-      inline-size: min(720px, 100% - 16px);
+      inline-size: min(1080px, 100% - 16px);
       margin-inline: auto;
     }
 
+    p {
+      inline-size: min(80ch, 100% - 16px);
+    }
+
+    pre {
+      background: hsl(216deg 50% 90%);
+      padding: 8px;
+      border-radius: 4px;
+      border: 1px solid hsl(216deg 50% 75%);
+      overflow: auto;
+    }
+
     .line-clamp {
       display: -webkit-box;
       -webkit-box-orient: vertical;
     .height-resizable {
       resize: vertical;
     }
+
+    .width-resizable,
+    .height-resizable {
+      border: 1px dashed hsl(216deg 50% 75%);
+      border-radius: 4px;
+    }
   </style>
 </head>
 
This page took 0.042706 seconds and 4 git commands to generate.