setting up bounds

This commit is contained in:
francois.lutran
2016-12-19 17:25:26 +13:00
parent 5b74289001
commit def50a1b08
7 changed files with 640 additions and 619 deletions

View File

@@ -1,21 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="author" content="Franzz" />
<link href="style/mythoughts.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/quill.min.js"></script>
<script type="text/javascript" src="scripts/functions.js"></script>
<script type="text/javascript" src="scripts/mythoughts.js"></script>
<link rel="shortcut icon" href="images/favicon2.ico" />
<title>My Thoughts</title>
</head>
<body>
<div id="container"></div>
<script type="text/javascript">
var oMyThoughts = new MyThoughts(asGlobalVars);
$(document).ready(oMyThoughts.init);
</script>
</body>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="author" content="Franzz" />
<link href="style/mythoughts.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/quill.min.js"></script>
<script type="text/javascript" src="scripts/functions.js"></script>
<script type="text/javascript" src="scripts/mythoughts.js"></script>
<link rel="shortcut icon" href="images/favicon2.ico" />
<title>My Thoughts</title>
<script type="text/javascript">
var oMyThoughts = new MyThoughts(asGlobalVars);
$(document).ready(oMyThoughts.init);
</script>
</head>
<body>
<div id="container"></div>
</body>
</html>

View File

@@ -1,130 +1,139 @@
<div id="write">
<div id="write_feedback"></div>
<div id="nav">
<a class="fa fa-prev"></a>
<span class="page_nb">1</span>
<A class="fa fa-next"></a>
</div>
<div id="editor">
<p>So, I'm there, wondering about myself and my future - such a luxury by the way - when suddenly, someone approaches. mid-40s i'd say, elegant cold women, the kind you've learned not to talk to, to eventually avoid feeling repressed, or bad for yourself, or both.</p>
<p>Anyhow, it would seem that in this particular situation, the choice wasn't given to me to decide whether or not to talk to that precise women. She seats down next to me and engage a conversation. 'How is it you're here today?' I'm already regretting not having gone away when i still had the chance.</p>
<p>'Hello to you too' I say, still willing to show some manhood, even though I already know this women crushes manhood by pairs as a breakfast ritual.</p>
<p>In-extremist, I manage to babble some excuses about a rigorous lunch break time and leave the premises.</p>
<p>So, I'm there, wondering about myself and my future - such a luxury by the way - when suddenly, someone approaches. mid-40s i'd say, elegant cold women, the kind you've learned not to talk to, to eventually avoid feeling repressed, or bad for yourself, or both.</p>
<p>Anyhow, it would seem that in this particular situation, the choice wasn't given to me to decide whether or not to talk to that precise women. She seats down next to me and engage a conversation. 'How is it you're here today?' I'm already regretting not having gone away when i still had the chance.</p>
<p>'Hello to you too' I say, still willing to show some manhood, even though I already know this women crushes manhood by pairs as a breakfast ritual.</p>
<p>In-extremist, I manage to babble some excuses about a rigorous lunch break time and leave the premises.</p>
</div>
</div>
<script type="text/javascript">
oMyThoughts.pageInit = function(asHash, bFirstPage)
{
self.vars('counter', 0);
self.vars('id', 0);
self.vars('default_text', '<p><br></p>');
self.vars('working', false);
self.vars('prec_displayed', 0);
self.vars('prec_content', 0);
self.vars('page', $('.page_nb').text());
self.vars('page_height', $('#editor').height());
var oQuill = new Quill('#editor', {
theme: 'bubble',
modules:
{
toolbar: [['bold', 'italic', 'underline'], [{ 'list': 'ordered'}, { 'list': 'bullet' }], ['clean']]
}
});
quill.on('text-change', function(delta, oldDelta, source) {
if(source == 'user')
{
}
});
$('.fa-prev').click(function(){moveToPage(-1);});
$('.fa-next').click(function(){moveToPage(1);});
};
oMyThoughts.onFeedback = function(sType, sMsg)
{
var $Feedback = $('#write_feedback');
$Feedback
.stop()
.fadeOut($Feedback.is(':empty')?0:'fast', function(){
$(this)
.empty()
.append($('<span>', {'class':sType}).text(sMsg))
.fadeIn('fast');
});
};
oMyThoughts.onQuitPage = function()
{
save();
return true;
};
function save(sContent)
{
if(sContent != self.vars('default_text'))
{
oMyThoughts.onFeedback('info', 'Saving...');
getInfo
(
'update',
function(asData)
{
self.vars('id', asData.id_thought);
oMyThoughts.onFeedback('notice', 'Saved ('+asData.led.substr(11, 5)+')');
},
{content:sContent, id:self.vars('id')},
function(sError)
{
oMyThoughts.onFeedback('error', 'Not saved! Un error occured: '+sError);
},
'POST'
);
}
}
function checkPageBook()
{
self.vars('working', true);
var iEm = $(1).toPx();
iEm = iEm.substr(0, iEm.length - 2);
$Editor = self.vars('editor');
//Content Height
var iContentHeight = $Editor.height();
//Calculates what should be displayed
iDisplayedHeight = iContentHeight % self.vars('max_height');
console.log(iContentHeight+'%'+self.vars('max_height')+'='+iDisplayedHeight);
//Navigation
var iNewPage = Math.ceil(iContentHeight / self.vars('max_height'));
moveToPage(iNewPage);
self.vars('prec_displayed', iDisplayedHeight);
self.vars('prec_content', iContentHeight);
self.vars('working', false);
}
function moveToPage(iNewPage)
{
if(iNewPage!=self.vars('page'))
{
self.vars('page', iNewPage);
console.log('moving to page '+self.vars('page'));
$('.page_nb').text(self.vars('page'));
self.vars('editor').css('top', (self.vars('page') - 1)*self.vars('max_height')*-1);
}
}
<div id="write">
<div id="write_feedback"></div>
<div id="nav">
<a class="fa fa-prev"></a>
<span class="page_nb">1</span>
<A class="fa fa-next"></a>
</div>
<div id="editor_container">
<div id="editor">
<p>So, I'm there, wondering about myself and my future - such a luxury by the way - when suddenly, someone approaches. mid-40s i'd say, elegant cold women, the kind you've learned not to talk to, to eventually avoid feeling repressed, or bad for yourself, or both.</p>
<p>Anyhow, it would seem that in this particular situation, the choice wasn't given to me to decide whether or not to talk to that precise women. She seats down next to me and engage a conversation. 'How is it you're here today?' I'm already regretting not having gone away when i still had the chance.</p>
<p>'Hello to you too' I say, still willing to show some manhood, even though I already know this women crushes manhood by pairs as a breakfast ritual.</p>
<p>In-extremist, I manage to babble some excuses about a rigorous lunch break time and leave the premises.</p>
<p>So, I'm there, wondering about myself and my future - such a luxury by the way - when suddenly, someone approaches. mid-40s i'd say, elegant cold women, the kind you've learned not to talk to, to eventually avoid feeling repressed, or bad for yourself, or both.</p>
<p>Anyhow, it would seem that in this particular situation, the choice wasn't given to me to decide whether or not to talk to that precise women. She seats down next to me and engage a conversation. 'How is it you're here today?' I'm already regretting not having gone away when i still had the chance.</p>
<p>'Hello to you too' I say, still willing to show some manhood, even though I already know this women crushes manhood by pairs as a breakfast ritual.</p>
<p>In-extremist, I manage to babble some excuses about a rigorous lunch break time and leave the premises.</p>
</div>
</div>
</div>
<script type="text/javascript">
oMyThoughts.pageInit = function(asHash, bFirstPage)
{
self.vars('counter', 0);
self.vars('id', 0);
self.vars('default_text', '<p><br></p>');
self.vars('working', false);
self.vars('prec_displayed', 0);
self.vars('prec_content', 0);
self.vars('page', $('.page_nb').text());
self.vars('page_height', $('#editor').height());
var oQuill = new Quill('#editor', {
theme: 'bubble',
modules:
{
toolbar: [['bold', 'italic', 'underline'], [{ 'list': 'ordered'}, { 'list': 'bullet' }], ['clean']]
}
});
oQuill.on('text-change', function(delta, oldDelta, source) {
if(source == 'user')
{
var range = oQuill.getSelection();
if(range)
{
var oBound = oQuill.getBounds(range.index, range.length);
$('#editor').append($('<div>', {style:'background:red;width:1px;height:'+(oBound.bottom - oBound.top)+'px;position:absolute;top:'+oBound.top+'px;left:'+oBound.left+'px;'}));
$('#editor').append($('<div>', {style:'background:red;width:1px;height:10px;position:absolute;top:0px;left:0px;'}));
$('#editor').append($('<div>', {style:'background:red;width:1px;height:10px;position:absolute;top:'+($('#editor').height() - 10)+'px;left:'+($('#editor').width() - 1)+'px;'}));
}
}
});
$('.fa-prev').click(function(){moveToPage(-1);});
$('.fa-next').click(function(){moveToPage(1);});
};
oMyThoughts.onFeedback = function(sType, sMsg)
{
var $Feedback = $('#write_feedback');
$Feedback
.stop()
.fadeOut($Feedback.is(':empty')?0:'fast', function(){
$(this)
.empty()
.append($('<span>', {'class':sType}).text(sMsg))
.fadeIn('fast');
});
};
oMyThoughts.onQuitPage = function()
{
save();
return true;
};
function save(sContent)
{
if(sContent != self.vars('default_text'))
{
oMyThoughts.onFeedback('info', 'Saving...');
getInfo
(
'update',
function(asData)
{
self.vars('id', asData.id_thought);
oMyThoughts.onFeedback('notice', 'Saved ('+asData.led.substr(11, 5)+')');
},
{content:sContent, id:self.vars('id')},
function(sError)
{
oMyThoughts.onFeedback('error', 'Not saved! Un error occured: '+sError);
},
'POST'
);
}
}
function checkPageBook()
{
self.vars('working', true);
var iEm = $(1).toPx();
iEm = iEm.substr(0, iEm.length - 2);
$Editor = self.vars('editor');
//Content Height
var iContentHeight = $Editor.height();
//Calculates what should be displayed
iDisplayedHeight = iContentHeight % self.vars('max_height');
console.log(iContentHeight+'%'+self.vars('max_height')+'='+iDisplayedHeight);
//Navigation
var iNewPage = Math.ceil(iContentHeight / self.vars('max_height'));
moveToPage(iNewPage);
self.vars('prec_displayed', iDisplayedHeight);
self.vars('prec_content', iContentHeight);
self.vars('working', false);
}
function moveToPage(iNewPage)
{
if(iNewPage!=self.vars('page'))
{
self.vars('page', iNewPage);
console.log('moving to page '+self.vars('page'));
$('.page_nb').text(self.vars('page'));
self.vars('editor').css('top', (self.vars('page') - 1)*self.vars('max_height')*-1);
}
}
</script>

