pleroma/app/styles/components/columns.scss

109 lines
1.8 KiB
SCSS
Raw Normal View History

2020-06-02 19:11:01 -07:00
.column {
width: 350px;
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
flex: 1 1 100%;
2020-06-02 19:11:01 -07:00
}
@media screen and (min-width: 631px) {
.column {
2020-06-02 19:11:01 -07:00
flex: 0 0 auto;
padding: 10px;
padding-left: 5px;
padding-right: 5px;
&:first-child {
padding-left: 10px;
}
&:last-child {
padding-right: 10px;
}
}
}
.column-link {
2020-06-06 20:55:00 -07:00
background: var(--brand-color--med);
2020-06-02 19:11:01 -07:00
color: var(--primary-text-color);
display: flex;
align-items: center;
2020-06-02 19:11:01 -07:00
font-size: 16px;
padding: 15px;
text-decoration: none;
&:hover,
&:focus,
&:active {
2020-06-06 20:55:00 -07:00
background: var(--brand-color--faint);
2020-06-02 19:11:01 -07:00
}
&:focus {
outline: 0;
}
&--transparent {
background: transparent;
color: var(--background-color);
&:hover,
&:focus,
&:active {
background: transparent;
color: var(--primary-text-color);
}
&.active {
color: var(--brand-color);
}
}
}
.svg-icon.column-link__icon {
2020-06-02 19:11:01 -07:00
display: inline-block;
margin-right: 5px;
}
.column-header__setting-btn {
&--link {
text-decoration: none;
.fa {
margin-left: 10px;
}
}
&:hover {
2020-06-06 20:55:00 -07:00
color: var(--primary-text-color--faint);
2020-06-02 19:11:01 -07:00
text-decoration: underline;
}
}
.empty-column-indicator,
.error-column {
@apply bg-primary-50 dark:bg-gray-700 text-gray-900 dark:text-gray-300 text-center p-10 flex flex-1 items-center justify-center min-h-[160px] rounded-lg;
2020-06-02 19:11:01 -07:00
@supports (display: grid) { // hack to fix Chrome <57
2020-06-02 19:11:01 -07:00
contain: strict;
}
& > span {
@apply max-w-[400px];
2020-06-02 19:11:01 -07:00
}
a {
2022-05-09 05:55:53 -07:00
@apply text-primary-600 dark:text-primary-400 no-underline hover:underline;
}
2020-06-02 19:11:01 -07:00
}
.error-column {
flex-direction: column;
.svg-icon {
width: 70px;
height: 70px;
margin-bottom: 30px;
}
2020-06-02 19:11:01 -07:00
}