Newer
Older

Chris Wells
committed
/* WIP: Move from the style tags. */
/* <Filter> */

Chris DeLuca
committed
.filter__fieldset {
margin: 0;

Chris DeLuca
committed
}
.filter__fieldset h2 {
margin-block-start: 0;
}

Chris Wells
committed
.filter__summary {
padding: 0;
cursor: pointer;
}
[open] .filter__summary {
padding-bottom: 0.95rem;
}
.filter__heading {
display: inline;

Chris Wells
committed
padding: 0 0.5rem;

Chris Wells
committed
}
.filter__checkbox-label {
display: block;
padding: 5px 0;
}
.filter__checkbox {

Chris DeLuca
committed
margin-inline: 10px;

Chris Wells
committed
}

Jay Huskins
committed
input.filter__checkbox:focus-visible {
outline: 3px solid #26a769;
outline-offset: 2px;
}

Chris Wells
committed
.filter__fieldset {
border: none;
}

Chris DeLuca
committed
.filter__checkbox-label,
.filter__checkbox {

Chris Wells
committed
cursor: pointer;
}
/* <ImageCarousel> */
.image-carousel__carousel {
display: flex;
align-items: center;
width: 100%;
height: 400px;
}
.image-carousel__slider-image {
min-width: 650px;
min-height: 400px;
margin: 10px;
}
.image-carousel__slide-btn--right {
transform: rotate(180deg);
}
.image-carousel__slide-btn {
margin: 0 10px;
cursor: pointer;
}
.image-carousel__slide-btn:disabled {
cursor: inherit;

Chris Wells
committed
}
.image-carousel__slide-btn > img {
width: 50px;
height: 59px;
border: none;
background: transparent;

Chris Wells
committed
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
}
@media only screen and (max-width: 600px) {
.image-carousel__slider-image {
min-width: 60%;
min-height: 60%;
}
}
/* <Loading> */
.loading__ajax-progress {
display: inline-block;
}
.absolute {
position: absolute !important;
}
.ajax-progress__throbber {
box-sizing: border-box;
width: 1.125rem;
height: 1.125rem;
animation: pb-throbber 0.75s linear infinite;
border: 2px solid #003cc5;
border-right: 2px dotted transparent;
border-radius: 50%;
}
.ajax-progress--fullscreen {
position: fixed;
z-index: 1000;
top: 50%;
left: 50%;
box-sizing: border-box;
width: 3.5rem; /* 56px */
height: 3.5rem;
margin: -1.75rem;
border: 1px solid rgba(216, 217, 224, 0.8);
border-radius: 3.5rem;
background: #fff;
box-shadow: 0 0.25rem 0.625rem rgba(34, 35, 48, 0.1);
}
.ajax-progress__throbber--fullscreen {
position: absolute;
top: 50%;
left: 50%;
width: 1.75rem; /* 28px */
height: 1.75rem; /* 28px */
margin: -0.875rem;
content: "";
border: 3px solid #003cc5;
border-right: 3px dotted transparent;
}
@keyframes pb-throbber {
0% {
transform: rotateZ(0);
}
100% {
transform: rotateZ(360deg);
}
}
/* <ModulePage> */
.module-page__wrapper {
display: flex;
text-align: start;
}
.module-page__sidebar {
display: flex;

Chris Wells
committed
flex-direction: column;

Chris Wells
committed
}
.module-page__main {
display: flex;

Chris Wells
committed
flex-direction: column;
align-items: flex-start;

Chris Wells
committed
}
.module-page__action-button-wrapper {
margin: 20px;
}
.module-page__divider {

Chris Wells
committed
}
.module-page__categories-label {
font-weight: bold;
}
.module-page__module-details-grid {
display: grid;
grid-template-columns: 0.5fr 2fr;
margin-top: 10px;

Chris Wells
committed
}
.module-page__module-details-grid > *:nth-child(odd) {
margin: 10% 20% 0 40%;
}
.module-page__module-details-grid > *:nth-child(even) {
margin: 5px 15px;
}
.module-page__category-list {
display: inline-block;
width: 100%;
height: 20px;
margin: 0.25em 0 0.25em 0;
padding: 0;

Chris Wells
committed
cursor: pointer;
}
.module-page__category-list-item {
display: inline-block;
margin-top: 5px;
margin-bottom: 2px;
margin-inline-start: 7px;
padding: 2px 9px;
list-style: none;
color: #4f4f4f;

Chris Wells
committed
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
border-radius: 25px;
background-color: #e5e5e5;
font-size: 0.9em;
font-weight: 600;
}
.module-page__project-logo {
min-height: 200px;
}
.module-page__carousel-wrapper {
margin: 20px 0;
}
.module-page--back-to-browsing {
text-decoration: none;
}
@media only screen and (max-width: 600px) {
.module-page__wrapper {
flex-direction: column;
}
}
/* <PagerItem> */
.pager__link--forward::after {
margin-inline-start: 0.5rem;
}
.pager__link--backward::before {
margin-inline-end: 0.5rem;
}
/* <Pagination> */
.pagination__pager {
display: flex;
align-items: center;
justify-content: center;
}
.pagination__num-projects {
margin: 0 10px;
}
@media only screen and (max-width: 32rem) {
.pagination__pager {
flex-direction: column;
}
}
/* <ProjectBrowser> */
.project-browser__toggle {
display: flex;
align-items: center;
justify-content: space-evenly;
width: 80.41px;
height: 30px;

Chris Wells
committed
margin-bottom: 1.5em;
color: #232429;

Chris Wells
committed
background-color: #d3d4d9;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);

Chris Wells
committed
}
.project-browser__list-icon,
.project-browser__grid-icon {
pointer-events: none;
}
.project-browser__toggle:first-child {
margin-inline-start: auto;
}
.project-browser__toggle-buttons {
display: flex;
margin-inline-end: 25px;
font-weight: bold;
}
.project-browser__toggle:focus {
box-shadow: 0 0 0 2px #fff, 0 0 0 5px #26a769;
}
.project-browser__toggle.project-browser__list-button {
margin-inline-end: 5px;
cursor: pointer;
border-radius: 2px 0 0 2px;

Chris Wells
committed
}
.project-browser__toggle.project-browser__grid-button {
margin-inline-end: 5px;
cursor: pointer;
border-radius: 0 2px 2px 0;

Chris Wells
committed
}
.project-browser__selected-tab {
background-color: #adaeb3;
}
.search-results {
margin-bottom: 5px;
margin-inline-start: 10px;
font-weight: bold;

Chris Wells
committed
}
.project-browser__install-warning {
padding: 1em;

Chris Wells
committed
}
.project-browser__warning {
margin: 0.5em 0;
}
.project-browser__warning-header {
color: red;
}
.search-results-wrapper {
display: flex;
justify-content: space-between;
border-bottom: 1px solid #dee2e6;
}
#output {
display: inline-block;

