File size: 2,444 Bytes
e076ee1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | /* Styles for handling custom code snippets */
.snippet-container {
padding: 10px;
overflow: auto;
}
.snippet-description {
padding: 8px 40px 12px 8px;
}
.snippet-container pre {
max-height: 500px;
overflow: auto;
padding: 10px;
margin: 0px;
}
.snippet-container ::-webkit-scrollbar {
width: 12px;
}
.snippet-container ::-webkit-scrollbar-thumb {
width: 12px;
border-radius: 6px;
}
.snippet {
position: relative;
}
.snippet-buttons button {
border-style: none;
padding: 10px 24px;
cursor: pointer;
float: left;
}
.snippet-buttons:after {
content: "";
clear: both;
display: table;
}
.snippet-buttons button:focus {
outline: none;
}
.snippet-buttons button:hover {
opacity: 1.0;
}
.snippet-buttons :not([selected]) {
opacity: 0.65;
}
.snippet-buttons [selected] {
opacity: 1.0;
}
.snippet-container [hidden] {
display: none;
}
.snippet-create-command {
text-align: end;
font-size: smaller;
font-style: normal;
font-family: courier, lucidia;
}
.snippet-dartpad {
width: 100%;
height: 500px;
}
/* Styles for the deep-link anchor button */
.anchor-container {
position: relative;
}
.anchor-button-overlay {
position: absolute;
top: 5px;
right: 5px;
height: 28px;
width: 28px;
transition: .3s ease;
}
.anchor-button {
border-style: none;
background: none;
cursor: pointer;
}
.anchor-button :focus {
outline: 0px;
}
.anchor-button :hover {
transition: .3s ease;
opacity: 0.65;
}
/* Styles for the copy-to-clipboard button */
.copyable-container {
position: relative;
}
.copy-button-overlay {
position: absolute;
top: 10px;
right: 14px;
height: 28px;
width: 28px;
transition: .3s ease;
}
.copy-button {
border-style: none;
background: none;
cursor: pointer;
}
.copy-button :focus {
outline: 0px;
}
.copy-button :hover {
transition: .3s ease;
opacity: 1.0;
}
.copy-image {
opacity: 0.65;
font-size: 28px;
padding-top: 4px;
color: var(--main-hyperlinks-color);
}
/* Light/Dark theme modifications */
.dark-theme .snippet-buttons button {
background-color: #133e59;
color: rgb(149, 149, 149);
}
.light-theme .snippet-buttons button {
background-color: #2372a3;
color: white;
}
.light-theme .snippet-container {
--main-hyperlinks-color: #005cc6;
}
.dark-theme .snippet-container {
background-color: rgb(30, 40, 51);
}
.light-theme .snippet-container {
background-color: rgb(215, 235, 252);
} |