pages/_sass/_components.scss
Scott Lee Chua 5ab56faadd
Update SASS syntax in base (non-font) files (#3281)
Partially fixes issue #3256 by updating SASS syntax in main SCSS files.

To fully address the issue, FontAwesome should be updated to `v7.x` and
Tabler to `v3.30` or higher (see Tabler fix
[here](https://github.com/tabler/tabler-icons/pull/1256)), where the
SCSS has been fixed.

---------

Signed-off-by: George Araújo <george.gcac@gmail.com>
Co-authored-by: George Araújo <george.gcac@gmail.com>
2026-01-26 18:26:44 -03:00

262 lines
3.9 KiB
SCSS

/*******************************************************************************
* Reusable component styles: Cards, captions, profiles, etc.
******************************************************************************/
// Checklist
ul.task-list {
list-style-type: none; /* Remove bullets from all levels */
}
ul.task-list > li ul {
/* Nested lists within .task-list */
padding-inline-start: 1.5rem;
}
ul.task-list input[type="checkbox"] {
margin: 0.275rem 0.5rem 0.5rem -1rem;
vertical-align: middle;
}
// Math
.equation {
margin-bottom: 1rem;
text-align: center;
}
// Caption
.caption {
font-size: 0.875rem;
margin-top: 0.75rem;
margin-bottom: 1.5rem;
text-align: center;
}
// Card
.card {
background-color: var(--global-card-bg-color);
.card-img {
width: 100%;
padding-top: 1.25rem;
}
.card-title {
color: var(--global-text-color);
}
.card-body {
padding: 1.25rem 1.25rem 1.25rem 1.25rem;
}
}
// Profile
.profile {
width: 100%;
.more-info {
margin-bottom: 5px;
margin-top: 5px;
font-family: monospace;
p {
display: inline-block;
margin: 0;
}
}
}
.profile.float-right {
margin-left: 1rem;
}
.profile.float-left {
margin-right: 1rem;
}
@media (min-width: 576px) {
.profile {
width: 30%;
.address {
p {
display: block;
}
}
}
}
// CV
.cv {
margin-bottom: 40px;
.card {
background-color: var(--global-card-bg-color);
border: 1px solid var(--global-divider-color);
.list-group-item {
background-color: inherit;
border-color: var(--global-divider-color);
.badge {
color: var(--global-card-bg-color) !important;
background-color: var(--global-theme-color) !important;
}
}
}
}
.table-cv-map {
background-color: transparent;
border: none;
color: var(--global-text-color);
}
.date-column {
width: 75px;
transform: translateX(-15px) translateY(-5px);
}
// Projects
.projects {
a {
text-decoration: none;
&:hover {
.card-title {
color: var(--global-theme-color);
}
}
}
.card {
img {
width: 100%;
}
}
.col {
padding-bottom: 1rem;
}
.grid-sizer,
.grid-item {
width: 250px;
margin-bottom: 10px;
}
h2.category {
color: var(--global-divider-color);
border-bottom: 1px solid var(--global-divider-color);
padding-top: 0.5rem;
margin-top: 2rem;
margin-bottom: 1rem;
text-align: right;
}
}
// Repositories
@media (min-width: 768px) {
.repo {
max-width: 50%;
}
}
// Social (bottom)
.social {
text-align: center;
.contact-icons {
font-size: 4rem;
a {
img {
width: 3.2rem;
height: 3.2rem;
margin-bottom: 1rem;
}
svg {
width: 3.5rem;
height: 4rem;
margin-bottom: 0.5rem;
image {
width: 3.5rem;
height: 3.5rem;
}
}
i::before {
color: var(--global-text-color);
transition-property: all 0.2s ease-in-out;
}
&:hover {
text-decoration: none;
i::before {
color: var(--global-theme-color);
}
}
}
}
.contact-note {
font-size: 0.8rem;
}
}
.wechat-modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.8);
}
.wechat-modal > img {
display: block;
position: relative;
top: 50%;
left: 50%;
width: 33%;
max-width: 400px;
transform: translate(-50%, -50%);
}
@media only screen and (max-width: 400px) {
.wechat-modal > img {
width: 100%;
}
}
// Distill
.distill {
a:hover {
border-bottom-color: var(--global-theme-color);
text-decoration: none;
}
}
// diff2html
.d2h-diff-table {
position: relative;
}