mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
106 lines
5.5 KiB
SCSS
106 lines
5.5 KiB
SCSS
|
@import "settings";
|
||
|
|
||
|
// root widget area editor container
|
||
|
.WidgetAreaEditor {
|
||
|
h2 {
|
||
|
|
||
|
}
|
||
|
p {
|
||
|
margin-bottom: 15px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// base styles for a widget
|
||
|
.Widget {
|
||
|
padding: 0 7px 7px 7px;
|
||
|
margin: 16px 0 16px 0;
|
||
|
color: #1f1f1f;
|
||
|
background-color: #b0bec7;
|
||
|
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2IwYmVjNyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzkyYTViMiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
|
||
|
background-size: 100%;
|
||
|
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #b0bec7), color-stop(100%, #92a5b2));
|
||
|
background-image: -webkit-linear-gradient(#b0bec7, #92a5b2);
|
||
|
background-image: -moz-linear-gradient(#b0bec7, #92a5b2);
|
||
|
background-image: -o-linear-gradient(#b0bec7, #92a5b2);
|
||
|
background-image: linear-gradient(#b0bec7, #92a5b2);
|
||
|
border-top: 1px solid #c2cdd4;
|
||
|
border-bottom: 1px solid #748d9d;
|
||
|
@include border-radius(3px);
|
||
|
h3 {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
line-height: 40px;
|
||
|
text-shadow: #bfcad2 1px 1px 0;
|
||
|
@include transition-property(background-image);
|
||
|
@include transition-duration(0.2s);
|
||
|
@include transition-timing-function(ease-out);
|
||
|
}
|
||
|
.widgetDescription {
|
||
|
background: #eceff1;
|
||
|
padding: 5px 5px 1px 5px;
|
||
|
margin: 0;
|
||
|
@include border-radius(3px);
|
||
|
}
|
||
|
.widgetFields {
|
||
|
background: #eceff1;
|
||
|
padding: 5px;
|
||
|
margin: 7px 0 0 0;
|
||
|
@include border-radius(3px);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// container for available widgets
|
||
|
.availableWidgetsHolder {
|
||
|
width: 38%;
|
||
|
float: left;
|
||
|
}
|
||
|
|
||
|
.availableWidgets {
|
||
|
.Widget {
|
||
|
h3 {
|
||
|
cursor: pointer;
|
||
|
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABR0RVh0Q3JlYXRpb24gVGltZQAxLzUvMTOqzuI/AAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAA8tJREFUSImdlk1MHGUYx38zO7u4s18sC10DBItFEEttUAmaTtFTJ34c9MBc/Iw99qDRHjx6682D9lBvatJotibGaGrWg4k6mgBWuggWKA1oKcm2wLJfs7A7s+OB3XRZ2Q/4n2ae9//+/8/zJu/zvAIHQCSqB4CHAAtY0VQl22iPbdsACE2Iq8C7wGkBCpIkLQOCaZpduxLEgE+Bq5qqGAc2ikT1l4GPXE5pqzscynaHQ49LDoe/kmNaVmo1vjGzGt/w5AumG/gQ+EZTlXxDo0hUDw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euK7LU5FE1B9ALNADG9H6Rf2jg2iJJjRuBP6rWuZ6fv+PVrjSms8sE4rUD70x5VG0/sMI/PMiZY+9Z5rk1zltTtc5VBviMwFWL1eZYJJM5SMSiOtAKFCei0by3DsBstpQDfoMiS7cMBkM4X1uZh+JCSGJl9UiR0Rjdua05kXmw53bsaru1BKGCsGNX2zjwITzoDF86RKczX1X+oQEz8BTQ+nc4ZMzFXbl6TdghOmuAryFrHnlUbe90KtXR+eae2lwBMsnk6yTdJ84OlppMJ3duaz6VXRFAb0lpqbe9q0fLFSAUGK3JJ9Le1aOVmkw/KbJ0KmNbaJR/Fw4FVyxnwprMlsjrHZ0+h+i8C+xWZGnyfxM2C3scovPGoaMf33G5632Firjc9b7O908EHKLTC+xSZGlOW8v1C3oWOByLRlJ9l9Xk9au/VE7cHp/z3kxmS0Tasq2/eYtstdnLjMDbiixdzOYs5V/XCuwHJGBVLBoZFAQBq83uAiYADTipyNLPC/lnhP4FKHOWW0c+c/gAAAAASUVORK5CYII=');
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// container for used widgets
|
||
|
.usedWidgetsHolder {
|
||
|
width: 60%;
|
||
|
float: right;
|
||
|
}
|
||
|
|
||
|
.usedWidgets {
|
||
|
.Widget {
|
||
|
h3 {
|
||
|
cursor: move;
|
||
|
}
|
||
|
.deleteWidget {
|
||
|
text-align: right;
|
||
|
padding-top: 11px;
|
||
|
margin-bottom: 3px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.noWidgets {
|
||
|
|
||
|
}
|
||
|
|
||
|
// one column layout when space is limited
|
||
|
@media only screen and (max-width: 1279px) {
|
||
|
.availableWidgetsHolder {
|
||
|
width: 100%;
|
||
|
float: none;
|
||
|
margin-bottom: 20px;
|
||
|
}
|
||
|
.usedWidgetsHolder {
|
||
|
width: 100%;
|
||
|
float: none;
|
||
|
}
|
||
|
}
|