Spaces:
Configuration error
Configuration error
File size: 3,596 Bytes
d051564 |
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 |
.rgthree-lora-chooser-dialog {
max-width: 100%;
.rgthree-dialog-container-title {
display: flex;
flex-direction: column;
}
.rgthree-dialog-container-title h2 {
display: flex;
width: 100%;
}
.rgthree-lora-chooser-search {
margin-left: auto;
border-radius: 50px;
width: 50%;
max-width: 170px;
padding: 2px 8px;
}
.rgthree-lora-chooser-header {
display: flex;
flex-direction: row;
}
.rgthree-lora-filters-container {
svg {width: 16px; height: 16px;}
}
.rgthree-dialog-container-content {
width: 80vw;
height: 80vh;
}
.rgthree-button-reset {
width: 32px;
height: 32px;
> svg {width: 100%; height: 100%;}
}
ul.rgthree-lora-chooser-list {
list-style: none;
margin: 0;
padding: 0;
position: relative;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: start;
justify-content: space-around;
> li {
position: relative;
flex: 0 0 auto;
width: 170px;
max-width: 100%;
margin: 8px 8px 16px;
label {
position: absolute;
display: block;
inset: 0;
z-index: 3;
cursor: pointer;
}
input[type="checkbox"] {
position: absolute;
right: 8px;
top: 8px;
margin: 0;
z-index: 2;
appearance: none;
background-color: #fff;
width: 48px;
height: 48px;
border-radius: 4px;
border: 1px solid rgba(120,120,120,1);
opacity: 0;
transition: opacity 0.15s ease-in-out;
&:checked {
opacity: 1;
background: #0060df;
&::before {
content: "";
display: block;
width: 100%;
height: 100%;
box-shadow: inset 100px 100px #fff;
clip-path: polygon(40.13% 68.39%, 23.05% 51.31%, 17.83% 48.26%, 12.61% 49.57%, 9.57% 53.04%, 8% 60%, 34.13% 85.87%, 39.82% 89.57%, 45.88% 86.73%, 90.66% 32.39%, 88.92% 26.1%, 83.03% 22.17%, 76.94% 22.62%)
}
}
}
figure {
position: relative;
display: block;
margin: 0 0 8px;
padding: 0;
border: 1px solid rgba(120, 120, 120, .8);
background: rgba(120, 120, 120, .5);
width: 100%;
padding-top: 120%;
transition: box-shadow 0.15s ease-in-out;
opacity: 0.75;
&::after {
content: '';
display: block;
position: absolute;
inset: 0;
}
&:empty {
&::before {
content: 'No image.';
color: rgba(200, 200, 200, .8);
position: absolute;
display: block;
inset: 0;
font-size: 1.2em;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
}
> img, > video {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
object-fit: cover;
}
}
div {
word-wrap: break-word;
font-size: 0.8rem;
opacity: 0.75;
}
&:hover figure::after{
box-shadow: 0px 2px 6px rgba(0,0,0,0.75);
}
:checked ~ figure::after {
box-shadow: 0 0 5px #fff, 0px 0px 15px rgba(49, 131, 255, 0.88), inset 0 0 3px #fff, inset 0px 0px 5px rgba(49, 131, 255, 0.88)
}
&:hover *,
&:hover input[type="checkbox"],
:checked ~ * {
opacity: 1
}
}
}
} |