본문 바로가기
IT/웹, 블로그

[티스토리] 구독 피드 화면 내맘대로 손질하기

by 누에고치 2020. 4. 9.

저는 흑백활자를 제외한 분야의 집중력이 그다지 좋지 않은 편입니다. 그래서 항상 이웃분들의 글을 보려고 할 때 너무 많이 스크롤을 내려야 되고, 색색의 썸네일에 정신이 팔려 어떤 글이 어느 분이 올리신 건지 잘 분간이 가지 않았어요. 그래서 아예 CSS를 추가하는 부가기능, Stylish를 사용해서 '제목은 진하게, 내용은 연하게'라는 모토 아래 피드를 꾸며봤습니다.

 

굉장히 야매로 짠 것이라 전혀 정리가 되어있지 않은 코드이긴 한데, 혹시라도 참고하시고 싶은 분이 있으시다면 아래의 코드를 복사해가시면 됩니다.

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR&display=swap');
.section_list_type2{
	width:1080px;
	max-width:90%;	
}
.list_tistory li{
	padding:0;
	width: 250px;
	height: 350px;
	float:left;
	overflow:hidden;
}
.box_desc_type2{
	overflow: visible;
		display: block;
	float: none;;
	clear:none;
	position: static;
	width:100%;
	height:100%;
	margin:0 0 0 0 !important;
	padding: 0;
}
.box_desc_type2 .img_thumb{
	display: none;
	float: none;;
	clear:none;
	position: static;
	width: 128px;
	height: 128px;
	padding: 0;
	margin: 0 auto;
}
.box_desc_type2 .img_thumb::after{
	display: block;
	content: " ";
	float: none;
	clear:none;
	position: static;
	background-color:#fff;
	width: 128px;
	height: 128px;
	padding: 0;
	margin: 0 auto;
}
.list_tistory .wrap_cont{
	max-height:100%;
	text-align:center;
	height:400px;
}
.section_list_type2 .info_g{
	float:none;
	clear:none;
	position:static;
	margin:0 auto;
	text-align:center;
}
.list_tistory .list_data{
	position:absolute;
	margin-top: 50px;
	margin-left:30px;
	width:100%;
}
.list_tistory .wrap_thumb{
	display:none;
}
.section_list_type2 .box_desc_type2 .txt_id{
	display: block;
	position:static;
	overflow: hidden;
	max-height: 36px;
	margin: 0;
	padding: 12px 0 0 0;
	line-height: 18px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	text-overflow: ellipsis;
	word-break: break-all;
	white-space: normal;
	max-width: 250px;
}
.section_list_type2 .box_desc_type2 .txt_writer{
	position:static;
	margin:0;
	padding:0;
}
.section_list_type2 .desc_tit{
	font-size: 13px;
	text-align:justify;
	font-weight: 700;
	font-family: Noto Serif KR, serif;
	width:150px;
	position:static;
	margin:35px auto 0;
	padding:0;
	line-height:1;
}
.list_tistory .desc_tit .inner_desc_tit{
	width:150px;
	text-overflow:clip;
	white-space:normal;
	line-height:1.2;
}
.list_tistory .desc_g{
	width:150px;
	position:static;
	margin: 10px auto 0;
	text-overflow:clip;
	white-space:normal;
	overflow:hidden;
	height:150px;
	text-align:justify;
	word-break:break-all;
	max-height:none;
}
.section_list_type2 .list_data {
	top: 0px;
	bottom: auto;
	left: 50px;}
.txt_id{
	top:25px;
	position:absolute;
	left:50px;
}

 

 

반응형