damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README

damus.css (4882B)


      1 .header {
      2 	display: flex;
      3 	margin: 30px 0 30px 0;
      4 	flex-direction: column;
      5 	align-items: center;
      6 }
      7 
      8 .logo {
      9     margin-bottom: 0;
     10     letter-spacing: -0.05em;
     11 }
     12 
     13 
     14 .logo img {
     15     padding-right: 18px;
     16     width: 60px;
     17 }
     18 
     19 #content-warning-input {
     20 	width: 100%;
     21 }
     22 
     23 #content-warning-input-container {
     24 	width: 100%;
     25 	margin-bottom: 10px;
     26 }
     27 
     28 .deleted-comment {
     29 	border: 2px dashed white;
     30 	border-radius: 10px;
     31 	padding: 10px;
     32 }
     33 
     34 .clickable {
     35 	cursor: pointer;
     36 }
     37 
     38 .inline-img {
     39 	width: 100%;
     40 	border-radius: 8px;
     41 }
     42 
     43 .boost {
     44 }
     45 
     46 .boost-text {
     47 	padding: 0 10px 10px 10px;
     48 	color: #b6ffa8;
     49 	margin: auto;
     50 	font-size: 0.8em;
     51 }
     52 
     53 .chatroom-name {
     54 	color: orange;
     55 	font-weight: bold;
     56 }
     57 
     58 .line-top {
     59 	width: 2px;
     60 	height: 5px;
     61 	background-color: #eac3ff;
     62 	margin-left: auto;
     63 	margin-right: auto;
     64 }
     65 
     66 .line-bot {
     67 	width: 2px;
     68 	height: 100%;
     69 	margin-top: -7px;
     70 	background-color: #eac3ff;
     71 	margin-left: auto;
     72 	margin-right: auto;
     73 }
     74 
     75 body {
     76 	min-height: 100vh;
     77 	font-family: system-ui, sans;
     78 }
     79 
     80 #reply-top {
     81 	display: flex;
     82 	align-items: center;
     83 }
     84 
     85 #reply-modal {
     86 	position: fixed; /* Stay in place */
     87 	z-index: 1; /* Sit on top */
     88 	left: 0;
     89 	top: 0;
     90 	width: 100%; /* Full width */
     91 	height: 100%; /* Full height */
     92 	background: rgba(0,0,0,0.4);
     93 }
     94 
     95 summary {
     96 	cursor: pointer;
     97 }
     98 
     99 details {
    100 	background-color: rgba(255,255,255,0.2);
    101 	padding: 10px;
    102 	margin-right: 30px;
    103 	border-radius: 20px;
    104 }
    105 
    106 input {
    107 	background-color: rgba(255,255,255,0.2);
    108 	border: 0;
    109 	height: 30px;
    110 	color: white;
    111 	border-radius: 5px;
    112 }
    113 
    114 textarea {
    115 	background-color: rgba(255,255,255,0.2);
    116 	border: 0;
    117 	width: 100%;
    118 	height: 40px;
    119 	color: white;
    120 	border-radius: 5px;
    121 }
    122 
    123 #newpost {
    124 	margin: 0 auto 20px auto;
    125 	width: 80%
    126 }
    127 
    128 ::placeholder {
    129 	color: rgba(255,255,255,0.7);
    130 }
    131 
    132 .post-group {
    133 	display: flex;
    134 }
    135 
    136 #post-button {
    137 	width: 50px;
    138 }
    139 
    140 .post-group > textarea {
    141 	margin-right: 10px;
    142 }
    143 
    144 .small-txt {
    145 	font-size: 0.6em;
    146 	color: rgba(255,255,255,0.8);
    147 }
    148 
    149 .reaction-group {
    150 	display: inline-flex;
    151 	background-color: rgba(255,255,255,0.15);
    152 	padding: 4px;
    153 	border-radius: 5px;
    154 }
    155 
    156 .reaction-group img {
    157 	margin-left: -8px;
    158 }
    159 
    160 .reaction-emoji {
    161 	margin-right: 14px;
    162 }
    163 
    164 button {
    165 	border: 0;
    166 	padding: 5px;
    167 	color: white;
    168 	background-color: #9202e2;
    169 	border-radius: 5px;
    170 }
    171 
    172 .close {
    173 	margin: 0 8px 0 8px;
    174 	font-size: 1.3em;
    175 	font-weight: bold;
    176 	text-decoration: none;
    177 	color: white;
    178 }
    179 
    180 .small-text {
    181 	font-size: 12px;
    182 }
    183 
    184 #reply-modal-content {
    185 	/*display: none; */
    186 	padding: 10px;
    187 	margin: 10% auto;
    188 	width: 60%;
    189 	overflow: auto; /* Enable scroll if needed */
    190 	background: linear-gradient(0deg, #A74BDB 0%, #C45BFE 100%);
    191 	border-radius: 15px;
    192 }
    193 
    194 html {
    195   line-height: 1.5;
    196   font-size: 20px;
    197   font-family: "Georgia", sans-serif;
    198 
    199     color: white;
    200     background: linear-gradient(45deg, rgba(28,85,255,1) 0%, rgba(127,53,171,1) 59%, #C45BFE 100%);
    201 }
    202 .container {
    203   margin: 0 auto;
    204   max-width: 48em;
    205   hyphens: auto;
    206   word-wrap: break-word;
    207   text-rendering: optimizeLegibility;
    208   font-kerning: normal;
    209 }
    210 @media (max-width: 600px) {
    211   .container {
    212     font-size: 0.9em;
    213   }
    214 }
    215 @media print {
    216   .container {
    217     background-color: transparent;
    218     color: black;
    219     font-size: 12pt;
    220   }
    221   p, h2, h3 {
    222     orphans: 3;
    223     widows: 3;
    224   }
    225   h2, h3, h4 {
    226     page-break-after: avoid;
    227   }
    228 }
    229 
    230 .pfp {
    231 	border-radius: 50%;
    232 }
    233 
    234 .pfp-small {
    235 	width: 28px;
    236 	height: 28px;
    237 }
    238 
    239 .pfp-normal {
    240 	margin: 0 15px 0 15px;
    241 	width: 60px;
    242 	height: 60px;
    243 	font-size: 2.4em;
    244 }
    245 
    246 
    247 .thread-collapsed {
    248 	margin: 0 auto 5px auto;
    249 	width: 56.3%;
    250 }
    251 
    252 .comment {
    253   display: flex;
    254   font-family: system-ui, sans;
    255   margin-bottom: 20px;
    256   flex-wrap: wrap;
    257   /*align-items: center;*/
    258 }
    259 
    260 .comment .comment-body {
    261   background-color: rgba(255.0,255.0,255.0,0.1);
    262   padding: 10px;
    263   border-radius: 8px;
    264   margin: 0;
    265   width: 55%;
    266 }
    267 
    268 .comment-body p {
    269   margin: 0 0 10px 0;
    270 }
    271 
    272 .comment .info {
    273   text-align: right;
    274   width: 18%;
    275   line-height: 0.8em;
    276 }
    277 
    278 .quote {
    279   border-left: 2px solid white;
    280   margin-left: 10px;
    281   padding: 10px;
    282   background-color: rgba(255.0,255.0,255.0,0.1);
    283   display: block;
    284 }
    285 
    286 .comment .timestamp {
    287   font-size: 11px;
    288   color: rgba(255.0,255.0,255.0,0.7);
    289 }
    290 
    291 .invisible {
    292 	visibility: hidden;
    293 }
    294 
    295 @media (max-width: 800px){
    296     /* Reverse the order of elements in the user comments,
    297     so that the avatar and info appear after the text. */
    298 
    299     .pfp {
    300 	  margin: 0 0 0 0;
    301     }
    302 
    303     .pfpbox {
    304         order: 1;
    305 	margin-right: 10px;
    306     }
    307 
    308     .comment .info {
    309         order: 2;
    310 	text-align: left;
    311 	width: 70%;
    312     }
    313 
    314     .comment .comment-body {
    315 	    width: 100%;
    316 	    order: 3;
    317 	    margin: 5px 0 0 0;
    318     }
    319 
    320     .line-top {
    321 	    height: 20px;
    322     }
    323 
    324     .line-bottom {
    325 	    /*display: none;*/
    326     }
    327     
    328     .comment {
    329 	  margin: 0 0 0 0;
    330 	  align-items: center;
    331 	  border-radius: 8px;
    332 	  /*background-color: rgba(255.0,255.0,255.0,0.1);*/
    333     }
    334 
    335     #newpost {
    336 	    width: 100%;
    337     }
    338 
    339     .comment p {
    340         order: 3;
    341         width: 100%;
    342     }
    343 }