mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Make the new doxygen clipboard feature work and look good
CSS rules copied from doxygen default stylesheet generated with: doxygen -w html new_header.html new_footer.html new_stylesheet.css
This commit is contained in:
parent
7f27cad9ae
commit
0d6a5f7fbe
@ -147,12 +147,53 @@ div.fragment {
|
||||
|
||||
font-family: Consolas, "Liberation Mono", Courier, monospace;
|
||||
font-size: 10pt;
|
||||
position: relative;
|
||||
padding: 0.5em 1em;
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #bbb;
|
||||
border-radius(5px);
|
||||
}
|
||||
|
||||
.clipboard {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
right: 5px;
|
||||
top: 5px;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
display: inline;
|
||||
overflow: auto;
|
||||
fill: black;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.clipboard.success {
|
||||
border: 1px solid black;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.fragment:hover .clipboard, .clipboard.success {
|
||||
opacity: .28;
|
||||
}
|
||||
|
||||
.clipboard:hover, .clipboard.success {
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.clipboard:active:not([class~=success]) svg {
|
||||
transform: scale(.91);
|
||||
}
|
||||
|
||||
.clipboard.success svg {
|
||||
fill: #2EC82E;
|
||||
}
|
||||
|
||||
.clipboard.success {
|
||||
border-color: #2EC82E;
|
||||
}
|
||||
|
||||
div.line {
|
||||
min-height: 13px;
|
||||
text-wrap: unrestricted;
|
||||
|
@ -6,6 +6,7 @@
|
||||
<link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" />
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<script type="text/javascript" src="clipboard.js"></script>
|
||||
<script type="text/javascript" src="cookie.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="search/search.css" />
|
||||
<link rel="stylesheet" type="text/css" href="searchOverrides.css" />
|
||||
|
Loading…
Reference in New Issue
Block a user