main
			
			
		
		
							parent
							
								
									2ea32af5fa
								
							
						
					
					
						commit
						4535107883
					
				@ -0,0 +1,16 @@ | 
				
			||||
mixin post_item(title, cover_url, post_date, post_summary, post_time, link) | 
				
			||||
  .post-item | 
				
			||||
    - const hasCover = cover_url !== undefined | 
				
			||||
    img.post-cover.lazy( | 
				
			||||
      src=hasCover ? cover_url : "/img/no_image.svg" | 
				
			||||
      class=hasCover ? '' : 'no-cover' | 
				
			||||
    ) | 
				
			||||
    .post-info | 
				
			||||
      .post-title-box | 
				
			||||
        .left | 
				
			||||
          .icon | 
				
			||||
          span.title-text= title | 
				
			||||
        span.post-date= post_date | 
				
			||||
      .post-summary-box | 
				
			||||
        span.post-summary= post_summary | 
				
			||||
        span.post-time= 'Time: ' + post_time | 
				
			||||
@ -0,0 +1,77 @@ | 
				
			||||
.post-item | 
				
			||||
  & > * | 
				
			||||
    user-select: none | 
				
			||||
  display: flex | 
				
			||||
  flex-direction: row | 
				
			||||
  gap: 16px | 
				
			||||
  height: fit-content | 
				
			||||
  transition: all 0.2s linear 0s | 
				
			||||
  padding: 8px 8px | 
				
			||||
  margin: 4px 4px | 
				
			||||
  min-height: 128px; | 
				
			||||
  &:hover | 
				
			||||
    background-color: $light | 
				
			||||
    .no-cover | 
				
			||||
      filter: invert(100%) | 
				
			||||
      background-color: rgb(181, 184, 193) | 
				
			||||
    .post-cover:not(.no-cover) | 
				
			||||
      filter: opacity(0.7) | 
				
			||||
    .post-title-box | 
				
			||||
      background-color: rgb(74, 71, 62) | 
				
			||||
      color: $light; | 
				
			||||
      .left .icon | 
				
			||||
        background-color: $light | 
				
			||||
 | 
				
			||||
  .post-info | 
				
			||||
    display: flex | 
				
			||||
    flex-direction: column | 
				
			||||
    width:100% | 
				
			||||
 | 
				
			||||
  .post-title-box | 
				
			||||
    display: flex | 
				
			||||
    flex-direction: row | 
				
			||||
    justify-content: space-between | 
				
			||||
    gap: 8px | 
				
			||||
    padding: 3px 6px | 
				
			||||
    color: rgb(74, 71, 62) | 
				
			||||
    background-color: rgb(180, 175, 154) | 
				
			||||
    transition: all 0.2s linear 0s | 
				
			||||
    cursor: default | 
				
			||||
    font-size: 18px | 
				
			||||
    font-weight: bold | 
				
			||||
    min-height: 1.3em | 
				
			||||
 | 
				
			||||
    .left | 
				
			||||
      display: flex | 
				
			||||
      flex-direction: row | 
				
			||||
      justify-content: left | 
				
			||||
      gap: 8px | 
				
			||||
      align-items: center | 
				
			||||
      .icon | 
				
			||||
        width: 16px | 
				
			||||
        height: 16px | 
				
			||||
        min-width: 16px | 
				
			||||
        min-height: 16px | 
				
			||||
        background-color: rgb(74, 71, 62) | 
				
			||||
        transition: all 0.2s linear 0s | 
				
			||||
 | 
				
			||||
  .post-cover | 
				
			||||
    width: 256px | 
				
			||||
    height 144px | 
				
			||||
    min-width: 256px | 
				
			||||
    min-height 144px | 
				
			||||
    max-width: 256px | 
				
			||||
    max-height 144px | 
				
			||||
    object-fit: scale-down | 
				
			||||
    transition: all 0.2s linear 0s | 
				
			||||
 | 
				
			||||
  .post-summary-box | 
				
			||||
    display: flex | 
				
			||||
    flex-direction: row | 
				
			||||
    justify-content: space-between | 
				
			||||
    padding: 2px 6px | 
				
			||||
    .post-summary | 
				
			||||
      max-width: 80% | 
				
			||||
    .post-summary, .post-time | 
				
			||||
      color: $dark | 
				
			||||
      font-size: 16px | 
				
			||||
| 
		 After Width: | Height: | Size: 2.5 KiB  | 
									
										
											File diff suppressed because one or more lines are too long
										
									
								
							
						
					Loading…
					
					
				
		Reference in new issue