Skip to content

Commit

Permalink
"Copied!" now theme dependant
Browse files Browse the repository at this point in the history
  • Loading branch information
petersutter committed Nov 15, 2024
1 parent 7573703 commit 5e94d73
Showing 1 changed file with 31 additions and 19 deletions.
50 changes: 31 additions & 19 deletions frontend/src/components/GCodeBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,35 +230,47 @@ export default {
position: absolute;
top: 14px;
left: 14px;
background-color: rgba(#000, .87);
border-radius: 2px;
transform: translate3d(0, -48px, 0);
transition: $swift-ease-in-out;
color: #fff;
font-family: Roboto, sans-serif;
font-size: 14px;
line-height: 1em;
&.active {
transition : $swift-ease-out;
transform : translate3d(0,0,0);
}
}
&.active {
transition: $swift-ease-out;
transform: translate3d(0, 0, 0);
}
}
.v-theme--light .code-block {
background-color : rgba(0,0,0,.02);
}
.v-theme--light {
.code-block {
background-color: rgba(0, 0, 0, .02);
}
.copied {
background-color: rgba(0, 0, 0, .87);
color: #fff;
}
}
.v-theme--dark .code-block {
background-color : rgba(0,0,0,.2);
.v-theme--dark {
.code-block {
background-color: rgba(0, 0, 0, .2);
&:after {
color : rgba(#fff,.26) !important;
}
&:after {
color: rgba(#fff, .26) !important;
}
code.hljs {
color : map.get(vuetify.$grey, 'lighten-4') !important;
}
}
code.hljs {
color: map.get(vuetify.$grey, 'lighten-4') !important;
}
}
.copied {
background-color: rgba(255, 255, 255, .87);
color: #000;
}
}
</style>

0 comments on commit 5e94d73

Please sign in to comment.