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

192 lines
3.9 KiB
SCSS
Raw Normal View History

2015-06-04 17:21:38 +02:00
$ascribe-accordion-list-item-height: 8em;
2015-07-28 17:19:19 +02:00
.ascribe-accordion-list {
padding-left: 15px;
padding-right: 15px;
}
.ascribe-accordion-list-item {
2015-06-17 19:50:52 +02:00
background-color: white;
border: 1px solid black;
height: $ascribe-accordion-list-item-height;
2015-08-31 19:04:44 +02:00
padding-left: 0;
padding-right: 0;
2015-07-09 16:53:10 +02:00
margin-top: 1.5em;
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-07-01 15:28:48 +02:00
cursor: pointer;
2015-08-31 19:04:44 +02:00
height: 110px;
padding: 0;
text-align: center;
2015-08-31 19:04:44 +02:00
width: 110px;
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-06-30 16:53:22 +02:00
&::before {
2015-08-31 19:04:44 +02:00
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
a:not(.btn) {
2015-07-01 19:05:47 +02:00
color: #666;
}
2015-08-31 19:04:44 +02:00
}
}
2015-07-13 14:19:22 +02:00
.accordion-list-item-header {
2015-08-31 19:04:44 +02:00
margin-top: .65em;
2015-07-13 14:19:22 +02:00
> a {
text-decoration: none;
}
}
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-08-31 19:04:44 +02:00
color: #444;
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-color-green;
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-color-green;
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-color-green;
}
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
}