react-toolbox/spec/style.scss

134 lines
2.2 KiB
SCSS
Raw Normal View History

2015-11-22 09:01:49 +03:00
@import "../components/commons";
2015-11-04 12:55:08 +03:00
@import "../components/app_bar/config";
@import "../components/button/config";
2015-11-03 09:54:10 +03:00
$offset: 1.8 * $unit;
2015-11-04 12:55:08 +03:00
.app {
@include no-webkit-scrollbar;
2016-02-07 21:51:04 +03:00
padding: ($appbar-height + 2) $offset $offset;
2015-11-03 09:54:10 +03:00
background-color: #f5f5f5;
2015-11-28 15:28:37 +03:00
> section, > div > section {
2015-11-03 09:54:10 +03:00
padding: $offset;
margin-bottom: $offset;
2015-11-28 15:28:37 +03:00
background-color: #fff;
2015-11-03 09:54:10 +03:00
box-shadow: 0 1px 2px rgba(0,0,0, 0.25);
> h5 {
color: rgb(48, 63, 159);
&:not(:first-child) {
margin-top: 2 * $offset;
}
}
> p {
margin: ($offset / 4) 0;
opacity: .6;
}
2016-04-10 22:04:49 +03:00
[data-react-toolbox="card"] {
2015-11-03 09:54:10 +03:00
display: inline-block;
margin: $offset $offset 0 0;
}
}
2015-11-03 09:54:10 +03:00
}
2015-11-04 12:55:08 +03:00
.github {
position: fixed;
top: $appbar-height - ($button-floating-height / 2);
right: $button-floating-height / 2;
z-index: $z-index-higher;
}
2015-11-05 13:28:42 +03:00
.appbar {
2016-04-12 22:41:28 +03:00
z-index: 999 !important;
2015-11-03 09:54:10 +03:00
display: flex;
> h1 {
flex-grow: 1;
font-size: 1.8 * $unit;
font-weight: bold;
> small {
font-size: 1.8 * $unit;
font-weight: normal;
}
}
}
2015-11-22 04:43:18 +03:00
.primary {
2015-11-22 09:01:49 +03:00
background-color: $color-primary;
2015-11-22 04:43:18 +03:00
}
2015-11-28 15:28:37 +03:00
.cards {
margin-top: 10px;
2015-11-28 17:51:53 +03:00
background-color: #f8f8f8;
2015-11-28 15:28:37 +03:00
border: 1px solid #f4f4f4;
}
.cardsGroup {
2015-11-28 17:51:53 +03:00
position: relative;
display: flex;
2015-11-22 04:43:18 +03:00
flex-wrap: wrap;
align-items: stretch;
2015-11-28 17:51:53 +03:00
justify-content: center;
padding: 20px;
list-style: none;
}
2015-11-28 15:28:37 +03:00
.cardRow {
display: flex;
2015-11-28 15:28:37 +03:00
align-items: flex-start;
justify-content: space-between;
2015-11-28 15:28:37 +03:00
.media {
width: 80px;
height: 80px;
margin: 16px 16px 0 0;
}
.mediaLarge {
width: 140px;
height: 140px;
margin: 16px;
}
}
.cardItem {
display: flex;
flex-direction: column;
align-items: center;
2015-11-28 15:28:37 +03:00
justify-content: space-between;
margin: 0 20px;
}
2015-11-28 15:28:37 +03:00
.cardItemContent {
display: flex;
flex-direction: column;
align-items: center;
2015-11-28 15:28:37 +03:00
justify-content: center;
}
2015-11-28 15:28:37 +03:00
.cardItemName {
display: block;
2015-11-29 14:45:10 +03:00
margin: 15px 0;
text-align: center;
}
.card {
width: 345px;
}
2015-11-28 17:49:05 +03:00
.dropdownTemplate {
display: flex;
2015-11-28 17:51:53 +03:00
flex-direction: row;
2015-11-28 17:49:05 +03:00
}
.dropdownTemplateImage {
display: flex;
width: 32px;
height: 32px;
2015-11-28 17:51:53 +03:00
flex-grow: 0;
2015-11-28 17:49:05 +03:00
margin-right: 8px;
2015-11-28 17:51:53 +03:00
background-color: #ccc;
2015-11-28 17:49:05 +03:00
}
.dropdownTemplateContent {
display: flex;
flex-direction: column;
2015-11-28 17:51:53 +03:00
flex-grow: 2;
2015-11-28 17:49:05 +03:00
}