bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/poll/styles.scss

164 lines
3.1 KiB
SCSS
Raw Normal View History

@import "/imports/ui/stylesheets/variables/_all";
2018-09-24 06:20:20 +08:00
@import "/imports/ui/stylesheets/mixins/focus";
2018-10-26 09:40:15 +08:00
:root {
--column-amount: 2;
--poll-blue: #1A73D4;
2018-10-26 20:49:14 +08:00
--headerOffset: -0.875rem;
2018-10-26 09:40:15 +08:00
}
2018-10-24 22:17:13 +08:00
.closeBtn {
position: relative;
}
2018-09-25 06:43:54 +08:00
.btn {
2018-10-26 01:44:03 +08:00
margin-top: var(--sm-padding-y);
margin-bottom: var(--sm-padding-y);
2018-10-26 02:23:43 +08:00
}
2018-10-18 22:31:17 +08:00
.hideBtn {
position: relative;
2018-10-26 09:40:15 +08:00
background-color: var(--color-white);
2018-10-18 22:31:17 +08:00
display: block;
2018-10-26 09:40:15 +08:00
margin: var(--border-size-large);
margin-bottom: var(--border-size);
2018-10-18 22:31:17 +08:00
padding-left: 0px;
2018-10-18 22:31:17 +08:00
> i {
2018-10-26 09:40:15 +08:00
color: var(--color-gray-dark);
font-size: smaller;
2018-10-18 22:31:17 +08:00
}
2018-10-18 22:31:17 +08:00
&:hover {
2018-10-26 09:40:15 +08:00
background-color: var(--color-white);
2018-10-18 22:31:17 +08:00
}
}
2018-10-24 22:17:13 +08:00
.customBtn {
width: 100%;
2018-09-25 06:43:54 +08:00
}
.customInputWrapper {
width: 100%;
> input {
width: 100%;
2018-10-26 09:40:15 +08:00
margin-top: var(--sm-padding-y);
margin-bottom: var(--sm-padding-y);
}
> input:first-child {
2018-10-26 01:44:03 +08:00
margin-top: var(--md-padding-y);
}
> Button {
width: 100%;
2018-10-26 01:44:03 +08:00
margin-top: var(--sm-padding-y);
margin-bottom: var(--sm-padding-y);
}
}
.header {
2018-10-26 09:40:15 +08:00
position: relative;
2018-10-26 20:49:14 +08:00
top: var(--headerOffset);
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
2018-10-26 01:44:03 +08:00
margin-bottom: var(--md-padding-y);
}
.instructions {
2018-10-26 01:44:03 +08:00
margin-bottom: var(--lg-padding-x);
color: var(--color-text);
}
.grid {
display: grid;
2018-10-26 09:40:15 +08:00
grid-template-columns: repeat(var(--column-amount), 1fr);
> pollBtn:nth-child(odd) {
grid-column: 1;
}
> pollBtn:nth-child(even) {
2018-10-26 09:40:15 +08:00
grid-column: var(--column-amount);
}
}
.pollBtn:nth-child(even) {
2018-10-26 01:44:03 +08:00
margin-left: var(--sm-padding-y);
}
.pollBtn:nth-child(odd) {
2018-10-26 01:44:03 +08:00
margin-right: var(--sm-padding-y);
}
.customBtn:hover,
.pollBtn:hover {
2018-10-26 09:40:15 +08:00
box-shadow: 0 0 0 1px var(--poll-blue);
2018-10-26 01:44:03 +08:00
background-color: var(--color-white);
2018-10-26 09:40:15 +08:00
color: var(--poll-blue);
> span {
2018-10-26 09:40:15 +08:00
color: var(--poll-blue);
opacity: 1;
}
}
.customBtn,
.pollBtn {
2018-10-26 01:44:03 +08:00
margin-top: var(--sm-padding-y);
margin-bottom: var(--sm-padding-y);
background-color: var(--color-white);
box-shadow: 0 0 0 1px var(--color-gray-light);
color: var(--color-gray-light);
> span {
2018-10-26 01:44:03 +08:00
color: var(--color-gray-light);
}
> span:hover {
2018-10-26 09:40:15 +08:00
color: var(--poll-blue);
opacity: 1;
}
}
.customBtn:active,
.pollBtn:active {
&:focus {
2018-10-26 09:40:15 +08:00
box-shadow: 0 0 0 1px var(--poll-blue);
}
2018-10-26 01:44:03 +08:00
background-color: var(--color-white);
2018-10-26 09:40:15 +08:00
box-shadow: 0 0 0 1px var(--poll-blue);
> span {
2018-10-26 09:40:15 +08:00
color: var(--poll-blue);
}
}
.customBtn:focus,
.pollBtn:focus {
2018-10-26 01:44:03 +08:00
background-color: var(--color-white);
2018-10-26 09:40:15 +08:00
box-shadow: 0 0 0 1px var(--poll-blue);
> span {
2018-10-26 09:40:15 +08:00
color: var(--poll-blue);
}
}
2018-09-24 06:20:20 +08:00
.input {
2018-10-26 01:44:03 +08:00
@include inputFocus(var(--color-blue-light));
2018-09-24 06:20:20 +08:00
outline: 0;
margin: 0;
2018-10-26 01:44:03 +08:00
color: var(--color-text);
background: var(--color-white);
font-size: var(--font-size-small);
border: 1px solid var(--color-gray-lighter);
border-radius: var(--border-radius);
padding: .3rem * 1 .3rem * 0.25;
padding-left: var(--lg-padding-y);
2018-09-24 06:20:20 +08:00
}