2015-04-26 12:48:37 +05:30
|
|
|
.zennable {
|
2015-09-11 14:41:01 +05:30
|
|
|
.zen-toggle-comment {
|
2015-04-26 12:48:37 +05:30
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.zen-enter-link {
|
2015-09-25 12:07:36 +05:30
|
|
|
color: $gl-gray;
|
2015-04-26 12:48:37 +05:30
|
|
|
position: absolute;
|
2015-09-11 14:41:01 +05:30
|
|
|
top: 0px;
|
2015-04-26 12:48:37 +05:30
|
|
|
right: 4px;
|
2015-09-11 14:41:01 +05:30
|
|
|
line-height: 40px;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.zen-leave-link {
|
|
|
|
display: none;
|
2015-09-25 12:07:36 +05:30
|
|
|
color: $gl-text-color;
|
2015-04-26 12:48:37 +05:30
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
right: 10px;
|
|
|
|
padding: 5px;
|
|
|
|
font-size: 36px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: #111;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
// Hide the Enter link when we're in Zen mode
|
2015-04-26 12:48:37 +05:30
|
|
|
input:checked ~ .zen-backdrop .zen-enter-link {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
// Show the Leave link when we're in Zen mode
|
2015-04-26 12:48:37 +05:30
|
|
|
input:checked ~ .zen-backdrop .zen-leave-link {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked ~ .zen-backdrop {
|
|
|
|
background-color: white;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1031;
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
border-radius: 0;
|
|
|
|
color: #000;
|
|
|
|
font-size: 20px;
|
|
|
|
line-height: 26px;
|
|
|
|
padding: 30px;
|
|
|
|
display: block;
|
|
|
|
outline: none;
|
|
|
|
resize: none;
|
|
|
|
height: 100vh;
|
|
|
|
max-width: 900px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
// Make the color of the placeholder text in the Zenned-out textarea darker,
|
|
|
|
// so it becomes visible
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
input:checked ~ .zen-backdrop textarea::-webkit-input-placeholder {
|
2015-09-11 14:41:01 +05:30
|
|
|
color: #A8A8A8;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
input:checked ~ .zen-backdrop textarea:-moz-placeholder {
|
2015-09-11 14:41:01 +05:30
|
|
|
color: #A8A8A8;
|
2015-04-26 12:48:37 +05:30
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked ~ .zen-backdrop textarea::-moz-placeholder {
|
2015-09-11 14:41:01 +05:30
|
|
|
color: #A8A8A8;
|
2015-04-26 12:48:37 +05:30
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked ~ .zen-backdrop textarea:-ms-input-placeholder {
|
2015-09-11 14:41:01 +05:30
|
|
|
color: #A8A8A8;
|
2015-04-26 12:48:37 +05:30
|
|
|
}
|
|
|
|
}
|