Compare commits
	
		
			No commits in common. "c0667dab51b344753cf69bab17d6e32dffcaddb6" and "90b5e13544e25dd7d59373dbcb857f6416c8e24d" have entirely different histories.
		
	
	
		
			c0667dab51
			...
			90b5e13544
		
	
		
					 10 changed files with 43 additions and 175 deletions
				
			
		|  | @ -3,7 +3,6 @@ | ||||||
|  * Zlib License |  * Zlib License | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| @macos-like: false; // for BD's window buttons |  | ||||||
| @no-nitro:  true; | @no-nitro:  true; | ||||||
| @no-banner: false; | @no-banner: false; | ||||||
| 
 | 
 | ||||||
|  | @ -13,7 +12,6 @@ | ||||||
| 
 | 
 | ||||||
| @div-width: (@rounder / 2); | @div-width: (@rounder / 2); | ||||||
| @tab-height: 40px; | @tab-height: 40px; | ||||||
| @mem-width: 48px; // members side panel width (48px is recommend) |  | ||||||
| 
 | 
 | ||||||
| // Required | // Required | ||||||
| @import "src/func"; | @import "src/func"; | ||||||
|  |  | ||||||
							
								
								
									
										47
									
								
								src/bd.less
									
										
									
									
									
								
							
							
						
						
									
										47
									
								
								src/bd.less
									
										
									
									
									
								
							|  | @ -3,49 +3,6 @@ | ||||||
| div[class^="bd-"] | div[class^="bd-"] | ||||||
| { &:extend(.round); } | { &:extend(.round); } | ||||||
| 
 | 
 | ||||||
