Skip to content

Commit

Permalink
Update match play page for Bootstrap 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed May 10, 2024
1 parent 0397e84 commit 92993db
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 128 deletions.
37 changes: 14 additions & 23 deletions static/css/cheesy-arena.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,11 @@
.blue-text {
color: #00f;
}
.well-red {
background-color: #f2dede;
.card-red {
background-color: #422;
}
.well-darkred {
background-color: #ebcccc;
}
.well-blue {
background-color: #d9edf7;
}
.well-darkblue {
background-color: #c4e3f3;
.card-blue {
background-color: #192945;
}
.col-no-padding {
padding-left: 0;
Expand All @@ -46,6 +40,9 @@
.modal-large {
width: 60%;
}
.team-number {
height: 27px;
}
.ds-status, .radio-status, .robot-status, .bypass-status {
background-color: #aaa;
color: #000;
Expand Down Expand Up @@ -74,17 +71,19 @@
background-color: #fc0;
}
.btn-match-play {
width: 150px;
width: 180px;
height: 50px;
line-height: 36px;
font-size: 16px;
}
.label-scoring {
.badge-scoring {
background-color: #e66;
}
.label-scoring[data-ready=true] {
.badge-scoring[data-ready=true] {
background-color: #0c6;
}
.label-saved-match {
background-color: #999;
.badge-saved-match {
background-color: #666;
}
.nowrap {
white-space: nowrap;
Expand Down Expand Up @@ -114,13 +113,6 @@ td[data-plc-value="true"] {
input[data-changed="true"], select[data-changed="true"] {
border: 2px solid #f00;
}
.status-well {
margin-bottom: 10px;
}
#buttonBottomRow {
margin-top: 5px;
margin-bottom: 10px;
}
.match-list {
height: 610px;
overflow-y: auto;
Expand All @@ -131,7 +123,6 @@ input[data-changed="true"], select[data-changed="true"] {
.match-list th {
position: sticky;
top: 0;
background-color: #fff;
}
#testMatchSettings {
display: none;
Expand Down
3 changes: 2 additions & 1 deletion static/js/match_play.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ const formatPlayoffAllianceInfo = function(allianceNumber, offFieldTeams) {

$(function() {
// Activate tooltips above the status headers.
$("[data-toggle=tooltip]").tooltip({"placement": "top"});
const tooltipTriggerList = document.querySelectorAll("[data-bs-toggle=tooltip]")
const tooltipList = [...tooltipTriggerList].map(element => new bootstrap.Tooltip(element))

// Set up the websocket back to the server.
websocket = new CheesyWebsocket("/match_play/websocket", {
Expand Down
Loading

0 comments on commit 92993db

Please sign in to comment.