Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling for table is added #1294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 23 additions & 10 deletions src/assets/scss/base/_generic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,13 @@ img {
}

hr {
background-image: linear-gradient(
to bottom,
transparent 1px,
transparent 11px,
$color-dark 11px,
$color-dark 15px,
transparent 15px,
transparent 26px
);
background-image: linear-gradient(to bottom,
transparent 1px,
transparent 11px,
$color-dark 11px,
$color-dark 15px,
transparent 15px,
transparent 26px);
background-size: 100% 26px;
border: 0;
color: var(--color-typographic-base-font);
Expand Down Expand Up @@ -149,7 +147,22 @@ figcaption {
text-align: center;
}

table {
border-collapse: collapse;

& th,
& td {
border: 1px solid $color-gray; // suggession for color is needed
padding: 5px 10px;
}

& th {
background-color: $color-blue; // suggession for color is needed
}
}

@include breakpoint-sm {

figure.float-left,
figure.float-right {
max-width: 310px;
Expand All @@ -163,4 +176,4 @@ figcaption {
.float-left {
float: left;
}
}
}