Sith/core/static/election/election.scss

291 lines
5.8 KiB
SCSS
Raw Normal View History

$padding: 1.5rem;
$padding_smaller: .5rem;
$gap: .25rem;
$border: .01rem solid black;
$min_col_width: 100px;
2022-06-14 23:42:17 +00:00
.error {
color: red !important;
2022-06-14 23:42:17 +00:00
}
.radio-btn {
display: flex;
flex-direction: row;
gap: $gap;
2022-06-14 23:42:17 +00:00
> input,
> label {
margin: 0;
}
2022-06-14 23:42:17 +00:00
&:hover {
cursor: pointer;
}
2022-06-14 23:42:17 +00:00
}
.election_vote {
overflow-x: scroll !important;
}
2022-06-14 23:42:17 +00:00
.election_table {
width: 100%;
2022-06-14 23:42:17 +00:00
>.lists {
display: flex;
flex-direction: row;
>tr {
display: flex;
flex-direction: row;
width: 100%;
>.column {
display: flex;
flex-direction: column-reverse;
align-items: center;
justify-content: center;
padding: $padding;
border: $border;
border-collapse: collapse;
position: relative;
min-width: $min_col_width;
>a{
margin-left: $padding;
width: 20px;
height: 20px;
text-align: center;
padding: 5px;
border-radius: 25%;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: $gap;
top: $gap;
&:hover {
background-color: #ddd;
}
}
}
}
}
>.role {
display: flex;
flex-direction: column;
>tr {
display: flex;
flex-direction: row;
background-color: lightgrey;
&:hover {
background-color: lightgrey;
}
>.role_title {
2022-06-14 23:42:17 +00:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin: 0;
padding: $padding;
width: 100%;
>.role_text {
>h4 {
margin: 0;
}
>p {
margin-top: .5em;
}
}
2022-06-14 23:42:17 +00:00
>.role_buttons {
display: flex;
flex-direction: row;
align-items: center;
gap: $gap;
> button,
> button > i,
> a {
width: 20px;
height: 20px;
background-color: #e9e9e9;
text-align: center;
padding: 5px;
border-radius: 25%;
margin: 0;
2022-06-14 23:42:17 +00:00
display: flex;
align-items: center;
justify-content: center;
2022-06-14 23:42:17 +00:00
&:hover,
&:hover > i {
background-color: #fff;
2022-06-14 23:42:17 +00:00
}
}
> button {
width: 30px;
height: 30px;
}
> button[disabled] {
background-color: #eee;
cursor: not-allowed;
>i,
&:hover,
&:hover > i {
background-color: #eee;
}
}
2022-06-14 23:42:17 +00:00
}
}
2022-06-14 23:42:17 +00:00
>.list_per_role {
2022-06-14 23:42:17 +00:00
display: flex;
flex-direction: row;
justify-content: center;
border: $border;
border-collapse: collapse;
background-color: #fff;
padding: $padding_smaller;
margin: 0;
min-width: $min_col_width;
>.candidates {
margin: 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
width: 100%;
gap: $gap;
>.candidate {
2022-06-14 23:42:17 +00:00
display: flex;
flex-direction: column;
align-items: center;
list-style-type: none;
width: 100%;
gap: $gap;
>input[type="radio"]:checked + label,
>input[type="checkbox"]:checked + label {
background-color: lightgray;
border-radius: 10px;
>figure>.edit_btns>a:hover{
background-color: #fff;
}
2022-06-14 23:42:17 +00:00
}
>label {
width: 100%;
}
2022-06-14 23:42:17 +00:00
>label>figure,
>figure {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: $gap;
padding: 10px;
max-width: 100%;
>img {
max-width: 100% !important;
}
>figcaption {
width: 100%;
max-width: inherit !important;
overflow: hidden;
2022-06-14 23:42:17 +00:00
h5 {
margin: 0;
text-align: center;
2022-06-14 23:42:17 +00:00
}
.candidate_program {
margin: 5px 0;
2022-06-14 23:42:17 +00:00
}
}
2022-06-14 23:42:17 +00:00
>.edit_btns {
position: absolute;
2022-06-14 23:42:17 +00:00
display: flex;
flex-direction: column;
top: $gap;
right: $gap;
gap: $gap;
> a {
width: 20px;
height: 20px;
background-color: #e9e9e9;
text-align: center;
padding: 5px;
border-radius: 25%;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
&:hover {
background-color: #d8d8d8;
}
2022-06-14 23:42:17 +00:00
}
}
2022-06-14 23:42:17 +00:00
}
}
2022-06-14 23:42:17 +00:00
}
}
2022-06-14 23:42:17 +00:00
}
}
2022-06-14 23:42:17 +00:00
}
.election_details {
margin: .5em 0;
2022-06-14 23:42:17 +00:00
}
.buttons {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: $gap;
2022-06-14 23:42:17 +00:00
}
.button {
border: none;
color: black;
text-decoration: none;
background-color: #f2f2f2;
padding: 0.4em;
margin: 0.1em;
font-size: 1.18em;
border-radius: 5px;
box-shadow: #dfdfdf 0px 0px 1px;
cursor: pointer;
&:hover {
2022-06-14 23:42:17 +00:00
color: black;
background: #d4d4d4;
}
2022-06-14 23:42:17 +00:00
&_send {
background-color: #59aee2;
2022-06-14 23:42:17 +00:00
&:hover {
background-color: rgb(130, 186, 235);
2022-06-14 23:42:17 +00:00
}
}
2022-06-14 23:42:17 +00:00
}