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

use html tag is wrong #215

Open
zhiqiang21 opened this issue Jan 16, 2017 · 1 comment
Open

use html tag is wrong #215

zhiqiang21 opened this issue Jan 16, 2017 · 1 comment

Comments

@zhiqiang21
Copy link

when i use rainbow occure something not good

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>示例</title>
    <link rel="stylesheet" type="text/css" href="./lib/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="./lib/monokai.css">
</head>

<body>
    <h3>代码示例</h3>
    <pre>
        <code data-language="html">
            <div class="alert-content">
                    <div class="alert-txt">我是内容区域我是内容区域我是内容区是内容区区域我是内容区域我是内容区域</div></div>
                <div class="btn-common alert-form">
                    <div class="btn-cancle">取消</div>
                    <div class="btn-submit">确定</div>
                </div>

        </code>
    </pre>
    <script src="./lib/rainbow.min.js"></script>
</body>

</html>

html end tag not right。 i don't know what to do .

@artemhp
Copy link

artemhp commented Feb 27, 2017

Hello, your issues occur because of bootstrap.css.
It has .close selector in the global scope.

As for me, quick solution - overwrite all values properties for .class

pre .close {
	float: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	text-shadow: none;
	filter: inherit;
	opacity: inherit;
}
        
pre .close:focus,
pre .close:hover {
	text-decoration: inherit;
	cursor: inherit;
	filter: inherit;
	opacity: inherit;
}

But stay some issue with close:focus, close:hover.
I think that you need just to overwrite manual depending on your theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants