Skip to content

Commit

Permalink
How2Pass: Added some custom rules, code block styles, and exhibit sty…
Browse files Browse the repository at this point in the history
…les.
  • Loading branch information
Kashan Ahmad committed Nov 6, 2021
1 parent 2257f9a commit 0fa733b
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 1 deletion.
72 changes: 72 additions & 0 deletions css/how2pass/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root {
--code-block-font: 400 0.75rem / 1.5 var(--bs-font-monospace);
}

/* Custom rules. */
p {
margin: 0;
Expand All @@ -23,6 +27,16 @@ h6,
display: none !important;
}

ul {
margin: 0;
padding: 0;
padding-left: 1rem;
}

.list__item:not(:last-child) {
margin-bottom: 0.5rem;
}

.btn {
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
}
Expand Down Expand Up @@ -61,6 +75,18 @@ h6,
max-height: 100rem !important;
}

b,
strong {
font-weight: bold !important;
}

.noStyles {
padding: 0 !important;
margin: 0 !important;
border: 0 !important;
background-color: transparent !important;
}

.closeButton {
display: grid;
place-items: center;
Expand Down Expand Up @@ -186,3 +212,49 @@ h6,
.gr-winterneva {
background-image: linear-gradient(120deg, #a1c4fd 0, #c2e9fb 100%);
}

/* Text-based exhibits that come with the question statements. */
.qExhibit {
color: black;
background-color: #fff3cd;
padding: 1rem 1rem;
margin-bottom: 1rem;
margin-top: 0.5rem;
border: 1px solid transparent;
border-radius: 0.25rem;
font: var(--code-block-font) !important;
white-space: nowrap;
overflow: auto;
}

.qExhibit * {
font: var(--code-block-font) !important;
}

/* Terminal outputs, pre, code, blockquotes. */
.card-body :is(.cli, blockquote) {
padding: 1rem;
margin: 1rem 0;
border-radius: 0.25rem;
border: 1px solid var(--bs-dark);
background-color: var(--bs-gray-dark);
}

.card-body :is(pre, blockquote) {
margin: 0;
}

.card-body :is(.cli, pre, code, blockquote) {
overflow: auto;
white-space: nowrap;
color: var(--bs-light);
font: var(--code-block-font) !important;
}

.card-body :is(.cli, pre, code, blockquote) * {
font: var(--code-block-font) !important;
}

.card-body :is(.cli, pre, code, blockquote) :is(b, strong) {
font-weight: 700 !important;
}
2 changes: 1 addition & 1 deletion css/how2pass/styles.min.css

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

0 comments on commit 0fa733b

Please sign in to comment.