Skip to content

Commit

Permalink
update sidebar calendar style
Browse files Browse the repository at this point in the history
  • Loading branch information
solstice23 committed Oct 23, 2021
1 parent 48cc2e4 commit e400973
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,63 @@ html.darkmode.amoled-dark #leftbar_tab_tools ul li {
opacity: 0.25;
pointer-events: none;
}
.wp-calendar-table caption{
font-size: 14px;
text-align: center;
opacity: .7;
}
.wp-block-calendar table * {
background: transparent !important;
border: none !important;
padding-top: 5px;
padding-bottom: 8px;
}
.wp-block-calendar table th {
opacity: .6;
}
.wp-block-calendar tbody td a {
position: relative;
text-decoration: none;
}
.wp-block-calendar tbody td a:before {
content: '';
display: block;
background: var(--themecolor);
position: absolute;
width: 25px;
height: 25px;
border-radius: 20px;
opacity: .2;
left: -8px;
z-index: 0;
}
.wp-calendar-nav-prev a, .wp-calendar-nav-next a {
text-decoration: none !important;
border: 1px solid var(--themecolor);
color: var(--themecolor);
padding: 1px 8px;
border-radius: 19px;
font-size: 14px;
transition: all .25s ease;
user-select: none;
}
.wp-calendar-nav-prev a:hover, .wp-calendar-nav-next a:hover {
background-color: var(--themecolor);
color: #fff !important;
box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}
.wp-calendar-nav {
padding-bottom: 12px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
align-content: center;
}
html.darkmode .wp-calendar-table caption, html.darkmode .wp-block-calendar tbody td{
color: #eee;
}
/*底栏*/
#footer {
background: var(--themecolor-gradient);
Expand Down

0 comments on commit e400973

Please sign in to comment.