Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint-fix #4

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"rules": {
"order/order": ["custom-properties", "declarations"],
"order/properties-alphabetical-order": true,
"custom-property-pattern": "^_?(amsterdam|denhaag|example|todo|utrecht)-?[a-z0-9-]+$",
"selector-class-pattern": "^(amsterdam|denhaag|example|todo|utrecht)-[a-z0-9_-]+$",
"keyframes-name-pattern": "^(amsterdam|denhaag|example|todo|utrecht)-[a-z0-9-]+$",
"custom-property-pattern": "^_?(amsterdam|denhaag|example|todo|utrecht|conduction|leiden)-?[a-z0-9-]+$",
"selector-class-pattern": "^(amsterdam|denhaag|example|todo|utrecht|conduction|leiden)-[a-z0-9_-]+$",
"keyframes-name-pattern": "^(amsterdam|denhaag|example|todo|utrecht|conduction|leiden)-[a-z0-9-]+$",
"at-rule-no-unknown": null,
"block-no-empty": [true],
"color-no-invalid-hex": [true],
Expand Down
6 changes: 1 addition & 5 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ export default function Document() {
<Html>
<Head>
<link rel="icon" href="/favicon.ico" />
<link
rel="icon"
type="svg"
href={process.env.NEXT_PUBLIC_FAV_ICON}
/>
<link rel="icon" type="svg" href={process.env.NEXT_PUBLIC_FAV_ICON} />
</Head>
<body>
<Main />
Expand Down
2 changes: 1 addition & 1 deletion pages/email-reservation-success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import {
Document,
Email,
Heading1,
Logo,
Page,
PageContent,
PageContentMain,
Paragraph,
URLValue,
Logo,
} from "../src/components";

export const getServerSideProps = async ({ locale }: { locale: string }) => ({
Expand Down
2 changes: 1 addition & 1 deletion pages/voorgenomen-huwelijk/partner/aanvrager-email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import {
Document,
Email,
Heading1,
Logo,
Page,
PageContent,
PageContentMain,
Paragraph,
URLValue,
Logo,
} from "../../../src/components";
import { exampleState } from "../../../src/data/huwelijksplanner-state";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import { UtrechtDigidButton, UtrechtIconArrow } from "@utrecht/web-component-library-react";
import Head from "next/head";
import Link from "next/link";
import { useTranslation } from "next-i18next";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import {
Expand All @@ -33,12 +32,12 @@ import {
Document,
Email,
Heading1,
Logo,
Page,
PageContent,
PageContentMain,
Paragraph,
URLValue,
Logo,
} from "../../../src/components";
import { exampleState } from "../../../src/data/huwelijksplanner-state";

Expand Down
2 changes: 1 addition & 1 deletion src/components/huwelijksplanner/PageFooterTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const PageFooterTemplate = () => {

{data &&
data?.content.map((item: any, idx: number) => (
<section>
<section key={idx}>
<h3 className="utrecht-heading-3 utrecht-heading-3--distanced">{item.title}</h3>
<p className="utrecht-paragraph utrecht-paragraph--distanced">
{item.title === "Telefoon" && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import clsx from "clsx";
import * as React from "react";

interface LogoProps {
variant?: "header" | "footer" | "navbar";
Expand Down
14 changes: 7 additions & 7 deletions styles/_logo.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
.utrecht-logo__container {
background-size: contain;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}

.utrecht-logo__container-header {
inline-size: var(--conduction-logo-header-inline-size);
block-size: var(--conduction-logo-header-block-size);
background-image: var(--conduction-logo-header-background-image);
block-size: var(--conduction-logo-header-block-size);
inline-size: var(--conduction-logo-header-inline-size);
}

.utrecht-logo__container-footer {
inline-size: var(--conduction-logo-footer-inline-size);
block-size: var(--conduction-logo-footer-block-size);
background-image: var(--conduction-logo-footer-background-image);
block-size: var(--conduction-logo-footer-block-size);
inline-size: var(--conduction-logo-footer-inline-size);
}

.utrecht-logo__container-navbar {
inline-size: var(--conduction-logo-navbar-inline-size);
block-size: var(--conduction-logo-navbar-block-size);
background-image: var(--conduction-logo-navbar-background-image);
block-size: var(--conduction-logo-navbar-block-size);
inline-size: var(--conduction-logo-navbar-inline-size);
}

.utrecht-logo__container-clickable:hover {
Expand Down
3 changes: 0 additions & 3 deletions styles/leiden-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@
--utrecht-skip-link-padding-inline-end: var(--utrecht-button-padding-inline-end);
--utrecht-skip-link-padding-inline-start: var(--utrecht-button-padding-inline-start);
--utrecht-spotlight-section-margin-block-start: var(--utrecht-space-block-md);
/* --utrecht-typography-sans-serif-font-family: "Lucida Grande", "Arial", sans-serif; */
--utrecht-unordered-list-margin-block-start: var(--utrecht-space-block-md);

--utrecht-page-content-padding-block-start: var(--leiden-size-lg);
--utrecht-page-content-padding-block-end: var(--leiden-size-lg);
--utrecht-paragraph-margin-block-start: var(--leiden-size-md) !important;

--utrecht-icon-size: 48px;
}
Loading