11/* based on https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/v1.6.0/style.css */
22
3+ .loader-container {
4+ display : flex; /* Use flex to align items horizontally */
5+ align-items : center; /* Center items vertically within the container */
6+ white-space : nowrap; /* Prevent line breaks within the container */
7+ }
8+
9+ .loader {
10+ border : 8px solid # f3f3f3 ; /* Light grey */
11+ border-top : 8px solid # 3498db ; /* Blue */
12+ border-radius : 50% ;
13+ width : 30px ;
14+ height : 30px ;
15+ animation : spin 2s linear infinite;
16+ }
17+
18+ @keyframes spin {
19+ 0% { transform : rotate (0deg ); }
20+ 100% { transform : rotate (360deg ); }
21+ }
22+
23+ /* Style the progress bar */
24+ progress {
25+ appearance : none; /* Remove default styling */
26+ height : 20px ; /* Set the height of the progress bar */
27+ border-radius : 5px ; /* Round the corners of the progress bar */
28+ background-color : # f3f3f3 ; /* Light grey background */
29+ width : 100% ;
30+ }
31+
32+ /* Style the progress bar container */
33+ .progress-container {
34+ margin-left : 20px ;
35+ margin-right : 20px ;
36+ flex-grow : 1 ; /* Allow the progress container to take up remaining space */
37+ }
38+
39+ /* Set the color of the progress bar fill */
40+ progress ::-webkit-progress-value {
41+ background-color : # 3498db ; /* Blue color for the fill */
42+ }
43+
44+ progress ::-moz-progress-bar {
45+ background-color : # 3498db ; /* Blue color for the fill in Firefox */
46+ }
47+
48+ /* Style the text on the progress bar */
49+ progress ::after {
50+ content : attr (value '%' ); /* Display the progress value followed by '%' */
51+ position : absolute;
52+ top : 50% ;
53+ left : 50% ;
54+ transform : translate (-50% , -50% );
55+ color : white; /* Set text color */
56+ font-size : 14px ; /* Set font size */
57+ }
58+
59+ /* Style other texts */
60+ .loader-container > span {
61+ margin-left : 5px ; /* Add spacing between the progress bar and the text */
62+ }
63+
64+ .progress-bar > .generating {
65+ display : none !important ;
66+ }
67+
68+ .progress-bar {
69+ height : 30px !important ;
70+ }
71+
72+ .type_row {
73+ height : 80px !important ;
74+ }
75+
76+ .type_row_half {
77+ height : 32px !important ;
78+ }
79+
80+ .scroll-hide {
81+ resize : none !important ;
82+ }
83+
84+ .refresh_button {
85+ border : none !important ;
86+ background : none !important ;
87+ font-size : none !important ;
88+ box-shadow : none !important ;
89+ }
90+
91+ .advanced_check_row {
92+ width : 250px !important ;
93+ }
94+
95+ .min_check {
96+ min-width : min (1px , 100% ) !important ;
97+ }
98+
99+ .resizable_area {
100+ resize : vertical;
101+ overflow : auto !important ;
102+ }
103+
104+ .aspect_ratios label {
105+ width : 140px !important ;
106+ }
107+
108+ .aspect_ratios label span {
109+ white-space : nowrap !important ;
110+ }
111+
112+ .aspect_ratios label input {
113+ margin-left : -5px !important ;
114+ }
115+
116+ .lora_enable label {
117+ height : 100% ;
118+ }
119+
120+ .lora_enable label input {
121+ margin : auto;
122+ }
123+
124+ .lora_enable label span {
125+ display : none;
126+ }
127+
128+ @-moz-document url-prefix() {
129+ .lora_weight input [type = number ] {
130+ width : 80px ;
131+ }
132+ }
133+
3134# context-menu {
4135 z-index : 9999 ;
5136 position : absolute;
218349# stylePreviewOverlay .lower-half {
219350 transform : translate (-140px , -140px );
220351}
352+
353+ /* scrollable box for style selections */
354+ .contain .tabs {
355+ height : 100% ;
356+ }
357+
358+ .contain .tabs .tabitem .style_selections_tab {
359+ height : 100% ;
360+ }
361+
362+ .contain .tabs .tabitem .style_selections_tab > div : first-child {
363+ height : 100% ;
364+ }
365+
366+ .contain .tabs .tabitem .style_selections_tab .style_selections {
367+ min-height : 200px ;
368+ height : 100% ;
369+ }
370+
371+ .contain .tabs .tabitem .style_selections_tab .style_selections .wrap [data-testid = "checkbox-group" ] {
372+ position : absolute; /* remove this to disable scrolling within the checkbox-group */
373+ overflow : auto;
374+ padding-right : 2px ;
375+ max-height : 100% ;
376+ }
377+
378+ .contain .tabs .tabitem .style_selections_tab .style_selections .wrap [data-testid = "checkbox-group" ] label {
379+ /* max-width: calc(35% - 15px) !important; */ /* add this to enable 3 columns layout */
380+ flex : calc (50% - 5px ) !important ;
381+ }
382+
383+ .contain .tabs .tabitem .style_selections_tab .style_selections .wrap [data-testid = "checkbox-group" ] label span {
384+ /* white-space:nowrap; */ /* add this to disable text wrapping (better choice for 3 columns layout) */
385+ overflow : hidden;
386+ text-overflow : ellipsis;
387+ }
388+
389+ /* styles preview tooltip */
390+ .preview-tooltip {
391+ background-color : # fff8 ;
392+ font-family : monospace;
393+ text-align : center;
394+ border-radius-top : 5px ;
395+ display : none; /* remove this to enable tooltip in preview image */
396+ }
0 commit comments