docs-v2/assets/styles/layouts/_url-selector.scss

367 lines
7.0 KiB
SCSS

.modal {
display: none;
padding: 1rem;
position: fixed;
top: 0;
width: 100%;
height: 100%;
z-index: 100;
.modal-overlay {
position: absolute;
top:0;
left:0;
width: 100%;
height: 100%;
@include gradient($grad-Miyazakisky);
opacity: .85;
}
.modal-wrapper {
display: flex;
justify-content: center;
align-items: flex-start;
}
.modal-body {
position: relative;
display: flex;
overflow: hidden;
max-width: 650px;
max-height: 97.5vh;
margin-top: 10vh;
padding: .75rem 2rem 1.5rem;
border-radius: $radius * 1.5;
background: $article-bg;
color: $article-text;
font-size: 1rem;
transition: margin .4s;
}
&.open {
.modal-body { margin-top: 0; }
}
#modal-close {
position: absolute;
padding: .25rem;
top: 1rem;
right: 1rem;
color: rgba($article-text, .5);
transition: color .2s;
text-decoration: none;
&:hover {
color: $article-text;
}
}
.modal-content{
overflow: auto;
h3 {
color: $article-heading;
font-weight: $medium;
font-size: 1.4rem;
margin-bottom: 1rem;
}
h4 {
color: $article-heading;
font-weight: $medium;
margin: 1rem 0 .5rem $radius;
}
h5 {
margin: .5rem 0 0;
color: $article-bold;
}
p,li {
margin: .25rem 0;
line-height: 1.5rem;
strong {
font-weight: $medium;
color: $article-bold;
}
&.note {
padding-top: 1.25rem;
margin-top: 1.5rem;
color: rgba($article-text, .5);
border-top: 1px solid rgba($article-text, .25);
font-size: .9rem;
font-style: italic;
}
}
a {
color: $article-link;
font-weight: $medium;
text-decoration: none;
transition: color .2s;
&:hover {
color: $article-link-hover;
}
}
}
.products {
display: flex;
flex-direction: column;
flex-wrap: wrap;
flex-grow: 1;
justify-content: flex-start;
}
.product {
.providers{
display: flex;
flex-wrap: wrap;
padding: .5rem 1rem;
background: rgba($article-text, .05);
border-radius: $radius;
.provider {
flex-grow: 1;
&:not(:last-child) {margin-right: 1rem;}
}
ul {
margin: .5rem .5rem .5rem 0;
padding: 0;
list-style: none;
}
}
}
li.custom {
display: flex;
align-items: center;
}
#custom-url {
display: inline-block;
width: 100%;
padding-left: .5rem;
position: relative;
&:after {
display: none;
content: attr(data-message);
position: absolute;
top: -1.8rem;
right: 0;
font-size: .85rem;
font-weight: $medium;
color: $r-fire;
}
&.error {
&:after { display: block; }
input#custom-url-field {
border-color: $r-fire;
&:focus {
border-color: $r-fire;
box-shadow: 1px 1px 10px rgba($r-fire,0.5);
}
}
}
input {
&#custom-url-field {
font-family: $rubik;
font-weight: $medium;
background: $modal-field-bg;
border-radius: $radius;
border: 1px solid $sidebar-search-bg;
padding: .5em;
width: 100%;
color: $sidebar-search-text;
transition-property: border, box-shadow;
transition-duration: .2s;
box-shadow: 2px 2px 6px $sidebar-search-shadow;
&:focus {
outline: none;
border-color: $sidebar-search-highlight;
box-shadow: 1px 1px 10px rgba($sidebar-search-highlight, .5);
border-radius: $radius;
}
&::placeholder {
color: rgba($sidebar-search-text, .45);
font-weight: normal;
font-style: italic;
}
}
}
}
.radio {
position: relative;
display: inline-block;
height: 1.15em;
width: 1.15em;
background: rgba($article-text, .05);
margin: 0 .3rem 0 .1rem;
vertical-align: text-top;
border-radius: $radius;
cursor: pointer;
border: 1.5px solid rgba($article-text, .2);
user-select: none;
}
input[type='radio'] {
margin-right: -1.1rem ;
padding: 0;
vertical-align: top;
opacity: 0;
cursor: pointer;
& + .radio:after {
content: "";
display: block;
position: absolute;
height: .5rem;
width: .5rem;
border-radius: 50%;
background: $article-link;
top: 50%;
left: 50%;
opacity: 0;
transform: scale(2) translate(-20%, -20%);
transition: all .2s;
}
&:checked + .radio:after {
opacity: 1;
transform: scale(1) translate(-50%, -50%);
}
}
}
td,label,li {
&:after {
display: inline;
vertical-align: middle;
font-style: italic;
font-weight: $medium;
font-size: .75em;
margin-left: .35rem;
padding: .1rem .3rem .12rem .32rem;
line-height: .75rem;
border-radius: 1rem;
}
&.beta:after {
content: "beta";
color: $g20-white;
@include gradient($grad-blue);
}
}
label:after {
margin-left: .15rem;
}
/////////////////////////// InfluxDB Preference Tabs ///////////////////////////
#pref-tabs {
padding: 0;
margin: 0 0 -5px;
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
}
.pref-tab {
padding: .75rem 1.25rem;
margin-right: 5px;
text-align: center;
font-weight: bold;
width: 49%;
color: rgba($article-text, .7);
background: rgba($article-text, .05);
border-radius: $radius;
cursor: pointer;
transition: color .2s;
&:last-child {
margin-right: 0;
}
&:hover {
color: $article-link;
}
&.active {
color: $g20-white;
@include gradient($article-btn-gradient);
}
span.ephemeral { display: inline; }
span.abbr:after {
display: none;
content: ".";
}
}
.product {
&.active { display: block; }
&.inactive { display: none; }
}
///////////////////////////// InfluxDB URL Triggers ////////////////////////////
.article--content {
.select-url {
margin: -2.5rem 0 1rem;
text-align: right;
display: none;
}
.url-trigger {
padding: .25rem .5rem;
display: inline-block;
font-size: .85rem;
font-style: italic;
color: rgba($article-tab-code-text, .5);
background: $article-code-bg;
border-radius: 0 0 $radius $radius;
&:before {
content: "\e924";
display: inline-block;
margin-right: .35rem;
font-family: "icomoon-v2";
font-style: normal;
font-size: .8rem;
}
&:hover {
color: $article-tab-code-text;
}
}
li .url-trigger { padding: 0rem .5rem; }
.code-tab-content {
.select-url{margin-top: -3.25rem}
}
}
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
@include media(small) {
.modal {
padding: .5rem;
overflow: scroll;
.modal-body {
padding: .5rem 1.5rem 1.5rem;
}
}
.pref-tab {
span.ephemeral { display: none; }
span.abbr:after { display: inline; }
}
}