It is currently Fri Dec 13, 2024 8:01 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Invalid global style of styled component
PostPosted: Fri Mar 03, 2023 7:08 am 
Newbie
Newbie

Joined: Thu Jan 19, 2023 4:41 am
Posts: 3
Here's the situation. I was making a blog using next.js. also, I used styled-reset.

However, I missed the most important part. Convert markdown to html and render. The styles of the converted tags are all reset.

I want to keep the style of the markdown file.

Is there any way?

In other words, is there a way not to be affected by the global style specified by one component?

// global-style.ts

export const GlobalStyle = createGlobalStyle`
${reset}
* {
box-sizing: border-box;
}
a {
cursor: pointer;
text-decoration: none;
color: black;
}
`
It is too inefficient to specify echatspin the tags needed for markdown one by one.


Last edited by Bobby12 on Thu Mar 16, 2023 8:00 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Invalid global style of styled component
PostPosted: Sat Mar 04, 2023 5:37 am 
Newbie
Newbie

Joined: Tue Oct 04, 2022 5:33 am
Posts: 28
Please note that this is a forum for our hosting services and in general we do not offer web developing and debugging services. You will likely find the appropriate information and assistance in web development forums instead.

Best Regards
_________________
Nigel
ModeratorsTeam
Freehostia.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011