Chris Wells
committed
font-family: sans-serif;
font-size: 14px;
font-weight: 700;
font-style: normal;

Chris Wells
committed
line-height: 21px;
}
@media (forced-colors: active) {
.project-browser__toggle {
border: 1px solid;
}
@media (prefers-color-scheme: dark) {
.project-browser__list-icon {
filter: invert(1);
}
.project-browser__grid-icon {
filter: invert(1);
}
}
}
/* <ProjectGrid> */

Chris DeLuca
committed
.project-browser__container {

Chris Wells
committed
display: flex;

Chris DeLuca
committed
flex-flow: column nowrap;
gap: 1.5rem;
}
@media screen and (min-width: 800px) {
.project-browser__container {
flex-flow: row wrap;
}

Chris Wells
committed
}
.project-browser__aside {

Chris DeLuca
committed
flex: 0 1 max-content;

Chris Wells
committed
}
.project-browser__main {

Chris DeLuca
committed
flex: 1 1 0;
}
.projects-list,
.projects-grid {
--grid-layout-gap: 1rem;
--grid-item--min-width: 340px;
--gap-count: calc(var(--grid-column-count) - 1);
--total-gap-width: calc(var(--gap-count) * var(--grid-layout-gap));
--grid-item--max-width: calc(
(100% - var(--total-gap-width)) / var(--grid-column-count)
);

Chris DeLuca
committed
display: grid;
grid-template-columns: repeat(
auto-fill,
minmax(max(var(--grid-item--min-width), var(--grid-item--max-width)), 1fr)
);
gap: var(--grid-layout-gap);
margin: 0;

Chris Wells
committed
}

