forked from wagtail/wagtail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
254 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,32 @@ | ||
.w-summary { | ||
// set up responsive font size for icon and number as local custom property | ||
--w-summary-item-font-size: clamp( | ||
theme('fontSize.30') * 1.5, | ||
6.5vw, | ||
calc(theme('fontSize.30') * 3) | ||
); | ||
|
||
color: theme('colors.text-link-default'); | ||
margin-bottom: theme('spacing.8'); | ||
padding-top: theme('spacing.8'); | ||
padding-top: theme('spacing.1'); | ||
|
||
.w-summary__list { | ||
@include unlist(); | ||
|
||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-evenly; | ||
width: 100%; | ||
column-gap: theme('spacing.8'); | ||
} | ||
|
||
/* Summary item */ | ||
li { | ||
display: flex; | ||
align-items: center; | ||
flex: 1 1 auto; | ||
flex-wrap: nowrap; | ||
gap: theme('spacing.[2.5]'); | ||
margin-bottom: theme('spacing.6'); | ||
} | ||
|
||
/* Summary icon */ | ||
.icon { | ||
font-size: var(--w-summary-item-font-size); | ||
height: 1em; | ||
margin-inline-end: 0.15em; | ||
width: 1em; | ||
@include svg-icon(1.375rem); | ||
color: theme('colors.icon-primary'); | ||
} | ||
|
||
/* Summary label (a link, use parent colours ) */ | ||
a { | ||
color: inherit; | ||
text-align: start; | ||
display: inline-flex; | ||
flex-direction: column; | ||
gap: theme('spacing.[1.5]'); | ||
|
||
@include media-breakpoint-up(sm) { | ||
font-size: theme('fontSize.18'); | ||
} | ||
|
||
/* Summary big number */ | ||
> span { | ||
display: block; | ||
font-size: calc(var(--w-summary-item-font-size) * 0.6); | ||
font-weight: theme('fontWeight.bold'); | ||
line-height: 0.9em; // label underneath to come in tight against the number | ||
} | ||
} | ||
} | ||
|
||
// Media for Windows High Contrast Mode | ||
@media (forced-colors: active) { | ||
.w-summary { | ||
.icon { | ||
color: LinkText; | ||
opacity: 1; | ||
} | ||
text-decoration: underline; | ||
text-underline-offset: 3px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
wagtail/admin/templates/wagtailadmin/home/account_summary.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% load wagtailadmin_tags wagtailcore_tags i18n %} | ||
{% wagtail_version as current_version %} | ||
<div class="w-flex w-gap-5 w-mb-[3.5rem] lg:w-pl-[3.75rem] lg:w-border-l w-border-border-furniture"> | ||
{% avatar_url user 80 as avatar %} | ||
<div class="w-header__glyph avatar xlarge"> | ||
<img src="{{ avatar }}" alt="" /> | ||
<a class="edit-link" | ||
href="{{ base_url }}{% url 'wagtailadmin_account' %}#avatar-section">{% icon name="edit" %}</a> | ||
</div> | ||
<div> | ||
<div class="w-text-16 w-font-bold w-text-text-label w-mb-1">{{ user|user_display_name }}</div> | ||
<ul class="w-list-none w-p-0 w-m-0 w-flex w-flex-col w-gap-1"> | ||
<li> | ||
<a class="w-underline w-underline-offset-[3px]" | ||
href="{{ base_url }}{% url 'wagtailadmin_account' %}">{% trans 'Account' %}</a> | ||
</li> | ||
{% wagtail_feature_release_editor_guide_link as editor_guide_link %} | ||
<li> | ||
<a class="w-underline w-underline-offset-[3px] w-flex w-items-center w-gap-1" | ||
href="{{ editor_guide_link }}" | ||
target="_blank" | ||
rel="noreferrer"> | ||
{% blocktrans trimmed %} | ||
Wagtail {{ current_version }} editor's guide | ||
{% endblocktrans %} | ||
{% icon name="link-external" classname="w-a11y-result__icon" %} | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> |
Oops, something went wrong.