Skip to content

Commit

Permalink
update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
myandrienko committed Jan 23, 2025
1 parent cf34731 commit 0e096cc
Showing 1 changed file with 106 additions and 2 deletions.
108 changes: 106 additions & 2 deletions sample-apps/react/react-dogfood/style/Inspector.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
background: var(--str-video__background-color5);
color: #fff;
cursor: pointer;
white-space: nowrap;

&:focus-visible {
outline: 1px solid #fff;
Expand All @@ -64,14 +65,54 @@

.rd__join-call-form-connection-string {
flex-grow: 1;
min-width: 480px;
}

.rd__connection-string-input {
display: flex;
position: relative;
border-color: var(--str-video__base-color3);

&_invalid {
animation: flash-invalid 0.5s;
}

& input {
width: 100%;
padding-right: 20px;
border-color: inherit;
flex-basis: 0;
min-width: 0;
}

& input:nth-child(1) {
flex-grow: 1;
}

& input:nth-child(2) {
flex-grow: 1;
}

& input:nth-child(3) {
flex-grow: 1;
}

& input:nth-child(4) {
flex-grow: 2;
}

& input:not(:first-child) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-left: 0;
}

& input:not(:last-child) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
padding-right: 2px;
}

& input:last-child {
padding-right: 19px;
}

&::after {
Expand All @@ -87,6 +128,23 @@
}
}

@keyframes flash-invalid {
from {
border-color: var(--str-video__danger-color--accent);
transform: scale(1);
}

20% {
border-color: var(--str-video__danger-color--accent);
transform: scale(0.98);
}

to {
border-color: var(--str-video__base-color3);
transform: scale(1);
}
}

.rd__join-call-form-or {
margin: 0 20px;
text-align: center;
Expand Down Expand Up @@ -130,6 +188,11 @@ button.rd__join-call-form-leave {
background: var(--str-video__button-tertiary-base);
}

button.rd__copy-button {
background: rgba(255, 255, 255, 0.08);
margin-left: 10px;
}

.rd__calling-state {
margin-right: auto;
}
Expand Down Expand Up @@ -183,6 +246,24 @@ button.rd__join-call-form-leave {
margin: 0;
}
}

p {
font: inherit;
margin: 10px 0;

&:first-child {
margin-top: 0;
}

&:last-child {
margin-bottom: 0;
}
}

small {
color: var(--str-video__text-color2);
font-size: 1em;
}
}

.rd__inspector-permission {
Expand Down Expand Up @@ -215,6 +296,29 @@ button.rd__join-call-form-leave {
float: right;
}

.rd__inspector-device {
&_active {
cursor: pointer;
}

.rd__inspector-device-select {
float: right;
display: none;
padding: 0;
margin: 0;
background: none;
color: var(--str-video__secondary-color);
}

&:hover .rd__inspector-device-select {
display: inline-block;
}

.rd__inspector-device-checkmark {
color: var(--str-video__text-color2);
}
}

.rd__inspector-pre {
font-size: 13px;
color: var(--str-video__text-color2);
Expand Down

0 comments on commit 0e096cc

Please sign in to comment.