1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 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 142 143 144 145 146 147
|
/* stylelint-disable max-nesting-depth */
.collapsible-section {
padding: var(--space-small) var(--space-xlarge);
.section-title-container {
margin: 0;
&.has-subtitle {
display: flex;
flex-direction: column;
@media (min-width: $break-point-large) {
flex-direction: row;
align-items: baseline;
justify-content: space-between;
}
}
}
.section-title {
font-size: $section-title-font-size;
font-weight: var(--font-weight-bold);
color: var(--newtab-text-primary-color);
&.grey-title {
color: var(--newtab-text-primary-color);
display: inline-block;
fill: var(--newtab-text-primary-color);
vertical-align: middle;
}
.section-title-contents {
// Center "What's Pocket?" for "mobile" viewport
@media (max-width: $break-point-medium - 1) {
display: block;
.learn-more-link-wrapper {
display: block;
text-align: center;
.learn-more-link {
margin-inline-start: 0;
}
}
}
vertical-align: top;
}
}
.section-sub-title {
font-size: inherit;
color: var(--newtab-text-secondary-color);
opacity: 0.3;
}
.section-top-bar {
min-height: 19px;
margin-block-end: var(--space-medium);
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
@media (max-width: $break-point-medium - 1) {
flex-direction: column;
gap: var(--space-small);
align-items: flex-start;
}
}
&.active {
background: var(--newtab-element-hover-color);
border-radius: var(--border-radius-small);
}
.learn-more-link {
font-size: var(--font-size-small);
margin-inline-start: var(--space-medium);
a {
color: var(--newtab-primary-action-background);
}
}
.section-body-fallback {
height: $card-height;
}
.section-body {
// This is so the top sites favicon and card dropshadows don't get clipped during animation:
margin: 0 calc(var(--space-xsmall) * -1);
padding: 0 var(--space-small);
&.animating {
overflow: hidden;
pointer-events: none;
}
}
&[data-section-id='topsites'] {
.section-top-bar {
display: none;
}
}
// Hide first story card for the medium breakpoint to prevent orphaned third story
&[data-section-id='topstories'] .card-outer:first-child {
@media (min-width: $break-point-medium) and (max-width: $break-point-large - 1) {
display: none;
}
}
.button-topic-selection {
display: none;
@media(min-width: $break-point-layout-variant) {
display: block;
}
// Note: the 'primary' theme uses a solid color and does not need this override
moz-button[type='default'] {
// Bug 1908010 - This overwrites the design system color because of a
// known transparency issue with color-mix syntax when a wallpaper is set
.lightWallpaper &,
.darkWallpaper & {
&::part(button) {
background-color: var(--newtab-weather-background-color);
&:hover {
background-color: var(--newtab-button-static-hover-background);
}
&:hover:active {
background-color: var(--newtab-button-static-active-background);
}
@media (prefers-contrast) {
background-color: var(--background-color-box);
}
}
}
}
}
}
|