Browse Source

* fixed typo

* new balck/green ascii theme (the nerdy one)
master
age 15 years ago
parent
commit
e6965127e8
  1. 4
      src/cryptobox/core/container.py
  2. 470
      www-data/cryptobox-ascii_black_green.css

4
src/cryptobox/core/container.py

@ -71,7 +71,7 @@ class CryptoBoxContainer:
def get_name(self):
"""Return a humanly readable name for the container.
"""Return a human readable name for the container.
Available since: 0.3.0
"""
@ -211,7 +211,7 @@ class CryptoBoxContainer:
the 'device' attribute does not need to be reset during __init__
Available since: 0.3.0
"""
if reset_device():
if reset_device:
self.device.reset()
self.uuid = self.__get_uuid()
self.cont_type = self.__get_type_of_partition()

470
www-data/cryptobox-ascii_black_green.css

@ -0,0 +1,470 @@
/*
* CryptoBox CSS stylesheet file
*
* Copyright 2005-2007 sense.lab e.V.
*
* This file is part of the CryptoBox.
*
* The CryptoBox is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The CryptoBox is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the CryptoBox; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
body {
text-align: center;
font-size: 0.9em;
margin: 0;
padding: 0;
font-family: verdana, lucida, arial, helvetica, sans-serif;
background-color: black;
color: green;
}
a, a:hover, a:link, a:visited {
text-decoration: none;
color: #ff0;
}
img {
/* disable all graphics */
width: 0px;
height: 0px;
border:none;
}
div#main {
text-align: left;
background: none;
padding: 20px;
margin-left: 140px;
}
legend img {
width: 32px;
height: 32px;
vertical-align: middle;
}
#main h1, h2, h3, legend {
font-family: sans-serif, arial;
font-weight: normal;
letter-spacing: 0.05em;
color: #0f0;
font-variant: small-caps;
/* RFC: what is this padding for? */
padding: 0 1em;
text-align: left;
}
#main h1 {
font-size: 2em;
}
#main h2 {
font-size: 1.5em;
}
#main h3, legend {
font-size: 1.2em;
}
div#head table {
width: 100%;
}
div#head div.logo {
width: 0px;
text-align: right;
margin: 0 0 20px 0;
}
#words {
min-height: 260px;
padding: 1.1em;
margin-top: 0;
}
#words h1{
font-size: 1.8em;
}
#words h2{
font-size: 1.4em;
}
#words ol, #words ul {
font-size: 0.9em;
}
#words ol li {
padding: 0 1em;
line-height: 1.7em;
}
#words ul li {
padding: 0 1em;
line-height: 1.7em;
list-style-image: url(list.gif);
}
#words ul.lang li {
list-style-image: url(face_smile_big.png);
}
div#footer {
margin-top:10px;
clear: both;
text-align: center;
font-size: 0.8em;
color: #0f0;
}
div#footer a:link, #footer a:visited {
color: #ff0;
margin: 5px;
text-decoration: none;
border: none;
padding: 4px;
}
div#footer a:hover {
text-decoration: underline;
}
/* -------=-=-=- operational messages -=-=-=-------- */
fieldset.message table {
width: 100%;
}
fieldset.message td {
padding: 0 2px 0 2px;
}
#words fieldset.message {
text-align: left;
margin: 20px;
padding: 0 10px 0 0;
border: 1px solid #00ff00;
color: #0f0;
font-size: 0.9em;
}
#words fieldset.message td.text h1 {
font-size: 1.5em;
padding: 0px;
margin: 2px 0 2px 0;
}
#words fieldset.message td.message_symbol img {
width: 24px;
height: 24px;
padding: 5px 20px 5px 10px;
border: none;
vertical-align: middle;
}
#words fieldset.message td.link {
text-align: right;
}
#words fieldset.message td.link a {
color: #0f0;
font-weight: 600;
font-style: italic;
text-decoration: none;
}
#words fieldset.message td.link a:hover {
text-decoration: underline;
}
/* -------=-=-=- environmental messages -=-=-=-------- */
div.EnvironmentWarning fieldset.message {
text-align: left;
margin: 0 2px 8px 2px;
padding: 5px;
border: 1px dotted #0f0;
color: #f00;
font-size: 0.9em;
/* background-image: url(environment_warning_background.png); */
}
div.EnvironmentWarning fieldset.message td.message_symbol img {
width: 16px;
height: 16px;
padding: 2px;
border: none;
vertical-align: middle;
}
div.EnvironmentWarning fieldset.message td.link {
text-align: right;
text-decoration: none;
}
div.EnvironmentWarning fieldset.message td.link a {
color: #ff0;
font-style: italic;
text-decoration: none;
}
div.EnvironmentWarning fieldset.message td.link a:hover {
text-decoration: none;
}
/* ----------------------=-=-=- Forms -=-=-=--------------------- */
/* pretty forms and buttons */
input {
border: 1px solid #ff0;
color: #0f0;
background-color: black;
padding: 2px 5px 1px 5px;
font-size: 1em;
}
input:hover {
border: 1px solid #0f0;
color: black;
background-color: #ff0;
font-size: 1em;
}
textarea {
font-family: arial, verdana, helvetica, sans-serif;
font-size: 1.1em;
border: 1px solid #0f0;
color: #fff;
padding: 2px 5px 1px 5px;
width: 450px;
}
textarea:hover {
color: #fff;
background-color: #0f0;
border: 1px solid #0f0;
}
button, input.button {
color: black;
background-color: #0f0;
border: 1px solid #ff0;
font-size: 0.8em;
font-weight: bold;
cursor: pointer;
margin: 2px 10px 2px 10px;
}
button:hover, input.button:hover {
color: black;
border: 1px solid #0f0;
background-color: #ff0;
}
#words form label {
min-width: 20em;
}
#words p {
text-align: center;
}
/* -------------=-=-=- main menu -=-=-=-------------- */
div#main_menu {
position: absolute;
float: left;
margin-top: 120px;
top: 5px;
left: 5px;
width: 130px;
}
/* -------------=-=-=- plugin icons -=-=-=--------------- */
div.plugin_menu, div.plugin_system, div.volume {
text-align: center;
margin: 10px 15px 10px 15px;
vertical-align: center;
padding: none;
}
div.plugin_menu img, div.plugin_system img, div.volume img {
border: none;
padding: none;
margin: none;
}
div.plugin_menu {
width: 100px;
background-position: center;
border: 1px solid #0f0;
}
div.plugin_menu_passive {
}
div.plugin_menu_active {
border: 2px solid #ff0;
}
div.plugin_menu_active a {
color: #0f0;
}
div.plugin_system {
float: left;
width: 80px;
/* It is necessary to define a unified height - otherwise a strange
* effect may appear, if the last element of the first line has only a
* one-lined description (and others have more than one line): the next
* element will not appear to the left of the next line, but right below
* the last element of the first line. */
height: 110px;
}
div.plugin_system img {
width: 48px;
height: 48px;
}
div.plugin_system_title img {
float: left;
width: 48px;
height: 48px;
padding-right: 10px;
}
div.plugin_system_overview img {
float: left;
width: 24px;
height: 24px;
padding-left: 15px;
padding-bottom: 5px;
}
div.volume {
/* FIXME: float-left breaks the background image in firefox */
float: left;
width: 80px;
}
div.volume img {
width: 64px;
height: 64px;
}
/* -------------=-=-=- help -=-=-=------------------ */
div.help_link {
text-align: right;
}
div.help_link a {
border: 1px solid #0ff;
padding: 2px;
color: #ff0;
font-size: 0.9em;
}
div.help_link img {
width: 0px;
height: 0px;
vertical-align: middle;
border: none;
}
div.help_text {
font-family: sans-serif, helvetica, sans-serif;
color: #0ff;
border: 1px dotted #0ff;
padding: 4px;
margin: 3px 0 3px 0;
clear: left;
}
/* --------------=-=-=- new volume pane -=-=-=----------- */
div#volume_content {
padding: 20px;
border: 2px dotted #ff0;
}
fieldset {
clear: left;
margin: 10px 0 10px 0;
padding: 25px;
border: 2px solid #0f0;
}
table#volume_area {
clear: both;
margin: 0;
padding: 0;
border: 0;
}
table#volume_area td.volume_plugin_active, table#volume_area td.volume_plugin_passive {
height: 10px;
text-align: left;
border-right: 1px dotted #0f0;
border-left: 1px dotted #0f0;
border-top: 1px dotted #0f0;
padding: 3px 10px 3px 10px;
}
table#volume_area td.volume_plugin_active {
height: 10px;
border-right: 2px dotted #ff0;
border-left: 2px dotted #ff0;
border-top: 2px dotted #ff0;
}
table#volume_area td.volume_plugin_active a {
color: #0f0;
}
table#volume_area td.volume_plugin_passive {
}
table#volume_area td.volume_plugin_active img, table#volume_area td.volume_plugin_passive img {
vertical-align: middle;
border: 0;
}
a.disk_symbol img {
/* margin-left: 20px; */
}
div#pane_div {
width: 100%;
}
div#pane_div table#pane {
border: none;
border-collapse: collapse;
width: 100%;
}
div#pane_div table#pane img{
width: 0px;
}
Loading…
Cancel
Save