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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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
/* ---------------------------------------------------------- */

View file

@ -21,4 +21,67 @@ production stylesheet in assets/built/screen.css using gulp dev
/* Main - Theme styles
/* ---------------------------------------------------------- */
/* Your styles here */
/* Your styles here! Edit below */
/* Global */
.inner {
width: 100%;
max-width: 1030px;
margin: 0 auto;
}
/* Header */
.site-head {
padding: 20px 4vw;
color: #fff;
background: var(--color-base);
}
.site-head a {
color: #fff;
}
.site-head-container {
display: flex;
align-items: center;
justify-content: space-between;
}
.site-head-left .nav {
display: flex;
align-items: center;
list-style: none;
margin: 0;
padding: 0;
}
.site-head-left .nav li {
margin: 0 10px 0 0;
padding: 0;
}
.site-head-logo img {
height: 30px;
width: auto;
}
/* Main */
.site-main {
margin: 5vw 4vw;
}
/* Footer */
.site-foot {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 4vw;
color: #fff;
background: var(--color-base);
}
.site-foot a {
color: #fff;
}