MyShaarli/tpl/myShaarli/css/myShaarli.css
Knah Tsaeb 0363f92cc0 Update css
Better top nav
Add some option for add website link in top nav and contact page in footer
2024-12-06 16:31:26 +01:00

334 lines
No EOL
5.8 KiB
CSS

[data-theme="dark"] {
--background-color: #171414;
--text-color: #fffbfb;
--text-color-inverse: #171414;
.linklist-pages {
color: var(--text-color);
}
}
[data-theme="light"] {
--background-color: #fffbfb;
--text-color: #171414;
--text-color-inverse: #fffbfb;
}
* {
box-sizing: border-box;
}
:root {
--main-color: var(--primary);
--dark-main-color: var(--primary-darken);
}
body {
background-color: var(--background-color);
color: var(--text-color);
}
a {
transition: all .2s linear, border .2s linear;
}
.shaarli-menu {
background-color: var(--primary);
}
.tag-sort a.button {
border: 2px solid var(--text-color);
border-radius: 5px;
padding: 3px 10px;
text-decoration: none;
color: var(--text-color);
font-weight: bold;
background-color: transparent;
}
.subheader-form {
background-color: var(--background-color-lighten);
padding: 1.1em 0;
}
.subheader-form {
height: auto;
}
.subheader-form a.button,
.tag-sort a.button {
border-color: var(--text-color);
color: var(--text-color);
}
.subheader-form a.button:hover,
.tag-sort a.button:hover {
border-color: var(--text-color-inverse);
color: var(--text-color-inverse);
}
.linklist-pages a,
.daily-entry .daily-entry-title a {
color: var(--primary);
}
.linkcount {
color: var(--text-color);
}
#link-count-content {
background-color: var(--background-color-lighten);
}
.linklist-filters {
color: var(--text-color);
padding-left: .3em;
}
.linklist-filters a:hover {
color: var(--text-color);
background: var(--primary);
}
.linksperpage {
color: var(--text-color)
}
.linksperpage a {
width: auto;
}
.linksperpage a:hover {
color: var(--text-color);
background: var(--primary);
}
.linksperpage input[type="text"] {
margin: 0;
padding: .348em;
height: auto;
font-size: 1em;
width: 4em;
}
.linklist-item.private::before {
background: var(--warning);
}
.linklist-item-title {
background: var(--header-background-color);
}
.linklist-item-description {
color: var(--text-color-inverse);
}
.linklist-item-description a:hover,
.daily-entry-title a:hover,
.page-form a:hover {
color: var(--primary-darken);
}
.linklist-item-title .linklist-link:hover {
color: var(--primary-darken);
}
.edit-link {
color: var(--secondary-darken);
}
.edit-link:hover {
color: var(--secondary);
}
.linklist-item-infos {
padding: 8px 8px 5px 8px;
}
.linklist-item-title .label-private {
border: solid 1px var(--warning);
color: var(--warning);
}
.linklist-item-infos .label a {
border-radius: .3rem;
background-color: var(--header-background-color-darken);
border: 1px solid var(--header-background-color-darken);
padding: .3em .6em;
}
.linklist-item-infos .label a:hover {
color: var(--primary);
background-color: var(--header-background-color-lighten);
border: 1px solid var(--header-background-color-darken);
}
.linklist-item-infos .linklist-item-tags {
margin-bottom: .6em;
}
.footer-container::before {
display: none;
margin: 0;
background: inherit;
}
.footer-container {
margin: 0;
color: var(--text-color);
}
.footer-container a {
color: var(--primary);
}
.footer-container a:hover {
color: var(--primary-darken);
}
.linklist-item-title {
grid-area: header;
}
.linklist-item-thumbnail {
grid-area: thumb;
}
.linklist-item-description {
grid-area: main;
}
.linklist-item-infos {
grid-area: footer;
}
.grid-container,
.linklist-item {
display: grid;
grid-template-columns: auto 1fr;
grid-template-areas:
'thumb header header'
'thumb main main'
'footer footer footer';
gap: 10px;
padding: 10px;
}
.linklist-item-title h2 {
line-height: auto;
}
.page-form select,
input[type="text"],
input[type="checkbox"] {
color: var(--text-color);
background-color: var(--primary-lighten) !important;
}
.page-form code,
.pure-alert code,
.markdown :not(pre) code {
color: var(--text-color);
background-color: var(--background-color-lighten);
}
.cloudtag-container a {
color: var(--primary);
}
.cloudtag-container a:hover {
color: var(--primary-darken);
}
button {
color: var(--text-color);
background-color: var(--primary);
border: 0;
border-radius: 2px;
background-color: var(--main-color);
padding: 5.5px 7.2px;
}
button:hover {
color: var(--text-color-inverse);
}
.page-form textarea,
.page-form input[type="password"],
.page-form input[type="text"] {
border: medium none currentColor;
border-radius: 2px;
box-shadow: 0 1px 0 rgba(255, 255, 255, .078), 0 1px 1px rgba(0, 0, 0, .298) inset;
padding: 0 5px;
height: 30px;
}
.searchform-block input[type="text"] {
border: medium none currentColor;
border-radius: 2px;
box-shadow: 0 1px 0 rgba(255, 255, 255, .078), 0 1px 1px rgba(0, 0, 0, .298) inset;
padding: 0 5px;
height: 30px;
}
.picwall-container {
display: flex;
flex-wrap: wrap;
gap: .1rem;
justify-content: center;
}
.picwall-pictureframe:hover span.info {
background-color: rgba(0, 0, 0, .6);
color: var(--text-color);
width: 100%;
height: 100%;
padding: .1em;
}
.awesomplete>ul {
color: var(--text-color-inverse);
background: var(--primary-lighten);
}
.awesomplete mark {
background-color: var(--success);
font-weight: bold;
}
.awesomplete>ul>li[aria-selected="true"],
.awesomplete>ul>li:hover {
background: var(--primary-darken);
color: var(--primary-text-contrast);
}
.tag-sort {
margin-top: 1em;
}
.page-form {
margin: 0;
}
.container {
margin-top: 55px;
}
.header-search,
.search-linklist {
padding: 0 0 10px 0;
}
.pinned-link {
color: var(--error) !important;
}
.head-logo {
vertical-align: middle;
display: inline;
}
.pure-menu-link {
display: inline-block;
}