snippets.css 2.39 KB
Newer Older
1 2 3 4 5 6
/* Styles for handling custom code snippets */
.snippet-container {
  padding: 10px;
  overflow: auto;
}

7 8 9 10
.snippet-description {
  padding: 8px 40px 12px 8px;
}

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
.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;
}

44 45 46
.snippet-buttons button:focus {
  outline: none;
}
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70

.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;
}

71 72 73 74 75
.snippet-dartpad {
  width: 100%;
  height: 500px;
}

76 77
/* Styles for the deep-link anchor button */

78 79 80 81 82 83
.anchor-container {
  position: relative;
}

.anchor-button-overlay {
  position: absolute;
84
  top: 5px;
85 86 87 88 89 90 91 92 93 94 95 96
  right: 5px;
  height: 28px;
  width: 28px;
  transition: .3s ease;
}

.anchor-button {
  border-style: none;
  background: none;
  cursor: pointer;
}

97 98 99 100 101 102 103 104 105
.anchor-button :focus {
  outline: 0px;
}

.anchor-button :hover {
  transition: .3s ease;
  opacity: 0.65;
}

106
/* Styles for the copy-to-clipboard button */
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
.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;
133
  opacity: 1.0;
134 135 136 137 138 139
}

.copy-image {
  opacity: 0.65;
  font-size: 28px;
  padding-top: 4px;
140
  color: var(--main-hyperlinks-color);
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

/* 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);
}