Skip to content

Commit

Permalink
Merge pull request #6345 from OCHA-DAP/dev
Browse files Browse the repository at this point in the history
dev into prod for landing pages
  • Loading branch information
alexandru-m-g authored Jun 6, 2024
2 parents 78180e9 + e53830b commit a91e364
Show file tree
Hide file tree
Showing 26 changed files with 348 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
background-repeat: no-repeat;
background-position: left center;
width: 126px;
height: 30px;
margin-top: 1px;
height: 28px;
margin-top: 3px;
}
/* END HDX Version display */
4 changes: 2 additions & 2 deletions ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/base/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -4180,8 +4180,8 @@ ul.list-horizontal li:first-child:before {
background-repeat: no-repeat;
background-position: left center;
width: 126px;
height: 30px;
margin-top: 1px;
height: 28px;
margin-top: 3px;
}
/* END HDX Version display */
/* HEADER Search Widget */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.bem-hero__title {
color: #000;
font-weight: 400;
font-family: 'Gotham-Bold', sans-serif;
font-family: 'Gotham-Book', sans-serif;
font-size: 48px;
line-height: 48px;
}
Expand Down Expand Up @@ -40,7 +40,7 @@
line-height: 28px;
}
.bem-hero__image {
max-height: 50px;
max-height: 45px;
}
.bem-hero__sections {
color: #000;
Expand Down
58 changes: 58 additions & 0 deletions ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/bem.blocks/table.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
.bem-table__thead {
font-weight: 600;
font-size: 18px;
line-height: 24px;
color: #000;
}
.bem-table__tbody {
font-size: 18px;
line-height: 24px;
color: #000;
}
.bem-table__cell a {
font-family: 'Inter', sans-serif;
font-size: 16px;
font-weight: 600;
color: #007CE1;
}
.bem-table_state_bordered {
border: 1px solid #E1E4ED;
border-radius: 8px;
box-shadow: 0 1px 4px 0 #D1D5DB;
}
@media (max-width: 768px) {
.bem-table_state_bordered {
border: 0;
border-radius: 0;
box-shadow: unset;
}
}
.bem-table_state_bordered .bem-table__thead .bem-table__row .row > *,
.bem-table_state_bordered .bem-table__tbody .bem-table__row .row > * {
border-bottom: 1px solid #E1E4ED;
border-right: 1px solid #E1E4ED;
}
.bem-table_state_bordered .bem-table__thead .bem-table__row .row > *:last-child,
.bem-table_state_bordered .bem-table__tbody .bem-table__row .row > *:last-child {
border-right: 0;
}
@media (max-width: 768px) {
.bem-table_state_bordered .bem-table__thead .bem-table__row .row > *,
.bem-table_state_bordered .bem-table__tbody .bem-table__row .row > * {
border-bottom: 0;
border-right: 0;
}
}
@media (max-width: 768px) {
.bem-table_state_bordered .bem-table__thead .bem-table__row,
.bem-table_state_bordered .bem-table__tbody .bem-table__row {
border: 1px solid #E1E4ED;
border-radius: 8px;
box-shadow: 0 1px 4px 0 #D1D5DB;
padding: 28px 32px;
}
}
.bem-table_state_bordered .bem-table__thead.bem-table__tbody .bem-table__row:last-child .row > *,
.bem-table_state_bordered .bem-table__tbody.bem-table__tbody .bem-table__row:last-child .row > * {
border-bottom: 0;
}
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -1637,8 +1637,8 @@ hr.dotted {
background-repeat: no-repeat;
background-position: left center;
width: 126px;
height: 30px;
margin-top: 1px;
height: 28px;
margin-top: 3px;
}
/* END HDX Version display */
/* Style breadcrumbs */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4212,8 +4212,8 @@ ul.list-horizontal li:first-child:before {
background-repeat: no-repeat;
background-position: left center;
width: 126px;
height: 30px;
margin-top: 1px;
height: 28px;
margin-top: 3px;
}
/* END HDX Version display */
/* HEADER Search Widget */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4307,8 +4307,8 @@ ul.list-horizontal li:first-child:before {
background-repeat: no-repeat;
background-position: left center;
width: 126px;
height: 30px;
margin-top: 1px;
height: 28px;
margin-top: 3px;
}
/* END HDX Version display */
/* HEADER Search Widget */
Expand Down
20 changes: 20 additions & 0 deletions ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ bem-blocks-styles:
- bem.blocks/form_button.css
- bem.blocks/account_options.css
- bem.blocks/info_box.css
- bem.blocks/table.css
- bem.blocks/select2_field.css
- bem.blocks/textarea_field.css

Expand Down Expand Up @@ -347,11 +348,15 @@ onboarding-bulk-user-styles:
- hdx_theme/onboarding-done-styles
- hdx_theme/onboarding-select-org-styles
- hdx_theme/onboarding-survey-styles
contents:
- css/empty.css

onboarding-bulk-user-scripts:
extra:
preload:
- hdx_theme/onboarding-scripts
contents:
- css/empty.css

onboarding-bulk-user-complete-onboarding-scripts:
extra:
Expand All @@ -360,19 +365,26 @@ onboarding-bulk-user-complete-onboarding-scripts:
- hdx_theme/onboarding-follow-scripts
- hdx_theme/onboarding-invite-scripts
- hdx_theme/onboarding-select-org-scripts
contents:
- css/empty.css

onboarding-bulk-anon-styles:
extra:
preload:
- hdx_theme/onboarding-styles
- hdx_theme/onboarding-verify-styles
- hdx_theme/onboarding-survey-styles
contents:
- css/empty.css


onboarding-bulk-anon-scripts:
extra:
preload:
- hdx_theme/onboarding-scripts
- hdx_theme/onboarding-password-scripts
contents:
- css/empty.css

onboarding-verify-styles:
output: ckanext-hdx_theme/%(version)s_onboarding-verify-styles.css
Expand Down Expand Up @@ -664,6 +676,8 @@ dataset-read-styles:
- hdx_theme/group-message-styles
- requestdata/main-styles
- hdx_theme/resource-list-styles
contents:
- css/empty.css

dataset-light-scripts:
<<: *common-js
Expand Down Expand Up @@ -1006,6 +1020,8 @@ country-topline-scripts:
- hdx_theme/country-scripts
- hdx_theme/charting-scripts
# this should not load here - hdx_theme/homepage-scripts
contents:
- css/empty.css

country-topline-styles:
output: ckanext-hdx_theme/%(version)s_country-topline-styles.css
Expand Down Expand Up @@ -1084,6 +1100,8 @@ group-form-scripts:
preload:
- hdx_theme/ckan
- hdx_theme/organization-form-styles
contents:
- css/empty.css

group-list-scripts:
<<: *common-js
Expand Down Expand Up @@ -1338,6 +1356,8 @@ group-message-styles:

dataviz-scripts:
output: ckanext-hdx_theme/%(version)s_dataviz-scripts.js
contents:
- css/empty.css

dataviz-styles:
output: ckanext-hdx_theme/%(version)s_dataviz-styles.css
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
background-repeat: no-repeat;
background-position: left center;
width: 126px;
height: 30px;
margin-top: 1px;
height: 28px;
margin-top: 3px;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
&__title {
color: @black-color;
font-weight: 400;
font-family: 'Gotham-Bold', sans-serif;
font-family: 'Gotham-Book', sans-serif;
font-size: 48px;
line-height: 48px;
@media (max-width: @breakpoint-lg) {
Expand Down Expand Up @@ -43,7 +43,7 @@
}

&__image {
max-height: 50px;
max-height: 45px;
}

&__sections {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
@import "bem_variables";

.bem-table {

&__thead {
font-weight: 600;
font-size: 18px;
line-height: 24px;
color: @black-color;
}

&__tbody {
font-size: 18px;
line-height: 24px;
color: @black-color;
}

&__cell {

a {
font-family: 'Inter', sans-serif;
font-size: 16px;
font-weight: 600;
color: @blue-light-color;
}
}

&_state_bordered {
border: 1px solid @grey-extra-light-color;
border-radius: 8px;
box-shadow: 0 1px 4px 0 @grey-light-color;

@media (max-width: @breakpoint-md) {
border: 0;
border-radius: 0;
box-shadow: unset;
}

.bem-table__thead,
.bem-table__tbody {
.bem-table__row {
.row {
> * {
border-bottom: 1px solid @grey-extra-light-color;
border-right: 1px solid @grey-extra-light-color;

&:last-child {
border-right: 0;
}

@media (max-width: @breakpoint-md) {
border-bottom: 0;
border-right: 0;
}

}
}

@media (max-width: @breakpoint-md) {
border: 1px solid @grey-extra-light-color;
border-radius: 8px;
box-shadow: 0 1px 4px 0 @grey-light-color;
padding: 28px 32px;
}
}

&.bem-table__tbody {
.bem-table__row {
&:last-child {
.row {
> * {
border-bottom: 0;
}
}
}
}
}
}
}
}
Loading

0 comments on commit a91e364

Please sign in to comment.