Skip to content

Commit 487a8b5

Browse files
committed
Github discussion button and updates to styles.scss
1 parent d0bd75c commit 487a8b5

File tree

2 files changed

+52
-6
lines changed

2 files changed

+52
-6
lines changed

_layout/navbar.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@
5353
</div>
5454

5555
<div class="navbar-end">
56+
<a class="navbar-item icon-text" href="https://github.com/orgs/JuliaSmoothOptimizers/discussions">
57+
<span class="icon">
58+
<ion-icon size="large" name="chatbubbles-outline"></ion-icon>
59+
</span>
60+
<span>Discussions</span>
61+
</a>
62+
5663
<a class="navbar-item icon-text" href="https://github.com/JuliaSmoothOptimizers/juliasmoothoptimizers.github.io/issues">
5764
<span class="icon">
5865
<ion-icon size="large" name="logo-github"></ion-icon>

_sass/styles.scss

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,17 @@ pre {
101101
}
102102

103103
.code-output {
104-
background-color: #fff;
105-
border: 2px solid #000;
106-
border-left: 2px solid #000;
107-
border-radius: 0px;
108-
border-top: 0px;
109-
margin-top: 0px;
104+
background-color: mix($body-background-color, #ffffff, 92%);
105+
border: 1px solid rgba(#000000, 0.08);
106+
border-left: 4px solid rgba($primary, 0.95);
107+
border-radius: 6px;
108+
margin-top: 0.5em;
110109
margin-bottom: 1.25em;
110+
padding: 0.85rem 1rem;
111+
font-family: $family-code;
112+
color: $dark-gray;
113+
line-height: 1.45;
114+
box-shadow: 0 1px 2px rgba(#000000, 0.03);
111115
}
112116

113117
.copy-button {
@@ -163,3 +167,38 @@ pre {
163167
height: 0px;
164168
overflow: hidden;
165169
}
170+
171+
table {
172+
width: 100%;
173+
border-collapse: collapse;
174+
margin: 1rem 0;
175+
font-family: $family-sans-serif;
176+
color: $dark-gray;
177+
}
178+
179+
table th,
180+
table td {
181+
padding: 0.6rem 0.75rem;
182+
border: 1px solid rgba(#000000, 0.06);
183+
vertical-align: middle;
184+
text-align: left;
185+
}
186+
187+
table thead th {
188+
background: $primary;
189+
color: white;
190+
font-weight: 600;
191+
border-bottom: 2px solid rgba(#000000, 0.08);
192+
}
193+
194+
table tbody tr:nth-child(even) {
195+
background: mix($body-background-color, #ffffff, 96%);
196+
}
197+
198+
table tbody tr:hover {
199+
background: mix($primary, $body-background-color, 92%);
200+
}
201+
202+
.table-wrapper {
203+
overflow-x: auto;
204+
}

0 commit comments

Comments
 (0)