-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve obc conn styling & pass lint!
- Loading branch information
1 parent
dff7487
commit d339175
Showing
7 changed files
with
137 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,83 @@ | ||
|
||
main.obc-page { | ||
/* The map is a child of this flex container, so it will take up the entire space */ | ||
flex: 1; /* Take up remainder of screen beyond navbar */ | ||
|
||
display: flex; | ||
flex-direction: row; | ||
flex: 1; /* Take up remainder of screen */ | ||
} | ||
|
||
/* container which holds the image gallery */ | ||
main.obc-page .left-container { | ||
flex: 4; | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; /* take up as much available space */ | ||
} | ||
|
||
/* list of all the status icons */ | ||
main.obc-page ul.status-list { | ||
display: flex; | ||
flex-direction: row; | ||
flex-direction: column; | ||
list-style-type: none; | ||
background-color: var(--dark-bg); | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
/* This icon is specifically clickable, so make this more obvious */ | ||
main.obc-page #camera-icon { | ||
border-bottom: 1px solid black; | ||
cursor: pointer; | ||
transition: var(--std-transition); | ||
} | ||
main.obc-page #camera-icon:is(:hover, :focus) { | ||
transform: translateY(-0.5rem); | ||
} | ||
|
||
/* Some icons have captions underneath them, so make sure they are all nice and aligned */ | ||
main.obc-page ul.status-list figcaption { | ||
text-align: center; | ||
color: var(--light-text); | ||
} | ||
|
||
main.obc-page .image-gallery { | ||
flex: 3; | ||
/* Position the camera config form within the center of the screen when the modal opens */ | ||
.obc-camera-form-modal { | ||
position: absolute; | ||
left: 50%; | ||
top: 50%; | ||
transform: translate(-50%, -50%); | ||
outline: 0; | ||
} | ||
|
||
main.obc-page iframe.ubiquiti { | ||
flex: 3; | ||
border: none; | ||
background-color: white; | ||
.obc-camera-form-modal form { | ||
border: 0; | ||
} | ||
|
||
main.obc-page fieldset { | ||
/* Put all the field items going down in a nice column */ | ||
.obc-camera-form-modal fieldset { | ||
border: none; | ||
border-radius: 4px; | ||
display: flex; | ||
flex-direction: row; | ||
flex-direction: column; | ||
flex-wrap: wrap; | ||
background-color: var(--light-bg); | ||
margin: 0; | ||
padding: 0; | ||
font-family: 'Jetbrains Mono', sans-serif; | ||
} | ||
|
||
main.obc-page legend { | ||
.obc-camera-form-modal legend { | ||
color: var(--highlight); | ||
background-color: var(--dark-bg); | ||
border: 1px solid var(--dark-text); | ||
} | ||
|
||
main.obc-page input { | ||
width: fit-content; | ||
} | ||
|
||
main.obc-page input[type="submit"] { | ||
border: 1px solid var(--light-text); | ||
.obc-camera-form-modal input[type="submit"] { | ||
border: none; | ||
} | ||
|
||
main.obc-page input[type="submit"]:is(:hover, :focus) { | ||
.obc-camera-form-modal input[type="submit"]:is(:hover, :focus) { | ||
background-color: var(--dark-bg); | ||
color: var(--highlight); | ||
border: none; | ||
} | ||
|
||
main.obc-page fieldset > * { | ||
.obc-camera-form-modal fieldset > * { | ||
margin: 0.3rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This file is holding TEMPORARY definitions which will eventually be removed | ||
// TODO: implement protobufs and remove these defs | ||
|
||
// TODO: standardize connection status data structure | ||
// and make it a protobuf | ||
export interface ConnectionStatus { | ||
name: string, | ||
isActive: boolean | ||
type: ConnectionType | ||
} | ||
|
||
export const enum ConnectionType { | ||
Radio, | ||
Ethernet, | ||
Wifi | ||
} |