Better defaults

This commit is contained in:
John O'Nolan 2019-10-20 17:56:15 +07:00
parent ef2879517e
commit bda02f65a4
8 changed files with 314 additions and 81 deletions

View file

@ -106,6 +106,121 @@
margin-top: calc( -7vw + 0.75em );
}
/* Code Cards
/* ---------------------------------------------------------- */
.kg-code-card {
width: 100%;
}
.kg-code-card pre {
margin: 0;
}
/* Bookmark Cards
/* ---------------------------------------------------------- */
.kg-bookmark-card {
width: 100%;
}
.kg-bookmark-container {
display: flex;
min-height: 148px;
color: #131313;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
text-decoration: none;
border-radius: 5px;
box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.4);
overflow: hidden;
}
.kg-bookmark-container:hover {
text-decoration: none;
}
.kg-bookmark-content {
display: flex;
flex-direction: column;
flex-grow: 1;
flex-basis: 100%;
align-items: flex-start;
justify-content: flex-start;
padding: 20px;
}
.kg-bookmark-title {
color: #131313;
font-size: 1.6rem;
line-height: 1.5em;
font-weight: 600;
}
.kg-bookmark-description {
display: -webkit-box;
font-size: 1.4rem;
line-height: 1.5em;
margin-top: 10px;
color: #54666d;
font-weight: 400;
max-height: 44px;
overflow-y: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.kg-bookmark-thumbnail {
position: relative;
flex-grow: 1;
min-width: 33%;
max-height: 100%;
}
.kg-bookmark-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 0 3px 3px 0;
object-fit: cover;
}
.kg-bookmark-metadata {
display: flex;
align-items: center;
margin-top: 14px;
color: #343f44;
font-size: 1.4rem;
font-weight: 500;
}
.kg-bookmark-icon {
width: 20px;
height: 20px;
margin-right: 6px;
}
.kg-bookmark-author {
line-height: 1.5em;
}
.kg-bookmark-author:after {
content: "•";
margin: 0 6px;
}
.kg-bookmark-publisher {
display: block;
max-width: 240px;
color: #343f44;
white-space: nowrap;
overflow: hidden;
}
/* Members Forms
/* ---------------------------------------------------------- */