1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00
onion/sass/ascribe_accordion_list.scss

222 lines
4.5 KiB
SCSS
Raw Normal View History

2015-10-09 02:00:02 +02:00
$ascribe-accordion-list-item-height: 100px;
2015-07-28 17:19:19 +02:00
.ascribe-accordion-list {
padding-left: 15px;
padding-right: 15px;
}
.ascribe-accordion-list-placeholder {
margin-top: 1em;
}
.ascribe-accordion-list-item {
2015-06-17 19:50:52 +02:00
background-color: white;
border: 1px solid black;
2015-10-09 02:00:02 +02:00
height: $ascribe-accordion-list-item-height + 2px;
2015-08-31 19:04:44 +02:00
padding-left: 0;
padding-right: 0;
2015-10-09 02:00:02 +02:00
margin-top: 1.2em;
2015-08-31 19:04:44 +02:00
overflow: hidden;
border-radius: 1px;
border-left: .1em solid rgba(0, 0, 0, .2);
border-right: .1em solid rgba(0, 0, 0, .2);
border-top: .1em solid rgba(0, 0, 0, .2);
border-bottom: .1em solid rgba(0, 0, 0, .2);
&::first-child {
2015-08-31 19:04:44 +02:00
margin-top: 0;
}
.wrapper {
2015-08-31 19:04:44 +02:00
height: 100%;
width: 100%;
&:hover {
background-color: rgba(2, 182, 163, .05);
2015-07-02 14:12:54 +02:00
}
2015-08-31 19:04:44 +02:00
// ToDo: Include media queries for thumbnail
.thumbnail-wrapper {
2015-10-09 02:00:02 +02:00
margin-right: 2em;
width: $ascribe-accordion-list-item-height;
height: $ascribe-accordion-list-item-height;
2015-07-01 15:28:48 +02:00
cursor: pointer;
2015-08-31 19:04:44 +02:00
padding: 0;
text-align: center;
2015-08-31 19:04:44 +02:00
img {
2015-06-30 16:53:22 +02:00
max-height: 100%;
2015-08-31 19:04:44 +02:00
max-width: 100%;
}
2015-08-31 19:04:44 +02:00
2015-10-16 13:00:19 +02:00
div {
2015-08-31 19:04:44 +02:00
display: inline-block;
2015-10-16 13:00:19 +02:00
width: 100px;
height: 100px;
background-position: center center;
background-size: cover;
2015-08-31 19:04:44 +02:00
}
2015-10-16 13:00:19 +02:00
//&::before {
// content: ' ';
// display: inline-block;
// height: 100%;
// vertical-align: middle; // vertical alignment of the inline element
//}
}
2015-08-31 19:04:44 +02:00
2015-06-03 16:48:31 +02:00
h1 {
2015-07-01 15:28:48 +02:00
cursor: pointer;
2015-08-31 19:04:44 +02:00
font-size: 2.2em;
margin: .1em 0;
2015-07-27 18:19:55 +02:00
overflow: hidden;
text-overflow: ellipsis;
2015-08-31 19:04:44 +02:00
white-space: nowrap;
2015-06-03 16:48:31 +02:00
}
2015-08-31 19:04:44 +02:00
2015-06-03 16:48:31 +02:00
h3 {
cursor: pointer;
2015-08-31 19:04:44 +02:00
font-size: 1.3em;
margin: .2em 0 .3em;
overflow: hidden;
text-overflow: ellipsis;
2015-08-31 19:04:44 +02:00
white-space: nowrap;
}
2015-08-31 19:04:44 +02:00
2015-10-09 13:14:29 +02:00
a {
text-decoration: none
};
2015-08-31 19:04:44 +02:00
}
}
2015-07-13 14:19:22 +02:00
.accordion-list-item-header {
2015-10-09 02:00:02 +02:00
margin-top: 0;
padding: 0.5em 0;
h1 {
font-size: 1.9em;
}
h3 {
font-size: 1.1em;
margin-top: 0.4em;
}
2015-07-13 14:19:22 +02:00
2015-10-09 13:14:29 +02:00
}
2015-10-09 02:00:02 +02:00
.accordion-list-item-buttons {
2015-10-09 13:14:29 +02:00
position: absolute;
right: 1em;
bottom: 1em;
@media (max-width: 400px) {
right: 0;
bottom: 0;
}
2015-10-09 02:00:02 +02:00
}
2015-06-16 09:57:14 +02:00
.ascribe-accordion-list-loading img {
display: block;
margin: auto;
}
.ascribe-accordion-list-item-table {
2015-08-31 19:04:44 +02:00
background-color: white;
border-bottom: .1em solid rgba(0, 0, 0, .15);
border-left: .1em solid rgba(0, 0, 0, .2);
border-right: .1em solid rgba(0, 0, 0, .2);
2015-06-17 19:50:52 +02:00
font-size: .9em;
2015-08-31 19:04:44 +02:00
padding: 0;
text-align: center;
2015-07-02 14:12:54 +02:00
thead:first-child {
2015-08-31 19:04:44 +02:00
border-bottom: 1px solid rgba(0, 0, 0, .05);
border-left: 3px solid rgba(0, 0, 0, 0);
2015-07-02 14:12:54 +02:00
tr:first-child {
2015-08-31 19:04:44 +02:00
border: none !important;
2015-07-08 11:29:48 +02:00
th {
2015-08-31 19:04:44 +02:00
border: none !important;
2015-07-02 14:12:54 +02:00
padding-left: 10px;
}
}
}
2015-08-31 19:04:44 +02:00
2015-07-02 14:12:54 +02:00
tbody {
tr {
2015-08-31 19:04:44 +02:00
border-bottom: 1px solid rgba(0, 0, 0, .03);
border-left: 3px solid rgba(0, 0, 0, 0);
2015-07-02 14:12:54 +02:00
padding: 1em;
2015-08-31 19:04:44 +02:00
&:hover {
2015-07-02 14:12:54 +02:00
background-color: rgba(2, 182, 163, 0.05);
border-left: 3px solid rgba(2, 182, 163, 0.4);
}
2015-08-31 19:04:44 +02:00
2015-07-02 14:12:54 +02:00
td {
2015-08-31 19:04:44 +02:00
border: none !important;
2015-07-02 14:12:54 +02:00
a {
2015-10-16 13:30:36 +02:00
color: #222;
2015-07-02 14:12:54 +02:00
}
}
}
2015-08-31 19:04:44 +02:00
tr {
2015-07-02 14:12:54 +02:00
td:first-child {
margin-left: 10px;
}
}
}
}
2015-08-31 19:04:44 +02:00
.ascribe-accordion-list-table-toggle {
2015-07-10 15:56:54 +02:00
-khtml-user-select: none;
2015-08-31 19:04:44 +02:00
-moz-user-select: none;
2015-07-10 15:56:54 +02:00
-ms-user-select: none;
2015-08-31 19:04:44 +02:00
-webkit-user-select: none;
&:hover {
color: $ascribe-dark-blue;
2015-08-31 19:04:44 +02:00
cursor: pointer;
}
}
.ascribe-accordion-list-table-list {
margin-bottom: .5em;
2015-08-31 19:04:44 +02:00
th,
td {
font-size: .85em;
text-align: center;
}
2015-07-01 19:05:47 +02:00
}
.request-action-badge {
color: $ascribe-dark-blue;
2015-07-01 19:05:47 +02:00
font-size: 1.2em;
padding: .8em;
2015-08-31 19:04:44 +02:00
position: absolute;
right: 0;
top: 0;
}
.ascribe-accordion-list-item-edition-widget {
cursor: pointer;
-khtml-user-select: none;
2015-08-31 19:04:44 +02:00
-moz-user-select: none;
-ms-user-select: none;
2015-08-31 19:04:44 +02:00
-webkit-user-select: none;
&:hover {
color: $ascribe-dark-blue;
}
2015-08-31 19:04:44 +02:00
.glyphicon {
2015-08-31 19:04:44 +02:00
font-size: .8em;
top: 1px !important;
}
2015-08-31 19:04:44 +02:00
}