From e4ccd263e07002f4d18509e94023284c66b7153f Mon Sep 17 00:00:00 2001
From: Brian Smith <112954497+brian-smith-tcril@users.noreply.github.com>
Date: Fri, 31 Jan 2025 11:18:21 -0500
Subject: [PATCH 1/3] chore: update token use in analyze dependents workflow to
unblock automerges (#3402)
---
.github/workflows/analyze-dependents.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/analyze-dependents.yml b/.github/workflows/analyze-dependents.yml
index e1f5d88bc5..793802254f 100644
--- a/.github/workflows/analyze-dependents.yml
+++ b/.github/workflows/analyze-dependents.yml
@@ -263,6 +263,7 @@ jobs:
id: cpr
uses: peter-evans/create-pull-request@v7
with:
+ token: ${{ secrets.requirements_bot_github_token }}
commit-message: "docs: update dependent-usage.json"
title: "docs: update dependent-usage.json"
body: "Contains automated changes to the dependent-usage.json file, which provides the data for Paragon Usage Insights."
@@ -273,10 +274,10 @@ jobs:
uses: hmarr/auto-approve-action@v4
with:
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
- github-token: ${{ secrets.requirements_bot_github_token }}
+ github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Auto-merge pull request for dependent project usages
uses: pascalgn/automerge-action@v0.16.4
env:
- GITHUB_TOKEN: ${{ secrets.requirements_bot_github_token }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_METHOD: squash
MERGE_RETRY_SLEEP: 240000
From ec8553d5466dbb0632f80c2848c079472cf77bec Mon Sep 17 00:00:00 2001
From: edX requirements bot
<49161187+edx-requirements-bot@users.noreply.github.com>
Date: Sun, 2 Feb 2025 19:18:29 -0500
Subject: [PATCH 2/3] chore: update browserslist DB (#3408)
Co-authored-by: adamstankiewicz <2828721+adamstankiewicz@users.noreply.github.com>
---
package-lock.json | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index b4161d8188..0c5afc03c0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -14815,7 +14815,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001687",
+ "version": "1.0.30001696",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001696.tgz",
+ "integrity": "sha512-pDCPkvzfa39ehJtJ+OwGT/2yvT2SbjfHhiIW2LWOAcMQ7BzwxT/XuyUp4OTOd0XFWA6BKw0JalnBHgSi5DGJBQ==",
"funding": [
{
"type": "opencollective",
@@ -14829,8 +14831,7 @@
"type": "github",
"url": "https://github.com/sponsors/ai"
}
- ],
- "license": "CC-BY-4.0"
+ ]
},
"node_modules/capital-case": {
"version": "1.0.4",
From dc3f46cd1c7d0d5e9c840a73bed096ca076525fe Mon Sep 17 00:00:00 2001
From: Peter Kulko Variables are available with following pattern: For example:
To access or change the breakpoints in the scss use
+ Media breakpoints in CSS are defined using the following variables.
+
+ The structure of a breakpoint variable is:
+
+ Explanation of the variable components:
+ Example variables usage
- {'$box-shadow-{direction}-{level}'}
+ {'var(--pgn-elevation-box-shadow-{direction}-{level})'}
- $box-shadow-right-2
+ var(--pgn-elevation-box-shadow-right-2)
- $box-shadow-up-3
+ var(--pgn-elevation-box-shadow-up-3)
diff --git a/www/src/pages/foundations/responsive.tsx b/www/src/pages/foundations/responsive.tsx
index 4131cf5724..8e9e9ecd57 100644
--- a/www/src/pages/foundations/responsive.tsx
+++ b/www/src/pages/foundations/responsive.tsx
@@ -18,11 +18,34 @@ const BREAKPOINT_DESCRIPTIONS = {
extraExtraLarge: { name: 'Extra extra large', identifier: 'xxl' },
};
+const customBreakpoints = [
+ { name: '--pgn-size-breakpoint-min-width-xs', property: 'min-width', value: '0px' },
+ { name: '--pgn-size-breakpoint-max-width-xs', property: 'max-width', value: '576px' },
+ { name: '--pgn-size-breakpoint-min-width-sm', property: 'min-width', value: '576px' },
+ { name: '--pgn-size-breakpoint-max-width-sm', property: 'max-width', value: '768px' },
+ { name: '--pgn-size-breakpoint-min-width-md', property: 'min-width', value: '768px' },
+ { name: '--pgn-size-breakpoint-max-width-md', property: 'max-width', value: '992px' },
+ { name: '--pgn-size-breakpoint-min-width-lg', property: 'min-width', value: '992px' },
+ { name: '--pgn-size-breakpoint-max-width-lg', property: 'max-width', value: '1200px' },
+ { name: '--pgn-size-breakpoint-min-width-xl', property: 'min-width', value: '1200px' },
+ { name: '--pgn-size-breakpoint-max-width-xl', property: 'max-width', value: '1400px' },
+ { name: '--pgn-size-breakpoint-min-width-xxl', property: 'min-width', value: '1400px' },
+];
+
const getBreakpointDescription = (breakpoint) => BREAKPOINT_DESCRIPTIONS[breakpoint] || {};
function IdentifierCell({ row }) {
return {row.values.identifier}
;
}
+
+function PropertyCell({ row }) {
+ return {row.values.property}
;
+}
+
+function ValueCell({ row }) {
+ return {row.values.value}
;
+}
+
function MinWidthCell({ row }) {
if (row.values.identifier === 'xs') {
return (
@@ -45,6 +68,7 @@ function MinWidthCell({ row }) {
}
return {row.values.minWidth ? `${row.values.minWidth}px` : '-'}
;
}
+
function MaxWidthCell({ row }) {
return {row.values.maxWidth ? `${row.values.maxWidth}px` : '-'}
;
}
@@ -83,7 +107,8 @@ function Responsive({ pageContext }) {
>
Basic usage
+ SCSS variables
+ Basic usage
$grid-breakpoints
variable.
CSS Custom Media Breakpoints
+ Available Breakpoints
+ Basic Usage
+
+
+ {'{width_type}'}
specifies the width type, either min for a minimum width
+ (inclusive) or max for a maximum width (inclusive).
+ {'{class_infix}'}
refers to the breakpoint name, such as sm
, md
,
+ or lg
.
+
+ Example for applying styles when the screen width is narrower than the md
breakpoint:
+
+ For applying styles when the screen width is wider than the md
breakpoint:
+