Skip to content

Instantly share code, notes, and snippets.

@PechenkiUA
Created December 22, 2023 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PechenkiUA/aa801b7671218654cdb8b442c6b76861 to your computer and use it in GitHub Desktop.
Save PechenkiUA/aa801b7671218654cdb8b442c6b76861 to your computer and use it in GitHub Desktop.
udpu
.rs_file>a {
display: inline-block;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
max-width: 96%;
line-height: 1.2
}
.rs_file{
position: relative;
}
.rs_file:hover .copy-link,
.rs_file.hover .copy-link
{
display: block;
/*width: 10px;*/
background: rgba(255,255,255,0.46);
position: absolute;
border-radius: 3px;
right: 0;
top:0px;
cursor:pointer;
color: white;
width: 25px;
height: 25px;
background-size: cover;
transform: scale(.6);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23294572' class='bi bi-copy' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z'/%3E%3C/svg%3E");
}
.rs_file .copy-link.add{
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23294572' class='bi bi-clipboard-check-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 0A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0zm3 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5z'/%3E%3Cpath d='M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1A2.5 2.5 0 0 1 9.5 5h-3A2.5 2.5 0 0 1 4 2.5zm6.854 7.354-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 0 1 .708-.708L7.5 10.793l2.646-2.647a.5.5 0 0 1 .708.708Z'/%3E%3C/svg%3E");
}
.rs_file:hover,
.rs_file.hover
{
background: rgba(106,168,253,0.1);
outline: 1px dotted rgba(204,204,204,0.5);
}
.rs_list{
padding-left: 15px
}
.rs_file{
/* overflow: hidden; */
}
.rs_file>a{
white-space: nowrap;
/* border: 1px solid;
display: block;*/
}
.rs_dir.open{
position: relative;
}
.rs_dir.open:after{
content: '';
position: absolute;
top: 18px;
bottom: 15px;
width: 1px;
left: 5px;
display: block;
background: #ccc;
}
.rs_dir.open .rs_file{
position: relative;
}
.rs_dir.open .rs_file:before{
content: '';
position: absolute;
top: 48%;
width: 5px;
height: 1px;
left: -10px;
display: block;
background: #ccc;
z-index: 9;
}
.rs_dir{
position: relative;
}
.rs_dier:before{
content: '';
position: absolute;
top: 48%;
width: 5px;
height: 1px;
left: -10px;
display: block;
background: #ccc;
z-index: 9;
}
.rs_dir.open .rs_dir{
/*position: relative; */
}
#popover-input{
width:100%;
}
.popover-title2{
margin: 5px auto 0;
display: block;
}
.popover-input-wrap {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-evenly;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment