home73k/assets/css/app.scss

210 lines
3.4 KiB
SCSS
Raw Normal View History

/* Fonts */
@import "fonts";
2021-03-28 21:12:55 -04:00
/* Load Bootstrap v5 and customizations */
@import "bs-load";
2021-03-28 21:12:55 -04:00
/*SVG ICON SYSTEM*/
@import "svg-icons";
/* LiveView specific CSS */
@import "phx-liveview";
/* Navbar toggler icon override */
@import "nav-burger";
2021-03-28 21:12:55 -04:00
2021-03-29 19:50:47 -04:00
/* Navbar custom styling */
@import "nav-bar-help";
/* Chroma syntax highlighting styles */
@import "chroma";
2021-04-06 10:59:03 -04:00
/*
code highlighting handled by golang chroma
default 'solarized-dark256' css saved in _chroma.css
minor customizations here
*/
pre.chroma {
padding: 0.75rem 1rem;
border-radius: .5em;
2021-04-06 13:48:29 -04:00
background-color: #1c1c1c;
// color: $gray-300;
// span.c1 {
// color: $gray-600;
// }
}
code.inline {
background-color: #1c1c1c;
2021-04-06 13:48:29 -04:00
color: #e2e4e5;
2021-04-06 10:59:03 -04:00
padding: .1em .25em;
border-radius: .25em;
display: inline;
}
2021-03-29 19:50:47 -04:00
/* main */
html,
body {
color: $gray-100;
background-color: $gray-800;
height: 100%;
}
2021-04-03 23:22:35 -04:00
a {
color: $gray-100;
border-bottom: $secondary 2px solid;
text-decoration: none;
2021-04-05 22:42:52 -04:00
&.navbar-brand,
&.nav-link {
border-bottom: none;
}
2021-04-03 23:22:35 -04:00
&:visited {
color: $info;
.post-title & {
color: $gray-100;
}
2021-04-03 23:22:35 -04:00
}
&:hover {
color: $primary;
text-decoration: none;
2021-04-03 23:22:35 -04:00
}
}
2021-03-29 19:50:47 -04:00
.border-gray-900 {
border-color: $gray-900 !important;
}
2021-04-03 23:22:35 -04:00
.text-gray-200 {
color: $gray-200;
}
2021-03-29 19:50:47 -04:00
.text-gray-300 {
color: $gray-300;
}
2021-04-03 23:22:35 -04:00
.text-gray-400 {
color: $gray-400;
}
.text-gray-500 {
color: $gray-500;
}
2021-03-29 19:50:47 -04:00
.border-10 {
border-width: 10px !important;
}
.border-20 {
border-width: 20px !important;
}
2021-04-03 23:22:35 -04:00
.fw-500 {
font-weight: 500;
}
2021-03-29 19:50:47 -04:00
.fw-600 {
font-weight: 600;
}
2021-04-03 23:22:35 -04:00
.font-brand {
font-family: $font-family-brand;
}
.fs-larger {
font-size: larger;
}
.fs-smaller {
font-size: smaller;
}
2021-03-29 19:50:47 -04:00
/* social icons */
2021-04-03 23:22:35 -04:00
#social-icons .link-light {
border-bottom: none;
2021-04-03 23:22:35 -04:00
color: $gray-100;
&:hover {
color: $primary;
}
2021-03-29 19:50:47 -04:00
}
/* resume separators */
.separator {
display: flex;
align-items: center;
text-align: center;
2021-04-03 23:22:35 -04:00
color: $gray-500;
2021-03-29 19:50:47 -04:00
font-family: $font-family-monospace;
font-size: smaller;
text-transform: uppercase;
2021-04-03 23:22:35 -04:00
font-weight: 700;
&::before,
&::after {
content: "";
flex: 1;
border-bottom: 1px solid $secondary;
}
&:not(:empty)::before {
margin-right: 0.5em;
}
&:not(:empty)::after {
margin-left: 0.33em;
}
}
/* blog */
.post-title a {
color: $gray-100;
text-decoration: none;
border-bottom: none;
2021-04-03 23:22:35 -04:00
&:hover {
color: $primary;
border-bottom: $secondary 3px solid;
2021-04-03 23:22:35 -04:00
}
}
.post-lede,
.post-body {
color: $gray-200;
h2, h3, h4, h5, h6 {
color: $gray-300;
margin-top: 2rem;
}
}
.post li {
line-height: 1.75rem;
2021-03-29 19:50:47 -04:00
}
/* extra */
.was-validated .no-valid-style .form-check-input:valid,
.form-check-input.is-valid {
border-color: inherit !important;
2021-03-28 21:12:55 -04:00
}
.was-validated .no-valid-style .form-check-input:valid ~ .form-check-label,
.no-valid-style .form-check-input.is-valid ~ .form-check-label {
color: inherit !important;
2021-03-28 21:12:55 -04:00
}
.table-nonfluid {
width: auto !important;
2021-03-28 21:12:55 -04:00
}
.cursor-pointer {
cursor: pointer !important;
2021-03-28 21:12:55 -04:00
}
/*
icons in input fields
*/
/* enable absolute positioning */
.inner-addon {
position: relative;
2021-03-28 21:12:55 -04:00
}
/* style icon */
.inner-addon > .icon {
position: absolute;
padding: 0.5625rem 0.5rem;
pointer-events: none;
2021-03-28 21:12:55 -04:00
}
/* align icon */
.inner-addon > .icon.is-left {
left: 0px;
2021-03-28 21:12:55 -04:00
}
.inner-addon > .icon.is-right {
right: 0px;
2021-03-28 21:12:55 -04:00
}
/* add padding */
.left-addon input,
.left-addon select {
padding-left: 2rem;
2021-03-28 21:12:55 -04:00
}
.right-addon input,
.right-addon select {
padding-right: 2rem;
2021-03-28 21:12:55 -04:00
}