| button.bd-addon-button { |  | ||||||
|   margin: 4px; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| div.floating-window { |  | ||||||
|   &:extend(.round); |  | ||||||
|   box-shadow: none; |  | ||||||
|   padding: 0 !important; |  | ||||||
|   max-width:  100% !important; |  | ||||||
|   max-height: 100% !important; |  | ||||||
|   min-width:  256px !important; |  | ||||||
|   min-height: 32px !important; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| div.floating-window-buttons { |  | ||||||
|   & when (@macos-like = true) |  | ||||||
|   { order: -1; } |  | ||||||
| 
 |  | ||||||
|   .button { |  | ||||||
|     & > svg { |  | ||||||
|       padding: 2px; |  | ||||||
|       border-radius: 50%; |  | ||||||
|     } |  | ||||||
|     &:hover { |  | ||||||
|       background-color: unset; |  | ||||||
|       color: var(--background-tertiary); // icons color |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
|   .maximize-button:hover > svg { |  | ||||||
|     background-color: #3ba55d; |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
|   .close-button { |  | ||||||
|     & when (@macos-like = true) |  | ||||||
|     { order: -1; } |  | ||||||
| 
 |  | ||||||
|     &:hover > svg { |  | ||||||
|       background-color: #ed4245; |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| div.bd-search-wrapper, | div.bd-search-wrapper, | ||||||
| div.bd-changelog-button { | div.bd-changelog-button { | ||||||
|   align-self: center; |   align-self: center; | ||||||
|  | @ -78,7 +35,3 @@ div[class^="standardSidebarView-"] { | ||||||
| div.bd-addon-list:not(.bd-grid-view) { | div.bd-addon-list:not(.bd-grid-view) { | ||||||
|   .horiz-tab(); |   .horiz-tab(); | ||||||
| } | } | ||||||
| 
 |  | ||||||
| div.ChannelDms-channelpopout-headerName { |  | ||||||
|   font-size: 12pt !important; |  | ||||||
| } |  | ||||||
|  |  | ||||||
|  | @ -75,10 +75,6 @@ div[class^="toolsContainer-"] { // in settings | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| div[class^="newMessagesBar-"] { |  | ||||||
|   margin-top: 8px; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| div[class^="contentContainer-"] div[class*="stickyHeader-"] { | div[class^="contentContainer-"] div[class*="stickyHeader-"] { | ||||||
|   padding-left: 0; |   padding-left: 0; | ||||||
|   padding-right: 0; |   padding-right: 0; | ||||||
|  |  | ||||||
|  | @ -29,18 +29,3 @@ | ||||||
|   height:  0    !important; |   height:  0    !important; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .horiz-tab(@cols: 2, @offset: 0) { |  | ||||||
|   @gap: @div-width * 2; |  | ||||||
|   @el-width: calc(unit((100% / @cols), %) - unit((@gap + @offset), px)); |  | ||||||
|   display: flex; |  | ||||||
|   flex-flow: row wrap; |  | ||||||
|   column-gap: @gap; |  | ||||||
|   row-gap: (@gap / 2); |  | ||||||
|   & > * { |  | ||||||
|     width: @el-width; |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
|   div[class^="divider"]:empty { |  | ||||||
|     display: none; |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
|  | @ -18,7 +18,16 @@ div[class^="art-"], | ||||||
| { &:extend(.hide); } | { &:extend(.hide); } | ||||||
| 
 | 
 | ||||||
| // Nicks | // Nicks | ||||||
|  | [class^="username-"] { | ||||||
|  |   li[class^="messageListItem-"] | ||||||
|  |    [class*="cozyMessage-"] &,   // inside message | ||||||
|  |   :not([class^="headerText-"]) | ||||||
|  |    > div[class*="nameTag-"] &, // outside message | ||||||
|  |   { &:extend(.hide); } | ||||||
|  | } | ||||||
|  | 
 | ||||||
| [class^="discrimBase-"], | [class^="discrimBase-"], | ||||||
|  | div[class^="discordTag-"] [class^="username-"], // friends tab | ||||||
| div[class^="nameTag-"], | div[class^="nameTag-"], | ||||||
| [class^="usernameInnerRow-"], // at settings | [class^="usernameInnerRow-"], // at settings | ||||||
| { &:extend(.hide); } | { &:extend(.hide); } | ||||||
|  | @ -58,8 +67,8 @@ div[class^="channelTextArea-"] { | ||||||
|     & > button // gift button, f you |     & > button // gift button, f you | ||||||
|     { &:extend(.hide); } |     { &:extend(.hide); } | ||||||
| 
 | 
 | ||||||
|     & > div.expression-picker-chat-input-button > button { |     & > div.expression-picker-chat-input-button { | ||||||
|       &:not([class^="emojiButton"]) // hide except emoji (and send button, if exists) |       &:not(:nth-child(4)) // except emoji (and send button, if exists) | ||||||
|       { &:extend(.hide); } |       { &:extend(.hide); } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  | @ -2,35 +2,21 @@ | ||||||
| [class^="membersGroup-"] // groups (roles) | [class^="membersGroup-"] // groups (roles) | ||||||
| { &:extend(.hide); } | { &:extend(.hide); } | ||||||
| 
 | 
 | ||||||
| div[class^="content-"] > main ~ div { | [class^="membersWrap-"] { | ||||||
|   &:not(.ChannelDms-channelmembers-wrap) { |   // make it shorter | ||||||
|     // make it shorter |   &, div[class^="members-"] { | ||||||
|     min-width: @mem-width; |     min-width: 48px; | ||||||
|     width:     @mem-width; |     width: 0; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   div[class^="members-"] { |   // remove fixed height | ||||||
|     height: 100%; |   div[class^="content-"] { | ||||||
|  |     height: unset !important; | ||||||
|  |     flex-grow: 0; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   div[class^="member-"] { |   div[class^="member-"] { | ||||||
|     padding: 0; |     padding: 0; | ||||||
|     margin: 0; |     margin-left: 0; | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 |  | ||||||
| span[class^="username-"] { |  | ||||||
|   font-weight: 500; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // friends tab |  | ||||||
| div[class^="peopleList-"] > div { |  | ||||||
|   @margin: 4px; |  | ||||||
| 
 |  | ||||||
|   & > *, & > *:hover { |  | ||||||
|     border: none; |  | ||||||
|     padding: 8px !important; |  | ||||||
|     margin: @margin !important; |  | ||||||
|   } |  | ||||||
|   .horiz-tab(2, @margin * 2); |  | ||||||
| } |  | ||||||
|  |  | ||||||
|  | @ -48,10 +48,6 @@ div[class^="accountProfileCard-"] div[class^="userInfo-"] { | ||||||
|       align-items: center; |       align-items: center; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     svg[class^="warningCircleIcon-"] { |  | ||||||
|       position: fixed; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     div[class^="profileBadges-"] { |     div[class^="profileBadges-"] { | ||||||
|       position: static; |       position: static; | ||||||
|       justify-content: center; |       justify-content: center; | ||||||
|  | @ -72,9 +68,6 @@ div[class^="pencilContainer-"] { | ||||||
| 
 | 
 | ||||||
| // Profile card in settings | // Profile card in settings | ||||||
| div[class^="accountProfileCard-"] { | div[class^="accountProfileCard-"] { | ||||||
|   span[class^="username-"] |  | ||||||
|   { &:extend(.hide); } |  | ||||||
| 
 |  | ||||||
|   div[class^="field-"]:nth-child(1) { |   div[class^="field-"]:nth-child(1) { | ||||||
|     height: 0; |     height: 0; | ||||||
|     div[class^="constrainedRow-"] { |     div[class^="constrainedRow-"] { | ||||||
|  | @ -113,9 +106,6 @@ header div[class^="nameTagNoCustomStatus-"] { | ||||||
| div.root-8LYsGj { // I not love fixed classes, but this selects only modal page | div.root-8LYsGj { // I not love fixed classes, but this selects only modal page | ||||||
|   flex-direction: row; |   flex-direction: row; | ||||||
| 
 | 
 | ||||||
|   span[class^="username-"] |  | ||||||
|   { &:extend(.hide); } |  | ||||||
| 
 |  | ||||||
|   header { |   header { | ||||||
|     width: 260px; |     width: 260px; | ||||||
|     margin: 24px; |     margin: 24px; | ||||||
|  | @ -144,13 +134,10 @@ div.root-8LYsGj { // I not love fixed classes, but this selects only modal page | ||||||
|   } |   } | ||||||
|   div[class^="body-"] { |   div[class^="body-"] { | ||||||
|     border: none; |     border: none; | ||||||
|     margin: 0 16px; |     margin-left: 16px; | ||||||
|     width: 100%; |  | ||||||
|     height: 370px; |     height: 370px; | ||||||
|     & > * { |     & > * | ||||||
|       padding: 0; |     { padding: 0 !important; } | ||||||
|       margin: 0; |  | ||||||
|     } |  | ||||||
|   } |   } | ||||||
|   div[class^="tabBarContainer"] |   div[class^="tabBarContainer"] | ||||||
|   { border: none; } |   { border: none; } | ||||||
|  |  | ||||||
|  | @ -22,12 +22,11 @@ div[class^="standardSidebarView-"] { | ||||||
|       scrollbar-width: thin; |       scrollbar-width: thin; | ||||||
|       overflow: auto hidden !important; |       overflow: auto hidden !important; | ||||||
|       justify-content: left; |       justify-content: left; | ||||||
|       width: max-content; |  | ||||||
|       max-width: 100%; |       max-width: 100%; | ||||||
| 
 | 
 | ||||||
|       & > nav { |       & > nav { | ||||||
|         padding: 0; |         padding: 0; | ||||||
|         width: max-content; // to increase size |         width: unset; // to increase size | ||||||
|         background: var(--background-secondary); // bugfix |         background: var(--background-secondary); // bugfix | ||||||
|         & > div { |         & > div { | ||||||
|           padding-left: @rounder; |           padding-left: @rounder; | ||||||
|  | @ -62,6 +61,22 @@ div[aria-controls="analytics-tab"], | ||||||
| div[aria-controls="partner-tab"], | div[aria-controls="partner-tab"], | ||||||
| { &:extend(.hide); } | { &:extend(.hide); } | ||||||
| 
 | 
 | ||||||
|  | .horiz-tab(@cols: 2) { | ||||||
|  |   @gap: @div-width * 2; | ||||||
|  |   @el-width: calc(100% / @cols - @gap); | ||||||
|  |   display: flex; | ||||||
|  |   flex-flow: row wrap; | ||||||
|  |   column-gap: @gap; | ||||||
|  |   row-gap: (@gap / 2); | ||||||
|  |   & > * { | ||||||
|  |     width: @el-width; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   div[class^="divider"]:empty { | ||||||
|  |     display: none; | ||||||
|  |   } | ||||||
|  | } | ||||||
|  | 
 | ||||||
| #my-account-tab > div { | #my-account-tab > div { | ||||||
|   .horiz-tab(); |   .horiz-tab(); | ||||||
|   & > div:first-child { |   & > div:first-child { | ||||||
|  |  | ||||||
|  | @ -67,11 +67,9 @@ rect[class^="pointerEvents-"], | ||||||
|   div[class*="Popout"], |   div[class*="Popout"], | ||||||
|   div[class*="fullscreenOnMobile"], |   div[class*="fullscreenOnMobile"], | ||||||
|   div[class*="root"] div[class^="flex-"], |   div[class*="root"] div[class^="flex-"], | ||||||
|   div[class*="root"] div[class^="footer-"], |  | ||||||
| 
 | 
 | ||||||
|   // UI parts |   // UI parts | ||||||
|   div[class^="chat-"], |   div[class^="chat-"], | ||||||
|   div[class^="attachedBars-"], // like reply to *user* |  | ||||||
|   div[class^="noticeRegion"] > div, // you have unsaved changes bottom bar |   div[class^="noticeRegion"] > div, // you have unsaved changes bottom bar | ||||||
|   [class^="resultsGroup-"], // search |   [class^="resultsGroup-"], // search | ||||||
|   div[class^="auditLog-"], |   div[class^="auditLog-"], | ||||||
|  | @ -237,56 +235,3 @@ div[id^="message-accessories-"] { | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 |  | ||||||
| // new attachment area |  | ||||||
| ul[class^="channelAttachmentArea-"] { |  | ||||||
|   position: absolute; |  | ||||||
|   bottom: 100%; |  | ||||||
|   height: 216px; |  | ||||||
|   flex-flow: row wrap; |  | ||||||
|   overflow: hidden auto; |  | ||||||
| 
 |  | ||||||
|   & > li |  | ||||||
|   { &:extend(.rounder); } |  | ||||||
| 
 |  | ||||||
|   div[class^="actionBarContainer-"] { |  | ||||||
|     position: static; |  | ||||||
|     margin-top: 8px; |  | ||||||
| 
 |  | ||||||
|     & > div { |  | ||||||
|       position: static; |  | ||||||
|       display: inline; |  | ||||||
| 
 |  | ||||||
|       & > div { |  | ||||||
|         margin: 0 auto; |  | ||||||
|         width: max-content; |  | ||||||
| 
 |  | ||||||
|         &, & > * |  | ||||||
|         { &:extend(.rounder); } |  | ||||||
|       } |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| div[class^="uploadModal-"] { |  | ||||||
|   div[class^="file-"] { |  | ||||||
|     display: flex; |  | ||||||
|     flex-direction: column; |  | ||||||
|     align-items: center; |  | ||||||
| 
 |  | ||||||
|     & > img { |  | ||||||
|       position: relative; |  | ||||||
|       &:extend(.rounder); |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // jump to present |  | ||||||
| div[class^="jumpToPresentBar-"] { |  | ||||||
|   width: max-content; |  | ||||||
|   margin-left: auto; |  | ||||||
| 
 |  | ||||||
|   & > button:first-child { |  | ||||||
|     display: none; |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
							
								
								
									
										10
									
								
								src/ui.less
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/ui.less
									
										
									
									
									
								
							|  | @ -63,9 +63,8 @@ div[class^="radioBar-"] { | ||||||
| 
 | 
 | ||||||
| div[class^="card-"], | div[class^="card-"], | ||||||
| div.bd-server-card { | div.bd-server-card { | ||||||
|   .bd-server-header, |   & > div[class*="header"], | ||||||
|   & > div[class^="header-"], |   & > div[class*="Header"] { | ||||||
|   & > div[class^="cardHeader"] { |  | ||||||
|     position: absolute; |     position: absolute; | ||||||
|     top: 0; left: 0; |     top: 0; left: 0; | ||||||
|     width: 100%; height: 100%; |     width: 100%; height: 100%; | ||||||
|  | @ -97,7 +96,6 @@ button[class*="button"], | ||||||
| { &:extend(.round); } | { &:extend(.round); } | ||||||
| 
 | 
 | ||||||
| // Rounder | // Rounder | ||||||
| div[class*="navRow-"], // in account login switcher |  | ||||||
| div[class^="markup-"] pre code, // ```code``` | div[class^="markup-"] pre code, // ```code``` | ||||||
| span[class^="spoiler"], | span[class^="spoiler"], | ||||||
| span.mention, | span.mention, | ||||||
|  | @ -108,7 +106,3 @@ div[class*="card"], | ||||||
| div[class^="categoryItem-"] > *, // in Discovery | div[class^="categoryItem-"] > *, // in Discovery | ||||||
| div[class^="content-"] img[class^="image-"], | div[class^="content-"] img[class^="image-"], | ||||||
| { &:extend(.rounder); } | { &:extend(.rounder); } | ||||||
| 
 |  | ||||||
| div[class*="navRow-"] { |  | ||||||
|   background-color: unset !important; |  | ||||||
| } |  | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue