summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/base/datefield
diff options
context:
space:
mode:
authorMarc Englund <marc@vaadin.com>2012-09-28 17:05:09 +0300
committerMarc Englund <marc@vaadin.com>2012-09-28 17:05:09 +0300
commitd68d89de07ff79ec8629e3aa8c8310f1aa4a237d (patch)
treeba7f2dac03d0639a9f791503534479790d7713d5 /WebContent/VAADIN/themes/base/datefield
parenta499ccaa61a8aa72a1ca4334e5ba3becc6ecfb79 (diff)
downloadvaadin-framework-d68d89de07ff79ec8629e3aa8c8310f1aa4a237d.tar.gz
vaadin-framework-d68d89de07ff79ec8629e3aa8c8310f1aa4a237d.zip
Sass restructure: base theme with renameable components
Diffstat (limited to 'WebContent/VAADIN/themes/base/datefield')
-rw-r--r--WebContent/VAADIN/themes/base/datefield/datefield.scss56
1 files changed, 28 insertions, 28 deletions
diff --git a/WebContent/VAADIN/themes/base/datefield/datefield.scss b/WebContent/VAADIN/themes/base/datefield/datefield.scss
index bf95baa3e6..a2975a2c06 100644
--- a/WebContent/VAADIN/themes/base/datefield/datefield.scss
+++ b/WebContent/VAADIN/themes/base/datefield/datefield.scss
@@ -1,90 +1,90 @@
-@mixin base-datefield {
+@mixin base-datefield($name : v-datefield) {
-.v-datefield {
+.#{$name} {
white-space: nowrap;
display: inline-block; /* Force minimum width */
}
-.v-datefield-textfield {
+.#{$name}-textfield {
vertical-align: top;
}
-.v-datefield-button {
+.#{$name}-button {
cursor: pointer;
}
-.v-datefield-prompt .v-datefield-textfield {
+.#{$name}-prompt .#{$name}-textfield {
color: #999;
font-style: italic;
}
-.v-datefield .v-datefield-button-readonly {
+.#{$name} .#{$name}-button-readonly {
display: none;
}
-.v-datefield-calendarpanel table {
+.#{$name}-calendarpanel table {
width: 100%;
}
-.v-datefield-calendarpanel td {
+.#{$name}-calendarpanel td {
padding: 0;
margin: 0;
}
-.v-datefield-calendarpanel:focus {
+.#{$name}-calendarpanel:focus {
outline:none;
}
-.v-datefield-calendarpanel-header td {
+.#{$name}-calendarpanel-header td {
text-align: center;
}
-.v-datefield-calendarpanel-month {
+.#{$name}-calendarpanel-month {
text-align: center;
white-space: nowrap;
}
-.v-datefield-calendarpanel-weeknumber {
+.#{$name}-calendarpanel-weeknumber {
color: #999;
border-right: 1px solid #ddd;
font-size: 0.9em;
}
-.v-datefield-calendarpanel-day,
-.v-datefield-calendarpanel-day-today {
+.#{$name}-calendarpanel-day,
+.#{$name}-calendarpanel-day-today {
cursor: pointer;
}
-.v-datefield-calendarpanel-day-today {
+.#{$name}-calendarpanel-day-today {
border: 1px solid #ddd;
}
-.v-disabled .v-datefield-calendarpanel-day,
-.v-disabled .v-datefield-calendarpanel-day-today {
+.v-disabled .#{$name}-calendarpanel-day,
+.v-disabled .#{$name}-calendarpanel-day-today {
cursor: default;
}
-.v-datefield-calendarpanel-day-disabled {
+.#{$name}-calendarpanel-day-disabled {
cursor: default;
opacity: .5;
}
-.v-datefield-calendarpanel-day-selected {
+.#{$name}-calendarpanel-day-selected {
cursor: default;
background: #333;
color: #fff;
}
-.v-datefield-calendarpanel-day-focused {
+.#{$name}-calendarpanel-day-focused {
outline: 1px dotted black;
}
-.v-datefield-calendarpanel-day-offmonth {
+.#{$name}-calendarpanel-day-offmonth {
color: #666;
}
-.v-datefield-time {
+.#{$name}-time {
white-space: nowrap;
}
-.v-datefield-time .v-label {
+.#{$name}-time .v-label {
display: inline;
}
-.v-datefield-popup {
+.#{$name}-popup {
background: #fff;
}
/* Disabled by default
-.v-datefield-error .v-textfield,
-.v-datefield-error .v-datefield-calendarpanel {
+.#{$name}-error .v-textfield,
+.#{$name}-error .#{$name}-calendarpanel {
background: #ffe0e0;
}
*/
/* Disabled by default
-.v-datefield-required .v-textfield,
-.v-datefield-required .v-datefield-calendarpanel {
+.#{$name}-required .v-textfield,
+.#{$name}-required .#{$name}-calendarpanel {
background:transparent;
background-color: #ffe0e0;
}