Chris DeLuca
committed
.projects-grid {
--grid-column-count: 5;

Chris Wells
committed
}

Chris DeLuca
committed
.projects-list {
--grid-column-count: 1;

Chris Wells
committed
}

Chris DeLuca
committed

Chris Wells
committed
/* <Tabs> */
.tabs__tab {
cursor: pointer;

Chris Wells
committed
}
.tabs__tab:focus {
box-shadow: 0 0 0 2px #fff, 0 0 0 5px #26a769;
}
.project-browser__plugin-tabs {
display: flex;
}
.project-browser__plugin-tab {
margin-inline: 0 5px;

Chris Wells
committed
height: auto;
min-height: 30px;
cursor: pointer;
}
/* <Project/ActionButton> */
.action-button__wrapper {
margin-inline-start: auto;
}
.action-button__unicode {
color: #228572;
}
/* <Project/Categories> */
.categories__list {
display: inline-block;
width: 100%;
height: 20px;
margin: 0.25em 0 0.25em 0;
padding: 0;

Chris Wells
committed
}
.categories__category {
display: inline-block;
margin-top: 2px;
margin-bottom: 2px;
padding: 2px 9px;
list-style: none;
color: #4f4f4f;

Chris Wells
committed
border-radius: 25px;
background-color: #e5e5e5;
font-size: 0.9em;
font-weight: 600;
}
.categories__category:not(:first-child, .categories__category--extra) {
margin-inline-start: 4px;
}
.categories .categories__category--extra {
border: 1px solid #bbb;
background-color: transparent;

Chris Wells
committed
}
.categories__list--grid {
text-align: center;
}
@media (forced-colors: active) {
.categories__category {
border: 1px solid;
}
}
/* <Project/Image> */
.image-carousel__slider-image,
.project__logo-image {
display: block;

Chris DeLuca
committed
margin-inline: auto;

Chris Wells
committed
width: 50%;
object-fit: scale-down;
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
.image-carousel__slider-image,
.project__logo-image {
display: block;
width: auto;
height: 100px;

Chris Wells
committed
}
}
/* <Project/LoadingEllipsis> */
.loading-ellipsis {
position: relative;
}
.loading-ellipsis::after {

Chris Wells
committed
position: absolute;
display: inline-block;
overflow: hidden;
width: 0;
content: "\2026"; /* ascii code for the ellipsis character */

Chris Wells
committed
-webkit-animation: ellipsis steps(4, end) 900ms infinite;
animation: ellipsis steps(4, end) 900ms infinite;

Chris Wells
committed
}
@keyframes ellipsis {
to {
width: 20px;
}
}
/* <Project/Project> */

Chris DeLuca
committed
/* One column card view */

Chris Wells
committed
.project {

Chris DeLuca
committed
padding: 1em;

Chris Wells
committed
}

