The working basics

This commit is contained in:
Godwin
2014-03-09 14:43:33 -06:00
parent b490a97852
commit db60933506
628 changed files with 81918 additions and 1060 deletions
+354 -22
View File
@@ -4,38 +4,370 @@
*/
#main-container, #footer, #nav-inner {
max-width: $large-screen;
margin: 0 auto;
html, #footer .container {
background-color: $primary-color
}
$body-background-color: #EEE;
$main-container-background-color: #F4F4F4;
$content-background-color: #FFF;
$layout-border-color: #DDD;
body {
background-color: $body-background-color;
height: auto;
}
#main-container {
background-color: $main-container-background-color;
border: 1px solid $layout-border-color;
border-top: 0;
#footer {
//margin-top: 5em;
}
#main {
border-right: 1px solid $layout-border-color;
padding: 0;
main {
padding-bottom: 5em;
background-color: $white;
body.page-style-form & {
//background-color: $color-5;
}
.no-banner & {
//border-top: 0.25em solid $primary-color;
}
/*.no-banner &:before {
content: '///////////////';
color: #CCC;
font-weight: 100;
font-family: $header-font-family;
letter-spacing: 0.33333em;
font-size: 1em;
text-align: center;
display: block;
font-style: italic;
}*/
}
article.content {
background-color: $content-background-color;
border-left: 1px solid $layout-border-color;
$body-background-color: $white;
//$main-container-background-color: #F4F4F4;
//$content-background-color: #FFF;
//$layout-border-color: #DDD;
$translation-control-background-color: $black !default;
$translation-control-text-color: $black !default;
#translation-control {
position: fixed;
padding: 0.75em;
background-color: $translation-control-background-color;
height: 3.75em;
overflow: visible;
z-index: 2;
width: 100%;
top: 0;
.row {
max-width: none;
}
select, button {
height: 2.66667em;
margin: 0;
}
select {
}
textarea {
margin: 0 0 0.5em;
min-height: 2.66667em;
}
button {
line-height: 0em;
font-size: 0.875em;
}
input, label {
margin: 0.75em 0 0 0.5em;
}
+ .top-bar {
margin-top: 3.75em;
}
}
#translatepluralizations {
display: none;
background-color: $translation-control-background-color;
color: $translation-control-text-color;
padding: 0.5em;
#article-header {
border-bottom: 1px solid $layout-border-color;
padding: 0;
label {
color: inherit;
}
}
#translatevars {
display: none;
//position: absolute;
background-color: $translation-control-background-color;
color: $translation-control-text-color;
z-index: 1;
padding: 0.5em;
//margin-top: 0.5em;
ul {
list-style: none;
margin: 0;
display: inline-block;
}
li {
font-family: monospace;
font-size: 0.9em;
display: inline-block;
margin-right: 0.5em;
&:before {
content: '%{';
}
&:after {
content: '}';
}
&.used {
text-decoration: line-through;
}
}
}
#banner {
//min-height: 5em;
//background-color: rgba($black, 0.125);
position: relative;
color: $black;
//border-top: 0.25em solid $primary-color;
padding: 1em 0;
margin-bottom: 2.5em;
text-align: center;
&.has-image {
padding: 0;
margin-bottom: 5em;
color: #FFF;
background-size: cover;
background-position: center 75%;
min-height: 25em;
box-shadow: inset 0 10em 50em -5em #000;
text-shadow: 0 0.1em 0.75em #000;
text-align: left;
&:before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
background-color: $primary-color;
opacity: 0.5;
}
&:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 1.1em;
background-image: linear-gradient(45deg, $white 25%, transparent 25%), linear-gradient(-45deg, transparent 75%, $white 75%);
background-image: -ms-linear-gradient(45deg, $white 25%, transparent 25%), -ms-linear-gradient(-45deg, transparent 75%, $white 75%);
background-image: -moz-linear-gradient(56deg, $white 25%, transparent 25%), -moz-linear-gradient(-56deg, transparent 75%, $white 75%);
background-image: -ms-linear-gradient(56deg, $white 25%, transparent 25%), -ms-linear-gradient(-56deg, transparent 75%, $white 75%);
background-image: -webkit-linear-gradient(56deg, $white 20%, transparent 25%), -webkit-linear-gradient(-56deg, transparent 75%, $white 80%);
background-repeat: repeat-x;
background-size: 1.25em 1.1em;
background-position: 0 bottom;
//padding-top: 0.6em;
//margin-top: 5em;
}
body.organizations & {
border-color: $organization-color;
&:before {
background-color: $organization-color;
}
&.has-image {
h1 {
color: #FFF;
}
h2 {
color: #CCC;
}
}
}
.page-style-emphasize-banner & {
padding-top: $topbar-height;
}
h1 {
color: $color-3;
}
h2, em {
color: $color-2;
}
}
figure img {
margin-bottom: -2.5em;
box-shadow: 0 0.1em 0.75em #000;
position: relative;
z-index: 1;
}
h1, h2 {
line-height: 1em;
}
.info {
padding-top: 5%;
}
p {
line-height: 1.3333em;
margin-top: 1.5em;
//box-shadow: 0 0 5em 1em #000;
//background-color: rgba(#000, 0.7);
//border-radius: 1em;
}
.button {
color: inherit;
background-color: $primary-color;// rgba(0, 0, 0, 0.75);
}
}
.top-bar {
.name h1 a {
text-shadow:
0 -3px $black, 0 1px $black,
0 3px $color-1, 0 4px $black,
0 6px $color-2, 0 7px $black,
0 9px $color-3, 0 10px $black,
0 12px $color-4, 0 13px $black,
0 15px $color-5, 0 16px $black;
-webkit-transition: text-shadow 333ms ease-in-out;
-moz-transition: text-shadow 333ms ease-in-out;
-ms-transition: text-shadow 333ms ease-in-out;
transition: text-shadow 333ms ease-in-out;
line-height: 2em;
padding-left: 0;
&:hover {
text-shadow:
0 0 $black, 0 0 $black,
0 0 $color-1, 0 0 $black,
0 0 $color-2, 0 0 $black,
0 0 $color-3, 0 0 $black,
0 0 $color-4, 0 0 $black,
0 0 $color-5, 0 0 $black;
}
}
.top-bar-section ul li > a {
text-transform: uppercase;
font-weight: 800;
font-size: 1em;
&.button {
background-color: transparent;
margin: 1em 0;
color: $white;
border: 1px solid;
}
}
.user-profile {
padding: 0;
a {
padding: 0em 0.75em;
}
img {
width: 2.25em;
border-radius: 33%;
}
}
.has-form {
padding: 0;
&.sign-out a.button {
font-size: 0.6em;
margin-top: 2.25em;
}
}
.page-style-emphasize-banner & {
position: absolute;
left: 0;
right: 0;
z-index: 1;
text-shadow: 0 0.1em 0.75em #000;
}
}
.centered {
text-align: center;
}
select.cant {
display: none;
}
body.organizations-show {
main > nav .tabs {
position: relative;
top: -2em;
}
}
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.75);
text-align: center;
#overlay-inner {
text-align: center;
display: inline-block;
background-color: $black;
padding: 2em;
margin: 5% 0 0 0;
padding-top: 0;
box-shadow: 0 0 1em #000;
}
&.user-select {
#overlay-inner {
min-width: 50%;
}
}
}
.user-preview {
display: inline-block;
margin: 0.5em;
position: relative;
label {
position: absolute;
bottom: 0;
left: 0;
right: 0;
color: #FFF;
background-color: rgba(#000, 0.5);
}
}
@@ -4,3 +4,532 @@
*/
$translate-me-bgcolor: rgba(255, 0, 0, 0.25) !default;
$translate-me-outline-color: rgba(255, 0, 0, 0.5) !default;
.translate-me {
cursor: url(translate_cursor-32.png) 8 31, auto;
&.untranslated {
background-color: $translate-me-bgcolor;
@include opacity(0.5);
}
&:hover,
&.selected {
@include opacity(1);
outline: 2px solid $translate-me-outline-color;
outline-offset: 0;
outline-style: dashed;
}
&.preview {
background-color: inherit;
outline-style: solid;
-webkit-animation: preview-translation 2s infinite;
}
}
@-webkit-keyframes preview-translation {
0% {
outline-color: rgba(0, 255, 0, 1);
}
50% {
outline-color: rgba(0, 255, 0, 0);
}
100% {
outline-color: rgba(0, 255, 0, 1);
}
}
.button, button, input[type="file"] {
background-color: rgba($white, 0.5);
border-radius: 1.5em;
color: $primary-color;
border: 1px solid;
padding: 0.75em 1.5em;
text-transform: uppercase;
text-shadow: none;
&:hover {
color: #FFF;
}
}
input[type="file"] {
display: none;/*inline-block;
width: auto;
text-align: center;
-webkit-appearance: none;
background-color: #FFF;
border-radius: 1.5em;
padding: 0.6em 0;
cursor: pointer;
font-family: $button-font-family;
outline: none;
&:hover {
background-color: $primary-color;
}
&::-webkit-file-upload-button {
visibility: none;
opacity: 0;
width: 0;
}*/
}
input[type="date"] {
&:invalid {
color: #CCC;
}
}
h2 {
line-height: 1em;
margin-bottom: 0.5em;
}
select {
border: 1px solid #CCC;
border-radius: 0.2em;
font-size: 1.25em;
font-family: $body-font-family;
color: rgba($black, 0.75);
padding: 0 0.5em;
height: 2em;
box-shadow: 0 2px #CCC;
outline: 0;
background-color: #FFF;
&.small {
font-size: 0.8em;
margin: 0 0 0.25em;
box-shadow: none;
}
}
fieldset {
background-color: #FFF;
legend {
margin-left: -2em;
font-family: $header-font-family;
}
}
.field {
margin-bottom: 1em;
position: relative;
//border: 1px solid #CCC;
//border-radius: 1.25em 0 0 1.25em;
//overflow: hidden;
label {
//float: left;
font-family: $header-font-family;
line-height: 2.5em;
//margin-right: 1em;
//background-color: rgba(#FFF, 0.2);
//color: $white;
display: inline-block;
position: absolute;
top: 100%;
margin: -1.333em 1.75em 0;
span {
padding: 0 1em;
font-size: 0.9em;
}
}
div {
//border: 1px solid #EEE;
//border-width: 1px 0 0 1px;
}
input, select, button {
//margin: 0;
height: auto;
line-height: 1em;
padding: 0.333em 0.5em;
}
input:not([type="file"]) {
border-bottom: 1px dashed #CCC;
line-height: 1.25em;
}
textarea {
border: 1px dashed #CCC;
height: 10em;
font-size: 1.25em;
}
&.text-area {
label {
top: 1px;
right: 1px;
bottom: 1px;
left: 1px;
display: block;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: rgba(255, 255, 255, 0.5);
text-align: center;
width: calc(100% - 2px);
height: calc(100% - 2px);
span {
position: relative;
top: 50%;
text-align: center;
font-size: 1.25em;
font-weight: 600;
margin: -1em 0 0;
padding: 0 0.5em;
display: inline-block;
border-radius: 0.5em;
box-shadow: 0 0 1em;
}
}
textarea:focus + label {
display: none;
}
.medium-8 > & {
font-size: 0.75em;
}
}
input, select, button, label span {
background-color: $white;
color: #333;
}
&.field-slug {
position: absolute;
top: 100%;
right: 0;
left: 50%;
margin-top: -0.875em;
margin-right: 0.9em;
margin-left: 10em;
z-index: 1;
input {
font-size: 1em;
padding-bottom: 0;
background-color: $gray;
}
label {
margin-top: -3em;
right: 100%;
margin-right: 0;
}
}
&.image-field {
label {
position: relative;
margin: 0;
border-bottom: 1px dotted #CCC;
padding-bottom: 1.3em;
text-align: center;
> span {
position: absolute;
background-color: transparent;
left: 0;
right: 0;
}
&:hover {
img {
@include opacity(0.75);
}
}
}
}
&.check-box {
div {
float: left;
font-size: 1.75em;
//display: none;
/*input {
-webkit-appearance: none;
}
&:before {
content: '';
width: 1em;
height: 1em;
display: inline-block;
border: 1px solid #CCC;
line-height: 0.75em;
text-align: center;
font-size: 1.6667em;
border-radius: 0.2em;
box-shadow: 0 1.9px #CCC;
content: '✓';
}*/
}
label {
position: relative;
margin: 0;
display: inline-block;
}
}
&.select {
overflow: auto;
label {
position: static;
margin: 0;
float: left;
& + div {
float: left;
}
}
}
&.user-select-field,
&.organization-select-field {
display: inline-block;
position: relative;
border: 1px solid #CCC;
padding: 0.25em;
margin: 1em 1em 0;
border-radius: 0.25em;
float: left;
box-shadow: 0 2px #CCC;
overflow: hidden;
label {
display: block;
position: relative;
margin: 0 auto;
}
input[type="checkbox"] {
position: absolute;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
appearance: none;
width: 100%;
width: calc(100% - 0.6em);
height: 9em;
border: 0;
background-color: transparent;
cursor: pointer;
outline: none;
+ label {
display: none;
width: 100%;
width: calc(100% - 0.06em);
height: 0.94em;
font-size: 8em;
position: absolute;
top: 0.03em;
left: 0.03em;
color: $white;
line-height: 0.75em;
text-align: center;
text-shadow: 0 2px 0px $black;
}
&:checked {
+ label {
background-color: rgba($warning-color, 0.5);
display: block;
text-shadow: 0 2px 0px $warning-color;
}
}
&:hover {
+ label {
display: block;
color: $warning-color;
}
}
}
&.new {
input[type="checkbox"],
input[type="checkbox"] + label {
display: none;
}
}
img {
display: block;
}
.select-user,
.select-organization {
margin-bottom: 0.5em;
display: block;
}
.remove-item {
position: absolute;
top: 0;
right: 0;
&:before {
content: '';
height: 0;
width: 0;
border-width: 0 2.5em 2.5em 0;
border-color: transparent $black;
border-style: solid;
position: absolute;
right: 0;
top: 0;
}
&:after {
content: '×';
color: $white;
position: absolute;
right: 0;
top: 0;
width: 1.5em;
height: 1.25em;
text-align: center;
line-height: 1.25em;
}
}
}
}
form > div:first-child + .columns:not([class*="medium-"]) {
margin-top: 1em;
margin-bottom: 3em;
> .field:first-child {
text-align: center;
label {
//margin-left: 0;
//margin-right: 0;
left: 0;
right: 0;
}
input {
font-size: 3em;
text-align: center;
}
}
//+ .columns[class*="medium-"] {//+ .columns[class*="medium-"] {
//padding-top: 1em;
//}
}
.actions {
text-align: center;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
font-style: italic;
color: rgba(0, 0, 0, 0.25);
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
font-style: italic;
color: rgba(0, 0, 0, 0.25);
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
font-style: italic;
color: rgba(0, 0, 0, 0.25);
}
::-webkit-input-placeholder {
font-style: italic;
color: rgba(0, 0, 0, 0.25);
}
input:-webkit-autofill {
-webkit-box-shadow:0 0 0 5em $input-bg-color inset; /* Change the color to your own background color */
-webkit-text-fill-color: $input-font-color;
&:focus {
-webkit-box-shadow: 0 0 0 2em $input-focus-bg-color inset; /* Change the color to your own background color */
}
}
.tabs {
display: inline-block;
border: 1px solid #CCC;
margin: 1em 0;
box-shadow: 0 0.1em 0 #CCC;
border-radius: 0.25em;
overflow: hidden;
font-family: $header-font-family;
.tab {
border-right: 1px solid #CCC;
display: inline-block;
//padding: 0.25em 1em 0.3333em 0.75em;
padding: 0.5em 1.5em 0.5em 1.25em;
background-color: #FFF;
color: $black;
float: left;
&.current {
background-color: #EEE;
background-color: #EEE;
}
&:hover {
background-color: #DDD;
color: $black;
}
&:last-child {
border: 0;
}
}
}
.sub-tabs {
background-color: #E1E1E1;
padding: 1em;
margin-bottom: 2em;
a {
display: block;
position: relative;
padding: 1em;
margin: 1px 0;
height: 3.1em;
font-size: 1.1em;
font-family: $header-font-family;
color: $white;
background-color: $black;
text-transform: uppercase;
&.current {
background-color: $primary-color;
&:after {
content: '';
position: absolute;
top: 0;
left: 100%;
width: 0;
height: 0;
border: 1.55em solid $primary-color;
border-color: transparent transparent transparent $primary-color;
border-width: 1.55em 0 1.55em 1.55em;
}
}
}
}