Skip to content

Commit

Permalink
Merge branch 'main' into hero-refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
gregswinehart authored Mar 22, 2024
2 parents 406efa5 + ccec753 commit aede0b5
Show file tree
Hide file tree
Showing 54 changed files with 438 additions and 5,695 deletions.
141 changes: 134 additions & 7 deletions components/_partials/components-list.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/* Remove space at top of list page */

#quarto-content>* {
padding-top: 0px;
margin-top: 0px;
}

/* List page background colors */

#quarto-content {
Expand All @@ -22,6 +15,13 @@
100%);
}

/* Remove space at top of list page */

#quarto-content>* {
padding-top: 0px;
margin-top: 0px;
}

/* Shinylive styling for list page */

.shinylive-container.viewer {
Expand Down Expand Up @@ -58,3 +58,130 @@ div.shinylive-wrapper {
.shinylive-container>div {
border-radius: 10px;
}


/* list page styling */

.list-section {
border-top: 1px solid #cdd4da;
padding-top: 3rem;
padding-bottom: 5rem;
}
.component-list-column {
padding-top: 1rem;
align-self: end;
}

.component-list-card {
box-shadow: 0px 1px 2px rgba(29, 31, 33, 0.1),
0px 2px 3px rgba(29, 31, 33, 0.1), 0px 3px 8px rgba(29, 31, 33, 0.1);
border-radius: 10px;
height: 150px;
background-color: #ffffff;
display: flex;
justify-content: center;
align-content: center;
flex-wrap: wrap;
}
.component-list-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 0px;
}


.component-list-header-text,
.component-list-icon a {
text-decoration: none;
color: #212529;
}

.component-list-icon {
margin-bottom: 0.375rem;
}

.component-list-icon a {
font-size: 1.25em;
}

.component-list-header-text a {
border-bottom: none;
}
.component-link-icon {
margin: 0.25rem;
white-space: nowrap;
}

a .component-link-icon:after {
content: "\F134";
font-family: "bootstrap-icons";
transition: all 0.3s !important;
}

a:hover .component-link-icon:after,
a.component-list-header-text:hover
~ div.component-list-icon
p
a
i.component-link-icon:after {
content: "\F133";
font-family: "bootstrap-icons";
}

.component-list-header-text:hover {
color: #000000;
}

/* Hero area of list page */

@media only screen and (max-width: 767px) {
.components-hero-img-container {
display: none;
}
}
@media only screen and (min-width: 768px) {
.components-hero-img-container {
text-align: right;
}
}
@media only screen and (min-width: 768px) {
.components-hero-img {
width: 450px;
margin-left: -80px;
}
.hero-area {
height: 373px;
}
}
@media only screen and (min-width: 992px) {
.components-hero-img {
margin-left: -60px;
width: 550px;
}
.hero-area {
height: 500px;
}
.components-hero-img-container {
margin-top: auto;
margin-bottom: auto;
overflow: hidden;
margin-right: -2.5rem;
margin-left: -1.5rem;
}
}

@media only screen and (min-width: 1350px) {
.components-hero-img {
margin-left: -60px;
width: 650px;
}
.components-hero-img-container {
margin-top: auto;
margin-bottom: auto;
overflow: hidden;
margin-right: -2.5rem;
margin-left: 1.5rem;
}
}

173 changes: 25 additions & 148 deletions components/_partials/components.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,14 @@
/* make space for sidebar icons */
@media only screen and (min-width: 992px) {
.components-hero-img {
margin-left: -60px;
width: 550px;
}
.components-hero-img-container {
margin-top: auto;
margin-bottom: auto;
overflow: hidden;
margin-right: -2.5rem;
margin-left: -1.5rem;
}
}
/*
@media only screen and (min-width: 1350px) {
.components-hero-img {
margin-left: -60px;
width: 650px;
}
.components-hero-img-container {
margin-top: auto;
margin-bottom: auto;
overflow: hidden;
margin-right: -2.5rem;
margin-left: 1.5rem;
}
} /* make space for sidebar icons */
The /components/ section is made up of a list page and artcle pages.
The components list page (/components/index.qmd) gets styling from /components/_partials/components-list.css.
The article pages (/components/_____/index.qmd) get styling from here.
*/

/* make space for sidebar icons */

@media only screen and (min-width: 992px) {
#quarto-sidebar > * {
Expand All @@ -34,129 +17,34 @@
}
}

/* list page styling */

.list-section {
border-top: 1px solid #cdd4da;
padding-top: 3rem;
padding-bottom: 5rem;
}
.component-list-column {
padding-top: 1rem;
align-self: end;
}

.component-list-card {
box-shadow: 0px 1px 2px rgba(29, 31, 33, 0.1),
0px 2px 3px rgba(29, 31, 33, 0.1), 0px 3px 8px rgba(29, 31, 33, 0.1);
border-radius: 10px;
height: 150px;
background-color: #ffffff;
display: flex;
justify-content: center;
align-content: center;
flex-wrap: wrap;
}
.component-list-header {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-bottom: 0px;
}
/* Add rule and spacing between sections */