Chris DeLuca
committed
.project--grid {

Chris Wells
committed
display: flex;

Chris DeLuca
committed
flex-flow: column nowrap;
gap: 1em;

Chris Wells
committed
border: 1px solid rgba(212, 212, 218, 0.8);
border-radius: 2px;
box-shadow: 0 4px 10px rgb(0, 0, 0 / 0.1);

Chris DeLuca
committed
}
.project__title {
margin-block: 0;

Chris Wells
committed
}
.project--grid .project__title {
text-align: center;
}
.project__link {
color: black;
}
.project__link:hover {
color: #003ecc;
}
.project--grid .project__body {
text-align: center;
}

Chris DeLuca
committed
.project__icons {

Chris Wells
committed
display: flex;

Chris DeLuca
committed
align-items: center;
gap: 10px;
margin-block-start: auto;

Chris Wells
committed
}
.project__body {
font-size: 15px;
}

Chris DeLuca
committed
.project--list {

Chris Wells
committed
display: grid;
grid-template-areas:
"aside main"
"aside footer";
grid-template-rows: 1fr;
grid-template-columns: 100px 1fr;

Chris DeLuca
committed
gap: 1rem;
border: 0.5px solid #a4a2a2;
background: #fff;
box-shadow: 0 4px 4px rgba(0,0,0,0.25);

Chris Wells
committed
}
.project--list .project__image {
padding-inline-start: 4em;
}
.project--list .project__icons {
grid-area: footer;
}
.project--list .project__logo {
grid-area: aside;

Chris DeLuca
committed
justify-self: center;
}
.project__logo-image {
margin: 0;

Chris Wells
committed
}
.project--list .project__main {
grid-area: main;
}
.project__icons p {
display: inline;
}
.project__icons.warnings {
display: block;
}
.project__icons.warnings span {
display: list-item;
}
.project__icons.warnings img {
position: relative;
bottom: -0.25rem;
display: inline;
width: 1.2rem;

Chris Wells
committed
}
.warnings + .action {
margin-bottom: 1em;

Chris Wells
committed
}
.project__project-usage-container {
display: flex;
align-items: center;
justify-content: center;
}
.project__status-icon {
display: block;
font-size: 30px; /* Used to set size of icon, which is 1em. */

Chris Wells
committed
}

Chris DeLuca
committed
.project__active-installs-text,

Chris Wells
committed
.project__install-count {
font-size: 13px;
}
/* <Project/ProjectButtonBase> */
.project_button--primary {
display: flex;
align-items: center;
justify-content: center;
height: 24px;

Chris Wells
committed
margin: 0 !important;
text-align: center;
white-space: nowrap;
color: #fff;

Chris Wells
committed
border-width: 0 !important;
box-shadow: none;
font-size: 12.65px;
line-height: 19px;
}
@media (forced-colors: active) {
.project_button--primary {
border: 1px solid !important;
}
}
/* <Project/ProjectIcon> */
.pb-icon {
max-height: 1em;
}

