snippets.css 2.11 KB
Newer Older
1 2
/* Styles for handling custom code snippets */
.snippet-container {
3
  background-color: #2372a3;
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
  padding: 10px;
  overflow: auto;
}

.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-description {
  padding: 10px;
  color: white;
}

33 34 35 36 37 38 39 40 41 42 43 44 45
.snippet-description a:link {
  color: #c7fcf4;
}
.snippet-description a:visited {
  color: #c7dbfc;
}
.snippet-description a:hover {
  color: white;
}
.snippet-description a:active {
  color: #80b0fc;
}

46
.snippet-buttons button {
47
  background-color: #2372a3;
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
  border-style: none;
  color: white;
  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;
}

86 87 88 89 90
.snippet-dartpad {
  width: 100%;
  height: 500px;
}

91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
.anchor-container {
  position: relative;
}

.anchor-button-overlay {
  position: absolute;
  top: 0px;
  right: 5px;
  height: 28px;
  width: 28px;
  transition: .3s ease;
  background-color: #2372a3;
}

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

111 112 113 114 115 116 117 118 119 120 121 122
/* 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;
123
  background-color: #2372a3;
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
}

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

.copy-button :focus {
  outline: 0px;
}

.copy-button :hover {
  transition: .3s ease;
  color: #222;
}

.copy-image {
  opacity: 0.65;
143
  color: #2372a3;
144 145 146
  font-size: 28px;
  padding-top: 4px;
}