.component-list-header-text h5 {
margin-bottom: 0.2rem;
}
.component-list-header-text,
.component-list-icon a {
text-decoration: none;
color: #212529;
section.level2:not(:first-child) h2 {
border-top: 1px solid var(--bs-primary);
padding-top: 5rem !important;
margin-top: 5rem !important;
}

.component-list-icon a {
font-size: 1.25em;
margin-bottom: -4px;
section.level2:not(:first-child) > :last-child {
margin-bottom: 0;
}

.component-list-header-text a {
border-bottom: none;
}
.component-link-icon {
margin: 0.25rem;
white-space: nowrap;
}
/*Make code in Relavent Functions wrap*/

a .component-link-icon:after {
content: "\F134";
font-family: "bootstrap-icons";
transition: all 0.3s !important;
#relevant-functions ul li code {
white-space: normal;
}

a:hover .component-link-icon:after,
a.component-list-header-text:hover
~ div.component-list-icon
p
a
i.component-link-icon:after {
content: "\F133";
font-family: "bootstrap-icons";
}

.component-list-header-text:hover {
color: #000000;
}
/*remove extra space under header*/

/* Hero area of list page */

@media only screen and (max-width: 767px) {
.components-hero-img-container {
display: none;
}
}
@media only screen and (min-width: 768px) {
.components-hero-img-container {
text-align: right;
}
}
@media only screen and (min-width: 768px) {
.components-hero-img {
width: 450px;
margin-left: -80px;
}
.hero-area {
height: 373px;
}
}
@media only screen and (min-width: 992px) {
.components-hero-img {
margin-left: -60px;
width: 550px;
}
.hero-area {
height: 500px;
}
.components-hero-img-container {
margin-top: auto;
margin-bottom: auto;
overflow: hidden;
margin-right: -2.5rem;
margin-left: -1.5rem;
}
#title-block-header {
margin-block-end: 0px;
}

@media only screen and (min-width: 1350px) {
.components-hero-img {
margin-left: -60px;
width: 650px;
}
.components-hero-img-container {
margin-top: auto;
margin-bottom: auto;
overflow: hidden;
margin-right: -2.5rem;
margin-left: 1.5rem;
}
}


.component-hr:last-of-type {
display: none;
Expand Down Expand Up @@ -189,15 +77,4 @@ main a.nav-link:hover {
.iframe-border {
border: 1px solid #e9ecef;
border-radius: 10px;
}

/* Add rule and spacing between sections */
section.level2:not(:first-child) h2 {
border-top: 1px solid var(--bs-primary);
padding-top: 5rem !important;
margin-top: 5rem !important;
}

section.level2:not(:first-child) > :last-child {
margin-bottom: 0;
}
}
6 changes: 3 additions & 3 deletions components/display-messages/notifications/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ listing:
shinylive: https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGMB7CAFzkqVQDMAnUmZAZwAsBLCXZTmdKQYVkDOFGIVOANzgAdCI2ZsuPLHAAe6Ma1Z8BQkd3QBXCkROcFCy1mNmA+hKnkHAIzMVyACjlgOpADufkR+AMrsQcgAcqRSdJzEUC4QfgCU1qkQAAJizjJw6nR0cJIKueKSBeqylN72FFgBgRkQACZwdCpBDkIOJuhtyXAOEHGcCUkp3mmICsgLyLZj8YnJnK7NvhCLu8h0fgCapCbIxAA2iQDWcG3IFOxwyBFRHhReOyANTZGBMwC+934cFYWBC8z2CzaJgY63IAF5YhA4AQIZCAMRnZjoKBie6kZCBdjJZDEzDUPQTZC4E5YmDwSjIE4iB5PS7I5BuODnIJovacNrwvzwXRQADm8kIfNahFQFFw6AQKDAVA0FDA-wAukA
- title: Core
file: app-variation-replace-update-a-notification-core.py
shinylive: https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGMB7CAFzkqVQDMAnUmZAZwAsBLCXZTmdKQYVkAQUxEGcKMQqcAbnCIBXTgB0IGjOgD6q5AF5kqnFADmcHXQA2qgCYAKDchfHOWbumUUdMueR0AI28KcicwDlIAdzVCZFiAZXZo5AA5Ujk6TmIof00wAEoCDQKNMog7ODo2OAZFBgdPbyJSby8KIlY4VlZOcgLEZ1cAASk-BTgsAFE6OjhZIZdR6VkJrDhFSkaIdqxIqNKIV2RK6v2dIT10O1zLCAzOLJy8hwHF47cse8zs3L6IHT7JxHD6guixACarWQxGs2QA1nA7MgKOw4MgkilghRQkcQE0KHtklFXgBfFH8bpYWLFEGg452ZQMP7kAzpCBKd705AAYhhzHQUCkKNIyCi7FyyAlmGorD41Vw0LIMHglGQrREqPRcI5yECcGs0S59M4dgMsXgPXMcBpxpch3K2kMYkwDm0ek4nVq9UOcTAFFw6AQKH9cAAHhQwKSALpAA
shinylive: https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGMB7CAFzkqVQDMAnUmZAZwAsBLCXZTmdKQYVkAQUxEGcKMQqcAbnCIBXTgB0IGjOgD6q5AF5kqnFADmcHXQA2qgCYAKDchfHOWbumUUdMueR0AI28KcicwDlIAdzVCZFiAZXZo5AA5Ujk6TmIof00wAEoCDQKNMog7ODo2OAZFBgdPbyJSby8KIlY4VlZOcgLEZ1cAASk-BTgsKro4WSGXUelZCanFSkaIdqxIqNKIV2RK6p2dIT10O1zLCAzOLJy8hwH5g7csG8zs3L6IHR2nfavIF0WIATVayGI1myAGs4HZkBR2HBkEkUsEKKF9iAmhRtskok8AL6I-jdLCxYqAoEHOzKBjfcgGdIQJQvGnIADEkOY6CgUkRpGQUXYuWQosw1FYfGquAhZBg8EoyFaIiRKOhrOQgTg1mi7JpnDsBli8B65jglINLj25W0hjEmAc2j0nE6tXqeziYAouHQCBQPrgAA8KGAiQBdIA
- title: Track and remove notifications
description: Track notifications, and use `ui.notification_remove()` to remove
notifications one at a time.
Expand All @@ -59,10 +59,10 @@ listing:
height: 225
- title: Express
file: app-variation-track-and-remove-notifications-express.py
shinylive: https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGMB7CAFzkqVQDMAnUmZAZwAsBLCXZTmdKQYVkDOFGIVOANzgAdCI2ZsuPLHAAe6Ma1Z8BQkd3QBXCkROcFCy1mNmA+hKnkHAIzMVyACjlgOpADufkR+AMrsQcgAcqRSdJzEUC4QfgCUNpx2EKYUTpKcrh4UXhC+YGIwpLIhyH4ASnBVsjFxnAlJKenWEJwAJqwoADacrBTAYwwAusgAvMjAUwoQKNwi8wAMPQoAAmLOMnBYAKJ0dHCSu-sFsuqylN72FFgBgRkQfXB0yA7eaYgKZBA5AAcyGpDcUCGfAGgOBYIhUOQqQgwOQAGJkGEoC0KOw4MgAJIAEWQdCEoia1SRQ2ScAYcKB-TmyFsEDaHWShQgDle5QAsnBdFAQQS-MgANRsCgMbwQNJEPomBhc8izWIQODvNH9VhYDDoah9R59bXA1ES+YARm2ED24huR1O50uduuUlucHuFEeOTMWEq1S1Ck+31+-0ZoPBkOhusj7Rhg0jaLZHMSqp5gdkJr1gnQf3ehFQFFwhtoYCoGgoYAAvlMgA
shinylive: https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGMB7CAFzkqVQDMAnUmZAZwAsBLCXZTmdKQYVkDOFGIVOANzgAdCI2ZsuPLHAAe6Ma1Z8BQkd3QBXCkROcFCy1mNmA+hKnkHAIzMVyACjlgOpADufkR+AMrsQcgAcqRSdJzEUC4QfgCUNpx2EKYUTpKcrh4UXhC+YGIwpLIhyH4ASnBVsjFxnAlJKenWEJwAJqwoADacrBTAYwwAusgAvMjAUwoQKNwi8wAMPQoAAmLOMnDqdHRwkrv7BbLqspTe9hRYAYEZEH1wdMgO3mmICsgA5AAcyGpDcUCGfAG-0BILBEOQqQggOQAGJkGEoC0KOw4MgAJIAEWQdCEoia1QRQ2ScAYMIB-TmyFsEDaHWShQgDme5QAsnBdFAgXi-MgANRsCgMbwQNJEPomBgc8izWIQOCvFH9VhYDDoah9e59TWA5Fi+YARm2ED24iuRw+p3ONsuUmucFuFHuOTMWEq1Q1Cnen2+v3pwNB4Mh2vD7Shg3DKJZbMSyq5-tkRp1gnQP1ehFQFFw+toYCoGgoYAAvlMgA
- title: Core
file: app-variation-track-and-remove-notifications-core.py
shinylive: https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGM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zKpjxMJMy2Vyex0GKc2P+2pcdFi6WVQz2yBAEAAvm1kHZlAxVeQDOkIEpkMQyaxLLV6gYAGKS91yrE646nLDaaiOE6BoPYgDURgAjH9XLCQQiIVCKDDgfCwXAkRQUWjxYooy5cch8YStTq6QzJVTWHKBg3DtWgy5Ff1BnaIDpi3BliHBOgCVjJtpHuIR9o9JwiO6FvMsXEwBRcOgEChV3AAB4UMBmu5AA
---

:::{#example}
Expand Down
2 changes: 1 addition & 1 deletion components/display-messages/tooltips/app-preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
id="btn_tooltip", # <<
placement="top", # <<
),

)


def server(input, output, session):
@render.text
def text():
Expand Down
Loading

0 comments on commit aede0b5

Please sign in to comment.