Files
project-behind-the-desk/src/styles.css
T

125 lines
2.5 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
/* Any custom styles that can't be easily represented with Tailwind utilities */
@layer base {
html {
@apply bg-bg-light;
}
body {
@apply font-sans text-text-default pt-navbar-height;
}
}
@layer components {
.upvote-arrow {
@apply text-text-muted no-underline text-md leading-none inline-block pt-0.5;
}
.upvote-arrow:hover {
@apply text-link-hover;
}
.post-title {
@apply text-text-title font-normal text-base;
}
.post-title:hover {
@apply underline text-text-title;
}
.handle {
@apply text-text-muted ml-2 text-sm;
}
.time {
@apply text-text-muted ml-2 text-sm;
}
.rules-tips {
@apply text-md bg-rules-bg text-primary border-l-4 border-primary py-3 px-4;
}
.post-item {
@apply py-3 px-2 border-b border-border-light bg-transparent;
}
.post-item:last-child {
@apply border-b-0;
}
.nested-comment {
@apply ml-6 mt-4 border-l-2 border-gray-200 pl-4 text-md;
}
.reply-box {
@apply ml-8 mt-4;
}
.comment-header small.reply {
@apply underline text-xs cursor-pointer ml-2 inline-block;
}
.post-header {
@apply flex items-center space-x-2;
}
.post-header .post-title {
@apply text-text-title font-normal text-base;
}
.post-header .upvote-arrow {
@apply text-text-muted no-underline text-md leading-none inline-block pt-0.5;
}
.post-header .upvote-arrow:hover {
@apply text-link-hover;
}
.post-header .upvote-count {
@apply text-text-muted text-sm;
}
}
/* Any absolutely custom styles that don't fit in Tailwind's utility pattern */
.carbon-demo {
background-color: #fff;
border-radius: 0.2em;
display: grid;
grid-template-columns: 130px 1fr;
justify-content: center;
margin: 60px auto;
max-width: 360px;
overflow: hidden;
position: relative;
padding: 0;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}
.carbon-demo > * {
box-sizing: border-box;
}
.carbon-demo .carbon-img {
height: auto;
width: 130px;
}
.carbon-demo .carbon-desc {
font-size: 0.875rem;
line-height: 1.35;
padding: 0.75rem;
}
.carbon-demo .carbon-via {
bottom: 1em;
font-size: 0.625em;
font-weight: 600;
left: calc(130px + 0.75rem);
letter-spacing: 0.1ch;
position: absolute;
text-transform: uppercase;
}