42
style/_logon.scss Normal file
View File

@@ -0,0 +1,42 @@
/* Log on */
#logon {
width: 496px;
height: 225px;
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
margin: auto;
background: transparent url('../images/bubble_inverted.png') 0 0 no-repeat;
}
#logon, #logon input {
font-size:30px;
border:none;
background-color:transparent;
}
#logon .credentials {
margin:45px 0 0 0 ;
}
#logon .credentials input {
width: 305px;
padding:0 60px;
text-align: center;
}
#logon input.connection {
position:absolute;
left:374px;
top:140px;
cursor:pointer;
}
#logon .register {
margin-top:60px;
text-align: center;
}

View File

@@ -1,6 +1,94 @@
#write {
.ql-container {
font-family: 'Indie Flower', cursive;
font-size: 16px;
height:100%;
#editor_container {
padding:1em;
height: calc(100% - 4em);
overflow: hidden;
.ql-container {
font-family: 'Indie Flower', cursive;
font-size: 16px;
padding:0;
overflow: hidden;
.ql-editor {
padding:0;
height:auto;
}
}
}
}
/* Write - Editor */
#write #editor div {
margin:0;
}
#write #editor p {
text-indent: 1.5em;
margin:1em 0 0 0;
padding:0;
text-align: justify;
}
#write .jqte_editor p:FIRST-CHILD, #write .jqte_toolbar {
margin-top:0.5em;
}
/* Write - Toolbar */
#write #nav {
position:absolute;
bottom:0;
right:0;
left:0;
text-align: center;
}
#write .fa-prev, #write .page_nb, #write .fa-next {
color:#997E60;
font-size:1.5em;
margin:0 0 0.5em 0;
cursor:pointer;
}
#write .page_nb {
font-size: 1em;
vertical-align:0.25em;
cursor: default;
padding-left:0.5em;
padding-right:0.5em;
}
#write .fa-prev:hover, #write .fa-next:hover {
color:#584127;
}
#write .fa-prev.disabled, #write .fa-next.disabled,
#write .fa-prev.disabled:hover, #write .fa-next.disabled:hover {
color:#EDE0D0;
}
/* Write - Placeholder */
#write .jqte_placeholder_text {
top:1em;
left:0;
text-indent: 1.5em;
}
#write .jqte_focused .jqte_placeholder_text {
display:none;
}
/* Write - Feedback */
#write_feedback {
position:absolute;
top: -1.5em;
right:0.5em;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,465 +1,347 @@
/* Colors
Very Very Bright Brown: #f7f2eb
Very Bright Brown: #ede0d0
bright brown : #e2ccb2
dark brown : #584127
blue lines : #2DCDFF
red lines : #EC3B45
*/
/* Fonts */
@import 'font-awesome';
@import url('https://fonts.googleapis.com/css?family=Indie+Flower');
/* Plugins */
@import 'quill.bubble';
/* Pages */
@import 'write';
/* General */
body {
min-width: 700px;
font-family: 'Indie Flower', cursive;
font-size:1em;
background-color:#e2ccb2;
margin:0;
color:#584127;
}
table {
border:none;
background:none;
text-align:center;
margin:0;
padding:0;
border-spacing:0;
}
input, textarea {
font-family: 'Indie Flower', cursive;
font-size:1em;
color:#584127;
}
input[type=button], input[type=submit] {
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
font-weight:bold;
color:#584127;
}
p {
margin:0;
padding:0;
}
a:visited, a {
color:#584127;
text-decoration: none;
font-weight: bold;
}
a:active, a:focus, input:active, input:focus {
outline: none;
}
.round {
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
}
.round_top {
-moz-border-radius:3px 3px 0 0;
-webkit-border-radius:3px 3px 0 0;
border-radius:3px 3px 0 0;
}
.round_right {
-moz-border-radius:0 3px 3px 0;
-webkit-border-radius:0 3px 3px 0;
border-radius:0 3px 3px 0;
}
button::-moz-focus-inner, input[type="reset"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, input[type="submit"]::-moz-focus-inner,input[type="file"] > input[type="button"]::-moz-focus-inner {
border: none;
}
/* Common Classes */
a.button {
font-weight:normal;
height:50px;
width:50px;
line-height:50px;
font-size: 1.2em;
text-align:center;
background: url("../images/minicloud.png") 0 0 no-repeat;
}
a.button:hover {
color:white;
background-position:0 -50px;
}
a.button:active {
color:white;
background-position:0 -100px;
}
/* Container */
#container {
position:absolute;
left:0;
right:0;
top:1em;
bottom:1em;
width:40em;
margin:auto;
}
/* Feedback */
#feedback {
position:absolute;
width:100%;
z-index:1000;
}
#feedback span.feedback {
display:block;
margin-bottom:1em;
width:calc(100% - 1em);
box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.6);
}
/* Header */
#header {
margin-left:-100px;
height:203px;
background:url('../images/logo.png') 0 0 no-repeat;
}
/* Menu */
#menu {
position:absolute;
top:0;
right:0;
}
/* Calendar */
#calendar {
position:absolute;
margin-top:-40px;
margin-left:560px;
}
table.calendar_list {
/*border:2px solid #584127;*/
background-color:#e2ccb2;
}
table.calendar_list tbody {
display:none;
border:2px solid #584127;
}
table.calendar_list:hover tbody {
display:inline-table;
overflow:visible;
}
table.calendar_list tr.calendar_items td {
background-position:-6px -7px;
background-repeat:no-repeat;
width:37px;
height:42px;
padding-top:2px;
padding-right:3px;
}
table.calendar_list tr th {
width:auto;
text-align:left;
font-size:16px;
/*border-bottom:2px solid #584127;*/
padding-top:2px;
}
table.calendar_list tr td.item_full {
background-image:url('../images/minicloud.png');
cursor:pointer;
}
table.calendar_list tr td.item_full:hover {
background-image:url('../images/minicloud_hover.png');
color:white;
}
table.calendar_list tr td.item_full:active {
background-image:url('../images/minicloud_active.png');
background-position: 53% 53%;
}
table.calendar_list tr td.item_empty {
background-image:url('../images/minicloud_disabled.png');
color:#e2ccb2;
font-weight:bold;
}
table.calendar_list tr td.item_disabled {
color:#e2ccb2;
}
a.calendar_direction {
text-decoration:none;
}
/* Main */
#main {
margin-top:1em;
position: absolute;
top:203px;
bottom:2em;
right:0;
left:0;
background:#EDE0D0;
border-radius: 0.5em;
}
/* Log on */
#logon {
width: 496px;
height: 225px;
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
margin: auto;
background: transparent url('../images/bubble_inverted.png') 0 0 no-repeat;
}
#logon, #logon input {
font-size:30px;
border:none;
background-color:transparent;
}
#logon .credentials {
margin:45px 0 0 0 ;
}
#logon .credentials input {
width: 305px;
padding:0 60px;
text-align: center;
}
#logon input.connection {
position:absolute;
left:374px;
top:140px;
cursor:pointer;
}
#logon .register {
margin-top:60px;
text-align: center;
}
/* Write */
/* Write - Container */
#write {
height:100%;
}
/* Write - Editor */
#write #editor div {
margin:0;
}
#write #editor p {
text-indent: 1.5em;
margin:1em 0 0 0;
padding:0;
text-align: justify;
}
#write .jqte_editor p:FIRST-CHILD, #write .jqte_toolbar {
margin-top:0.5em;
}
/* Write - Toolbar */
#write #nav {
position:absolute;
bottom:0;
right:0;
left:0;
text-align: center;
}
#write .fa-prev, #write .page_nb, #write .fa-next {
color:#997E60;
font-size:1.5em;
margin:0 0 0.5em 0;
cursor:pointer;
}
#write .page_nb {
font-size: 1em;
vertical-align:0.25em;
cursor: default;
padding-left:0.5em;
padding-right:0.5em;
}
#write .fa-prev:hover, #write .fa-next:hover {
color:#584127;
}
#write .fa-prev.disabled, #write .fa-next.disabled,
#write .fa-prev.disabled:hover, #write .fa-next.disabled:hover {
color:#EDE0D0;
}
/* Write - Placeholder */
#write .jqte_placeholder_text {
top:1em;
left:0;
text-indent: 1.5em;
}
#write .jqte_focused .jqte_placeholder_text {
display:none;
}
/* Write - Feedback */
#write_feedback {
position:absolute;
top: -1.5em;
right:0.5em;
}
/* Read */
div.read {
position:relative;
padding-bottom:30px;
}
div.thought {
font-size:16px;
line-height:20px;
}
p.date {
font-size:20px;
}
div.time {
position:absolute;
margin-left:-100px;
}
div.paragraphs p {
margin:0 0 20px 0;
}
div.paragraphs p:first-letter {
font-size:59px;
line-height:16px;
margin-right:5px;
font-weight:400;
float:left;
text-transform:uppercase;
}
div.paragraphs p + p, div.paragraphs p + p:first-letter {
font-size:inherit;
line-height:inherit;
margin-right:inherit;
font-weight:normal;
float:none;
text-indent:40px;
}
/* Settings */
#settings table tr td {
text-align:left;
}
/* Footer */
#footer {
position: absolute;
bottom: 0;
text-align:center;
color:grey;
font-size:0.9em;
width:100%;
height:2em;
}
#footer a {
color:grey;
}
/* Errors */
#errors {
position:fixed;
bottom:-2px;
background-color:white;
width:696px;
border:2px solid red;
}
#errors ul li {
list-style-image: url(../images/error.png);
color:red;
font-weight: bold;
font-size:24px;
}
fieldset {
margin:20px auto;
width:90%;
}
fieldset p {
text-align: justify;
}
/* Feedback */
.notice {
padding:0;
color:#997E60;
}
.error {
padding:0 0.5em;
color: red;
background:#FFB2B2;
}
.warning {
padding:0 0.5em;
color:orange;
background:#FFE4B2;
}
.success {
padding:0 0.5em;
color:green;
background:#B2D9B2;
/* Colors
Very Very Bright Brown: #f7f2eb
Very Bright Brown: #ede0d0
bright brown : #e2ccb2
dark brown : #584127
blue lines : #2DCDFF
red lines : #EC3B45
*/
/* Fonts */
@import 'font-awesome';
@import url('https://fonts.googleapis.com/css?family=Indie+Flower');
/* Plugins */
@import 'quill.bubble';
/* Pages */
@import 'logon';
@import 'write';
/* General */
body {
min-width: 700px;
font-family: 'Indie Flower', cursive;
font-size:1em;
background-color:#e2ccb2;
margin:0;
color:#584127;
}
table {
border:none;
background:none;
text-align:center;
margin:0;
padding:0;
border-spacing:0;
}
input, textarea {
font-family: 'Indie Flower', cursive;
font-size:1em;
color:#584127;
}
input[type=button], input[type=submit] {
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
font-weight:bold;
color:#584127;
}
p {
margin:0;
padding:0;
}
a:visited, a {
color:#584127;
text-decoration: none;
font-weight: bold;
}
a:active, a:focus, input:active, input:focus {
outline: none;
}
.round {
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
}
.round_top {
-moz-border-radius:3px 3px 0 0;
-webkit-border-radius:3px 3px 0 0;
border-radius:3px 3px 0 0;
}
.round_right {
-moz-border-radius:0 3px 3px 0;
-webkit-border-radius:0 3px 3px 0;
border-radius:0 3px 3px 0;
}
button::-moz-focus-inner, input[type="reset"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, input[type="submit"]::-moz-focus-inner,input[type="file"] > input[type="button"]::-moz-focus-inner {
border: none;
}
/* Common Classes */
a.button {
font-weight:normal;
height:50px;
width:50px;
line-height:50px;
font-size: 1.2em;
text-align:center;
background: url("../images/minicloud.png") 0 0 no-repeat;
}
a.button:hover {
color:white;
background-position:0 -50px;
}
a.button:active {
color:white;
background-position:0 -100px;
}
/* Container */
#container {
position:absolute;
left:0;
right:0;
top:1em;
bottom:1em;
width:40em;
margin:auto;
}
/* Feedback */
#feedback {
position:absolute;
width:100%;
z-index:1000;
}
#feedback span.feedback {
display:block;
margin-bottom:1em;
width:calc(100% - 1em);
box-shadow: 3px 3px 3px 0px rgba(0, 0, 0, 0.6);
}
/* Header */
#header {
margin-left:-100px;
height:203px;
background:url('../images/logo.png') 0 0 no-repeat;
}
/* Menu */
#menu {
position:absolute;
top:0;
right:0;
}
/* Calendar */
#calendar {
position:absolute;
margin-top:-40px;
margin-left:560px;
}
table.calendar_list {
/*border:2px solid #584127;*/
background-color:#e2ccb2;
}
table.calendar_list tbody {
display:none;
border:2px solid #584127;
}
table.calendar_list:hover tbody {
display:inline-table;
overflow:visible;
}
table.calendar_list tr.calendar_items td {
background-position:-6px -7px;
background-repeat:no-repeat;
width:37px;
height:42px;
padding-top:2px;
padding-right:3px;
}
table.calendar_list tr th {
width:auto;
text-align:left;
font-size:16px;
/*border-bottom:2px solid #584127;*/
padding-top:2px;
}
table.calendar_list tr td.item_full {
background-image:url('../images/minicloud.png');
cursor:pointer;
}
table.calendar_list tr td.item_full:hover {
background-image:url('../images/minicloud_hover.png');
color:white;
}
table.calendar_list tr td.item_full:active {
background-image:url('../images/minicloud_active.png');
background-position: 53% 53%;
}
table.calendar_list tr td.item_empty {
background-image:url('../images/minicloud_disabled.png');
color:#e2ccb2;
font-weight:bold;
}
table.calendar_list tr td.item_disabled {
color:#e2ccb2;
}
a.calendar_direction {
text-decoration:none;
}
/* Main */
#main {
margin-top:1em;
position: absolute;
top:203px;
bottom:2em;
right:0;
left:0;
background:#EDE0D0;
border-radius: 0.5em;
}
/* Read */
div.read {
position:relative;
padding-bottom:30px;
}
div.thought {
font-size:16px;
line-height:20px;
}
p.date {
font-size:20px;
}
div.time {
position:absolute;
margin-left:-100px;
}
div.paragraphs p {
margin:0 0 20px 0;
}
div.paragraphs p:first-letter {
font-size:59px;
line-height:16px;
margin-right:5px;
font-weight:400;
float:left;
text-transform:uppercase;
}
div.paragraphs p + p, div.paragraphs p + p:first-letter {
font-size:inherit;
line-height:inherit;
margin-right:inherit;
font-weight:normal;
float:none;
text-indent:40px;
}
/* Settings */
#settings table tr td {
text-align:left;
}
/* Footer */
#footer {
position: absolute;
bottom: 0;
text-align:center;
color:grey;
font-size:0.9em;
width:100%;
height:2em;
}
#footer a {
color:grey;
}
/* Errors */
#errors {
position:fixed;
bottom:-2px;
background-color:white;
width:696px;
border:2px solid red;
}
#errors ul li {
list-style-image: url(../images/error.png);
color:red;
font-weight: bold;
font-size:24px;
}
fieldset {
margin:20px auto;
width:90%;
}
fieldset p {
text-align: justify;
}
/* Feedback */
.notice {
padding:0;
color:#997E60;
}
.error {
padding:0 0.5em;
color: red;
background:#FFB2B2;
}
.warning {
padding:0 0.5em;
color:orange;
background:#FFE4B2;
}
.success {
padding:0 0.5em;
color:green;
background:#B2D9B2;
}