From 02d8f8160c4934ed3a8f084cfe628a089151f475 Mon Sep 17 00:00:00 2001 From: brage-andreas Date: Fri, 13 Sep 2024 14:35:12 +0200 Subject: [PATCH] refactor: lint project --- src/core/less/core.less | 2 -- .../components/AprilFoolsCaptcha/Stage2/stage2.less | 8 ++++---- .../components/AprilFoolsCaptcha/aprilfools.less | 4 ++-- src/profile/components/Profile/Header.tsx | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/core/less/core.less b/src/core/less/core.less index def1a2fc..5ea9a07f 100644 --- a/src/core/less/core.less +++ b/src/core/less/core.less @@ -30,9 +30,7 @@ body { >iframe[src^='https://online.ntnu.no/openid/authorize'] { display: block !important; } -} -body { main { display: flex; flex-direction: column; diff --git a/src/frontpage/components/AprilFoolsCaptcha/Stage2/stage2.less b/src/frontpage/components/AprilFoolsCaptcha/Stage2/stage2.less index 51f293ee..844fdd04 100644 --- a/src/frontpage/components/AprilFoolsCaptcha/Stage2/stage2.less +++ b/src/frontpage/components/AprilFoolsCaptcha/Stage2/stage2.less @@ -12,7 +12,7 @@ width: 120px; position: relative; cursor: pointer; - background-color: white; + background-color: #fff; border-radius: 10px; padding: 10px; } @@ -25,7 +25,7 @@ position: absolute; top: 0; right: 0; - background-color: white; + background-color: #fff; } .imageWrong { @@ -41,7 +41,7 @@ transform: translate(-1px, -2px) rotate(-1deg); } 20% { - transform: translate(-3px, 0px) rotate(1deg); + transform: translate(-3px, 0) rotate(1deg); } 30% { transform: translate(3px, 2px) rotate(0deg); @@ -97,7 +97,7 @@ width: 120px; height: 60px; background-color: #498fe2; - color: white; + color: #fff; border: none; border-radius: 10px; cursor: pointer; diff --git a/src/frontpage/components/AprilFoolsCaptcha/aprilfools.less b/src/frontpage/components/AprilFoolsCaptcha/aprilfools.less index d1fd1eec..cf5e386e 100644 --- a/src/frontpage/components/AprilFoolsCaptcha/aprilfools.less +++ b/src/frontpage/components/AprilFoolsCaptcha/aprilfools.less @@ -13,7 +13,7 @@ top: 50%; left: 50%; transform: translate(-50%, -50%); - background-color: white; + background-color: #fff; padding: 20px; border-radius: 10px; min-width: 600px; @@ -56,7 +56,7 @@ .aprilfoolsCaptchaInput { width: 60px; height: 60px; - background-color: white; + background-color: #fff; border-radius: 10px; border: 4px solid #707070; margin-right: 10px; diff --git a/src/profile/components/Profile/Header.tsx b/src/profile/components/Profile/Header.tsx index db24da71..a9eedafa 100644 --- a/src/profile/components/Profile/Header.tsx +++ b/src/profile/components/Profile/Header.tsx @@ -1,4 +1,4 @@ -import { useContext } from 'react'; +import React, { useContext } from 'react'; import { ProfilePageContext } from 'profile/providers/ProfilePage';