lbry-desktop/ui/scss/_gui.scss

226 lines
3.2 KiB
SCSS
Raw Normal View History

@import "global";
@mixin text-link($color: $color-primary, $hover-opacity: 0.70) {
2017-01-21 22:31:41 +01:00
2016-11-02 17:09:33 +01:00
.icon
{
&:first-child {
padding-right: 5px;
}
&:last-child:not(:only-child) {
padding-left: 5px;
}
}
&:not(.no-underline) {
text-decoration: underline;
.icon {
text-decoration: none;
}
}
&:hover
{
opacity: $hover-opacity;
2017-04-09 17:06:23 +02:00
transition: opacity $transition-standard;
2016-11-02 17:09:33 +01:00
text-decoration: underline;
.icon {
text-decoration: none;
}
}
color: $color;
2017-01-21 22:31:41 +01:00
cursor: pointer;
2016-11-02 17:09:33 +01:00
}
.icon-fixed-width {
/* This borrowed is from a component of Font Awesome we're not using, maybe add it? */
width: (18em / 14);
text-align: center;
}
2017-04-10 14:32:40 +02:00
/*
2016-04-10 02:00:56 +02:00
section
{
margin-bottom: $spacing-vertical;
&:last-child
{
margin-bottom: 0;
}
2016-08-22 15:03:36 +02:00
&:only-child {
margin-bottom: $spacing-vertical;
}
2016-04-10 02:00:56 +02:00
}
2017-04-10 14:32:40 +02:00
*/
2016-04-10 02:00:56 +02:00
h2 {
font-size: 1.75em;
}
h3 { font-size: 1.4em; }
h4 {
font-size: 1.2em;
}
h5 { font-size: 1.1em; }
sup, sub {
vertical-align: baseline;
position: relative;
}
sup { top: -0.4em; }
sub { top: 0.4em; }
2016-10-22 10:31:48 +02:00
code {
font: 0.8em Consolas, 'Lucida Console', 'Source Sans', monospace;
background-color: #eee;
}
2016-04-24 10:59:55 +02:00
p
{
margin-bottom: 0.8em;
2016-08-08 00:45:26 +02:00
&:last-child
{
margin-bottom: 0;
}
2016-04-24 10:59:55 +02:00
}
.hidden {
display: none;
}
.disabled {
pointer-events: none;
opacity: 0.7;
}
.truncated-text {
display: inline-block;
}
.busy-indicator
{
background: url('../img/busy.gif') no-repeat center center;
display: inline-block;
margin: -1em 0;
min-width: 16px;
min-height: 8px;
vertical-align: middle;
padding: 0 30px;
&:last-child
{
padding-right: 2px;
}
&:first-child
{
padding-left: 2px;
}
}
.icon:only-child {
2016-04-25 12:57:47 +02:00
position: relative;
top: 0.16em;
}
.help {
font-size: .85em;
2016-04-10 02:00:56 +02:00
color: $color-help;
}
2016-08-08 06:47:48 +02:00
.meta
{
font-size: 0.9em;
color: $color-meta-light;
}
.empty
{
color: $color-meta-light;
font-style: italic;
}
2016-11-18 11:56:55 +01:00
.sort-section {
display: block;
margin-bottom: 5px;
text-align: right;
font-size: 0.85em;
color: $color-help;
}
2016-10-21 03:25:32 +02:00
.modal-overlay {
position: fixed;
display: flex;
justify-content: center;
align-items: center;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-color: rgba(255, 255, 255, 0.74902);
z-index: 9999;
}
.modal {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: 1px solid rgb(204, 204, 204);
background: rgb(255, 255, 255);
overflow: auto;
border-radius: 4px;
2017-04-10 14:32:40 +02:00
padding: $spacing-vertical;
box-shadow: $default-box-shadow;
2016-10-21 03:25:32 +02:00
max-width: 250px;
}
.modal__header {
margin-bottom: 5px;
2017-02-25 07:51:33 +01:00
text-align: center;
}
2016-10-21 03:25:32 +02:00
.modal__buttons {
display: flex;
flex-direction: row;
justify-content: center;
margin-top: 15px;
}
.modal__button {
margin: 0px 6px;
}
2016-10-22 10:31:48 +02:00
.error-modal-overlay {
background: rgba(#000, .88);
}
.error-modal__content {
display: flex;
padding: 0px 8px 10px 10px;
}
.error-modal__warning-symbol {
margin-top: 6px;
margin-right: 7px;
}
.download-started-modal__file-path {
word-break: break-all;
2016-12-29 10:23:28 +01:00
}
.error-modal {
max-width: none;
width: 400px;
}
.error-modal__error-list { /*shitty hack/temp fix for long errors making modals unusable*/
2017-01-13 23:18:37 +01:00
border: 1px solid #eee;
padding: 8px;
list-style: none;
max-height: 400px;
2017-01-13 23:18:37 +01:00
max-width: 400px;
overflow-y: hidden;
}