BetterDiscordApp-rauenzi/src/styles/builtins/publicservers.css

252 lines
4.9 KiB
CSS
Raw Normal View History

2020-07-23 22:51:58 +02:00
#bd-pub-li {
height: 20px;
margin-bottom: 10px;
overflow: hidden;
}
#bd-pub-button {
border-radius: 4px;
background-color: rgb(47, 49, 54);
color: #b9bbbe;
text-align: center;
font-size: 12px;
line-height: 20px;
height: 20px;
}
.bd-layer {
-ms-flex-direction: column;
-webkit-box-direction: normal;
-webkit-box-orient: vertical;
bottom: 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
flex-direction: column;
left: 0;
position: absolute;
right: 0;
top: 0;
}
#pubslayer button {
background: #7289da;
color: #fff;
font-size: 14px;
font-weight: 500;
line-height: 16px;
padding: 2px 16px;
border: none;
border-radius: 3px;
transition: background-color 0.17s ease;
}
#pubslayer button:hover {
background-color: #677bc4;
}
#pubslayer input {
color: #f6f6f7;
background-color: rgba(0, 0, 0, 0.1);
border-color: rgba(0, 0, 0, 0.3);
padding: 10px;
height: 30px;
border-width: 1px;
border-style: solid;
border-radius: 3px;
outline: none;
transition: background-color 0.15s ease, border 0.15s ease;
}
#bd-connection {
margin-left: 10px;
}
.bd-footnote {
color: #b9bbbe;
font-size: 11px;
}
.bd-button-next,
.bd-button-reconnect {
margin: 5px 10px 10px 0;
width: 100%;
min-height: 20px;
}
/* Rewrite */
.bd-server-search {
margin-bottom: 5px;
}
.bd-empty-results {
display: flex;
flex-direction: column;
align-items: center;
color: var(--text-normal);
margin-top: 100px;
}
.bd-empty-results svg {
margin-bottom: 20px;
}
.bd-card-list {
display: grid;
grid-gap: 16px;
grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
}
.bd-server-card {
display: flex;
flex-direction: column;
height: 320px;
width: 100%;
overflow: hidden;
border-radius: 8px;
position: relative;
transition: box-shadow 0.2s ease-out, transform 0.2s ease-out, background 0.2s ease-out, opacity 0.2s ease-in;
cursor: pointer;
background-color: var(--background-secondary-alt);
}
.bd-server-card:hover {
background-color: var(--background-tertiary);
transform: translateY(-1px);
box-shadow: var(--elevation-high);
}
.bd-server-header {
height: 143px;
position: relative;
display: block;
overflow: visible;
margin-bottom: 32px;
}
.bd-server-splash-container {
width: 100%;
height: 100%;
display: block;
position: absolute;
top: 0;
left: 0;
transition: opacity 0.2s, transform 0.2s ease-out;
transform: scale(1);
overflow: hidden;
}
.bd-server-card:hover .bd-server-splash-container {
-webkit-transform: scale(1.01) translateZ(0);
transform: scale(1.01) translateZ(0);
}
.bd-server-splash {
object-fit: cover;
width: 100%;
height: 100%;
filter: blur(20px);
}
.bd-server-icon {
position: absolute;
bottom: -21px;
left: 12px;
width: 40px;
background: var(--background-secondary-alt);
border: 4px solid var(--background-secondary-alt);
border-radius: 25%;
transition: background 0.2s ease-out, transform 0.2s ease-out, border-color 0.2s ease-out;
}
.bd-server-card:hover .bd-server-icon {
border-color: var(--background-tertiary);
background: var(--background-tertiary);
}
.bd-server-info {
display: flex;
flex: 1 1 auto;
position: relative;
flex-direction: column;
align-content: stretch;
padding: 0 16px 16px;
overflow: hidden;
}
.bd-server-title {
display: flex;
align-items: center;
width: 100%;
font-weight: 600;
}
.bd-server-name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: var(--header-primary);
font-size: 16px;
line-height: 20px;
}
.bd-server-description {
flex: 1 1 auto;
overflow: hidden;
margin: 4px 0 16px;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
color: var(--header-secondary);
font-size: 14px;
line-height: 18px;
}
.bd-server-footer {
display: flex;
align-items: center;
}
.bd-server-count {
display: flex;
align-items: center;
font-size: 0.75rem;
line-height: 1rem;
margin-right: 16px;
}
.bd-server-count-dot {
background-color: #43b581;
border-radius: 50%;
width: 8px;
height: 8px;
margin-right: 4px;
flex-shrink: 0;
}
.bd-server-count + .bd-server-count .bd-server-count-dot {
background-color: #b9bbbe;
}
.bd-server-count-text {
color: var(--header-secondary);
font-size: 12px;
line-height: 16px;
}
.bd-server-tag {
margin-left: 5px;
font-size: 10px;
text-transform: uppercase;
vertical-align: top;
display: inline-flex;
align-items: center;
flex-shrink: 0;
text-indent: 0;
height: 15px;
padding: 0 4px;
margin-top: 1px;
border-radius: 3px;
background: #3e82e5;
color: #fff;
2020-07-23 22:51:58 +02:00
}