2020_matters
by imjhane
HTML
<div class="header">
<h1>Jhane Chou</h1>
<p>Feb 02, 2020</p>
</div>
<h2>推薦文章 × 自由接案.設計家教 <a href="https://liker.land/jhane_chou/civic" target="_blank">☕ 訂閱以我創作更多優質文章</a></h2>
<ol class="word">
<li>
<a href="https://reurl.cc/NXpL49" target="_blank">近兩百篇文章的心得</a>
</li>
<li>
<a href="https://reurl.cc/v5e4Lo" target="_blank">我如何成為自由接案工作者?(八)</a>
</li>
<li>
<a href="https://reurl.cc/e967Vx" target="_blank">販售貼圖&主題的收入好嗎?</a>
</li>
<li>
<a href="https://reurl.cc/Md4Nav" target="_blank">製作此的公告方法(附基本版型)</a>
</li>
</ol>
<ul class="link">
<li><a href="https://medium.com/deerlight" target="_blank">Medium</a></li>
<li class="line"><a href="https://matters.news/@Jhane_Chou" target="_blank">Matters</a></li>
<li class="line"><a href="https://deerlight.design" target="_blank">Deerlight</a></li>
</ul>
<ul class="link">
<li><a href="https://medium.com/deerlight" target="_blank">設計文章</a></li>
<li><a href="https://medium.com/inudream" target="_blank">日常文章</a></li>
<li><a href="https://reurl.cc/N6Q2Kp" target="_blank">所有文章</a></li>
</ul>
<div class="floating-container">
<a href="#popup"><div class="floating-button">☕</div></a>
<div class="element-container">
</div>
</div>
<div id="popup">
<div class="popup-content">
<h1>This is title</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Itaque voluptatem dignissimos quis expedita earum explicabo nam perspiciatis. Aliquam, laudantium doloremque.</p>
<a href="#" class="close-popup">×</a>
</div>
</div>
CSS
* {
font-family: Noto San TC, Poppins;
}
body {
background: #fafafa;
padding: 0 20px;
}
h1 {
padding: 20px 0 0 0;
font-size: 20px;
line-height: 0px;
}
h2 {
font-size: 14px;
font-weight: 500;
color: #a37d1b;
}
h2 a {
font-size: 14px;
color: #a37d1b;
text-decoration: none;
}
p {
font-size: 0.9375rem;
}
a {
transition: 0.4s;
}
a:hover {
opacity: 0.5;
}
.header p {
font-size: 14px;
color: #eee;
}
.word {
margin-left: 6px;
list-style-type: upper-roman;
border-left: solid 2px #dcbf77;
margin-bottom: 24px;
}
.word a {
color: black;
text-decoration: none;
transition: 0.5s;
line-height: 1.4;
}
.word li {
margin-bottom: 6px;
}
.link {
display: flex;
list-style-type: none;
margin-top: -10px;
font-size: 14px;
line-height: 14px;
}
.link li {
color: #a37d1b;
text-decoration: none;
transition: 0.5s;
display: block;
margin: 1px 3px;
border-radius: 20px;
border: solid 1px #e3c57c;
}
.link a {
color: #a37d1b;
text-decoration: none;
display: block;
padding: 4px 10px 4px 8px;
line-height: 1.6;
}
.link li:hover {
background: #a37d1b;
text-decoration: none;
display: block;
margin: 1px 3px;
opacity: 1;
color: white;
border: solid 1px #a37d1b;
}
.link li:hover > a {
color: white;
opacity: 1;
}
.floating-container {
position: fixed;
width: 100px;
height: 100px;
bottom: 0;
right: 0;
margin: 24px 4px;
}
.floating-container:hover {
height: 300px;
}
.floating-container:hover .floating-button {
box-shadow: 0 10px 25px rgba(200, 160, 55, 0.6);
-webkit-transform: translatey(5px);
transform: translatey(5px);
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.floating-container .floating-button {
position: absolute;
width: 60px;
height: 60px;
background: #c8a037;
bottom: 0;
border-radius: 50%;
left: 0;
right: 0;
margin: auto;
color: white;
line-height: 54px;
text-align: center;
font-size: 20px;
z-index: 100;
...