ubicloud/public/admin/app.css
Jeremy Evans 8c6c73d4a0 Use link instead of button for Vm/PostgresResource restart button on admin site
The link takes you to a separate page with the button. This is done to
avoid accidental clicks.

As we plan to support additional actions in the future that will want to use
the same framework, I decided to DRY things up. You now register supported
actions per class in an OBJECT_ACTIONS hash. The object page display links to
each action-specific page with the button to perform the action. This approach
will allow for model-specific actions with potentially only a single line of
code.
2025-09-06 01:40:34 +09:00

142 lines
2.2 KiB
CSS

body {
font-size: 1em;
font-family: sans-serif;
}
.container {
max-width: 1200px;
margin: auto;
}
a, .navbar-brand { color: #b04209; }
a {
text-decoration: none;
&:hover { text-decoration: underline; }
}
input {
padding: 5px;
font-size: 1em;
}
input[type=submit] {
color: white;
border: 2px solid black;
background-color: #ea580c;
font-weight: bold;
#ubid_form & { font-size: 0.9em; }
}
nav div.container, .associations {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1em;
}
.navbar-brand {
font-weight: bold;
text-decoration: none;
font-size: 1.6em;
}
.alert {
padding: 10px;
margin-bottom: 10px;
}
#flash-notice {
background-color: #dff0d8;
border-color: #d6e9c6;
}
#flash-error {
background-color: #f2dede;
border-color: #ebccd1;
}
h1 { font-size: 1.5em; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.1em; }
label {
display: inline-block;
margin-right: 5px;
}
label:after { content: ": "; }
table, thead, tbody, tr, th, td {
border-collapse: collapse;
border: 1px solid black;
padding: 2px;
}
table { margin-top: 1em; }
th { padding: 5px; }
tbody tr {
&:nth-child(6n+1), &:nth-child(6n+2), &:nth-child(6n+3) {
background-color: #eee;
}
td[rowspan] { background-color: white; }
}
caption {
font-size: 1.3em;
font-weight: bold;
}
code {
display: inline-block;
padding: 5px;
background-color: #eee;
}
#associations-header {
padding-bottom: 0;
margin-bottom: 0;
}
.associations {
flex-wrap: wrap;
justify-content: flex-start;
align-items: flex-start;
gap: 10px;
}
.association {
border: 1px solid black;
padding: 5px;
& h3 {
text-align: center;
padding-top: 0;
margin-top: 0;
}
& ul {
list-style-type: none;
padding: 0;
}
}
#model-class-list {
columns: 5;
}
#object-list {
columns: 4;
}
#strand-info form {
display: inline-block;
}
#action-list a {
display: inline-block;
border-left: 1px solid black;
padding-left: 10px;
padding-right: 5px;
&:first-child {
padding-left: 0;
border-left: none;
}
}
.rodauth {
div { margin-bottom: 10px; }
label { min-width: 100px; }
.rodauth_hidden { display: none; }
}