Chris Wells
committed
.pb-icon--project-listing {
width: 2.4em;
}
.pb-icon--module-details {
width: 25px;
}
@media (forced-colors: active) and (prefers-color-scheme: dark) {
.pb-icon--usage {
filter: invert(1);
}
}
/* <Project/ProjectStatusIndicator> */
.project_status-indicator {
text-decoration: none;

Chris Wells
committed
}
/* <Search/FilterApplied> */
.filter-applied {
display: inline-flex;
align-items: center;
width: auto;
height: auto;
margin-inline-end: 10px;
padding: 10px;
word-wrap: break-word;
color: white;
border-radius: 25px;
background: #013cc5;
font-size: 0.875rem;

Chris Wells
committed
}
.filter-applied__button-close {
display: inline-flex;
margin-inline-start: 10px;
padding: 0;
cursor: pointer;

Chris Wells
committed
border: none;

Chris Wells
committed
background: none;

Chris Wells
committed
}
.filter-applied__button-close > img {
width: 20px;
height: 20px;
transform: scale(1.4);

Chris Wells
committed
}
@media (forced-colors: active) {
.filter-applied {
border: 1px solid;
}
@media (prefers-color-scheme: light) {
.filter-applied__button-close > img {
filter: invert(1);
}
}
}
/* <Search/FilterGroup> */
.filter-group__radio {
width: 20px;
height: 20px;

Chris Wells
committed
}
.filter-group__radio:hover {
cursor: pointer;
}
.filter-group {
margin: 0;
padding: 0;
border: none;

Chris Wells
committed
}
.filter-group__title-wrapper {
margin-block-end: 10px;
font-size: 18px;

Chris Wells
committed
}
.filter-group__filter-option {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 5px;

Chris Wells
committed
}
@media only screen and (max-width: 72rem) {
.filter-group {
display: table;
}
}
/* <Search/Search> */
.search__form-item {
margin-top: 0;
}
.search__form {
display: inherit;
flex-wrap: wrap;

Chris Wells
committed
padding: 0 0 1.5rem;
}
.search__search-bar .search__search_term {
position: relative;
display: flex;
width: 100%;
height: 50px;
outline: none;

Chris Wells
committed
}
.search__search-bar {

Chris Wells
committed
height: 50px;

Chris Wells
committed
text-align: center;
color: #fff;
border: 1px solid #919297;
border-radius: 2px;

Chris Wells
committed
}
.search__search-icon {
position: absolute;
bottom: 12px;
inset-inline-end: 30px;
}
.search__search_term::placeholder {
display: flex;
align-items: center;

Chris Wells
committed
font-family: sans-serif;
font-size: 16px;
font-weight: 400;
font-style: normal;

Chris Wells
committed
line-height: 150%;
}
.dropdown-filters {
position: relative;
z-index: 1;
border: 3px solid #f3f4f9;

Chris Wells
committed
}
.search__grid-container {
display: grid;
grid-template-columns: 5fr auto auto;
grid-gap: 20px;
align-items: center;
max-width: 100%;
height: auto;
padding: 5px;
background: #f3f4f9;

Chris Wells
committed
}
.search__filter-button {
padding: 0 0.25rem;
cursor: pointer;
text-decoration: underline;
color: #013cc5;
border: none;
background: none;

Chris Wells
committed
}
@media screen and (max-width: 855px) {
.search__grid-container {
display: block;
}
}
/* <Search/SearchFilters> */
.search__filters {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 10px;
padding: 20px;

Chris Wells
committed
}
/* <Search/SearchFilterToggle> */
.search__filter__toggle-container {
display: flex;
margin-inline-end: 1em;
}
.search__filter-wrapper {
display: flex;
align-items: center;
}

Chris Wells
committed
.search__filter__toggle {
width: fit-content;
margin-inline-start: 15px;
padding-right: 16px;
padding-left: 16px;

Chris Wells
committed
text-decoration: underline;
color: black;
border-radius: 2px;
background-color: #d3d4d9;
font-size: 16px;

Chris Wells
committed
}
.search__filter__toggle.is_open {
background-color: #adaeb3;
}
.search__filter__toggle:hover {
cursor: pointer;
}
.search__filter__toggle-img {
width: 20px;
height: 14px;
margin-bottom: -2px;
margin-inline-end: 4px;

Chris Wells
committed
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
}
@media (forced-colors: active) {
.search__filter__toggle {
border: 1px solid;
}
@media (prefers-color-scheme: dark) {
.search__filter__toggle-img {
filter: invert(1);
}
}
}
/* <Search/SearchSort> */
.search__sort {
z-index: 2;
}
.search__sort-select {
border: none;
background-color: #d3d4d9;
}
.search__sort-select:hover {
cursor: pointer;
}
@media screen and (max-width: 855px) {
.search__sort {
margin-top: 10px;

Chris Wells
committed
}
.search__filter-wrapper {
flex-direction: column;
align-items: flex-start;
margin: 20px 0;
}

Chris Wells
committed
}
@media (forced-colors: active) {
#pb-sort {
border: 1px solid;
}
}