Skip to content

Instantly share code, notes, and snippets.

@kenzo-tanaka
Created January 14, 2019 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenzo-tanaka/1a7e4812de0536f8bca1b8f73dde484d to your computer and use it in GitHub Desktop.
Save kenzo-tanaka/1a7e4812de0536f8bca1b8f73dde484d to your computer and use it in GitHub Desktop.
/* この記事を書いた人ボックス */
.ts-fab-wrapper{
width: 80%;
margin-left:10%;
}
/* 表示・非表示用に使用 */
.show {
display: block;
}
.hide {
display: none;
}
/* 切り替えタブ部分 */
.ts-fab-list li {
display: block;
float: left;
clear: none;
list-style: none!important;
margin: 0 5px 0 0!important;
padding: 0!important;
background: 0 0!important;
}
.ts-fab-list li.active a {
background-color: #333;
color: #fff;
border-color: #333;
}
.ts-fab-list li a {
display: block;
line-height: 16px;
padding: 8px 12px;
border: 1px solid #e9e9e9;
border-bottom: none!important;
text-decoration: none;
font-size: 13px;
color: #333;
box-sizing: content-box;
-moz-box-sizing: content-box;
}
.ts-fab-wrapper {
margin: 2em 0;
clear: both;
margin: 0 auto;
}
.ts-fab-list {
overflow: hidden;
margin: 0!important;
padding: 0!important;
border-style: none!important;
}
.ts-fab-tab {
border: 2px solid #333;
padding: 12px;
background: #fff;
min-height: 80px;
overflow: hidden;
}
/* アバター */
.ts-fab-avatar {
display: inline; /* 横並び */
float: left;
width: 30%;
height: auto;
}
.ts-fab-avatar > img {
width: 300px;
max-width: 90%!important;
}
/* 自己紹介欄 */
.ts-fab-text {
margin-left: 130px;
line-height: 1.5;
color: #4e4e4e;
}
.ts-fab-header {
margin-bottom: 10px;
}
.ts-fab-text h4 {
clear: none!important;
color: #4e4e4e;
font-size: 18px;
line-height: 1!important;
font-weight: 700;
margin: 10px 0 .2em !important;
padding: 0;
}
.ts-fab-content {
display: block;
}
.ts-fab-latest{
list-style: none!important;
border-style: none!important;
padding: 0 !important;
margin: 0!important;
}
/* レスポンシブ対応 */
@media(max-width: 768px) {
.ts-fab-avatar{
width: 50%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment