From 28b41056e3ea962dce1ad017a3c0a60252195e7a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 27 May 2009 15:07:27 -0700 Subject: Restructure things so that the application is now just another module. Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here. --- modules/gallery/css/debug.css | 28 ++++++ modules/gallery/css/l10n_client.css | 185 ++++++++++++++++++++++++++++++++++++ modules/gallery/css/quick.css | 40 ++++++++ 3 files changed, 253 insertions(+) create mode 100644 modules/gallery/css/debug.css create mode 100644 modules/gallery/css/l10n_client.css create mode 100644 modules/gallery/css/quick.css (limited to 'modules/gallery/css') diff --git a/modules/gallery/css/debug.css b/modules/gallery/css/debug.css new file mode 100644 index 00000000..fe5665ad --- /dev/null +++ b/modules/gallery/css/debug.css @@ -0,0 +1,28 @@ +.gAnnotatedThemeBlock { + border: 1px solid #C00; + clear: both; + margin: 1em; + padding: 1em; + position: relative; +} + +.gAnnotatedThemeBlock_album_top { + float: right; +} + +.gAnnotatedThemeBlock_header_bottom { + float: right; +} + +.gAnnotatedThemeBlock div.title { + background: #C00; + border: 1px solid black; + color: white; + font-size: 110%; + padding: 4px; + position: absolute; + right: -1em; + top: -1em; + text-align: left; + -moz-border-radius: 5%; +} diff --git a/modules/gallery/css/l10n_client.css b/modules/gallery/css/l10n_client.css new file mode 100644 index 00000000..8973715f --- /dev/null +++ b/modules/gallery/css/l10n_client.css @@ -0,0 +1,185 @@ +// TODO(andy_st): Add original copyright notice from Drupal l10_client. +// TODO(andy_st): Add G3 copyright notice. +// TODO(andy_st): clean up formatting to match our other CSS files. + +/* $Id: l10n_client.css,v 1.6 2008/09/09 10:48:20 goba Exp $ */ + +/* width percentages add to 99% rather than 100% to prevent float +overflows from occurring in an unnamed browser that can't decide +how it wants to round. */ + +/* l10n_client container */ +#l10n-client { + text-align:left; + z-index:99; + line-height:1em; + color:#000; background:#fff; + position:fixed; + width:100%; height: 2em; + bottom:0px; left:0px; + overflow:hidden;} + + * html #l10n-client { + position:static;} + +#l10n-client-string-select .string-list, +#l10n-client-string-editor .source, +#l10n-client-string-editor .editor { + height:20em;} + +#l10n-client .labels { + overflow:hidden; + position:relative; + height:2em; + color:#fff; + background:#37a;} + + #l10n-client .labels .label { + display:none;} + + /* Panel toggle button (span) */ + #l10n-client .labels .toggle { + cursor:pointer; + display:block; + position:absolute; right:0em; + padding: 0em .75em; height:2em; line-height:2em; + text-transform:uppercase; + text-align:center; background:#000;} + + /* Panel labels */ + #l10n-client h2 { + border-left:1px solid #fff; + height:1em; line-height:1em; + padding: .5em; margin:0px; + font-size:1em; + text-transform:uppercase;} + + #l10n-client .strings h2 { + border:0px;} + + /* 25 + 37 + 37 = 99 */ + #l10n-client .strings { + width:25%; float:left;} + + #l10n-client .source { + width:37%; float:left;} + + #l10n-client .translation { + width:37%; float:left;} + +/* Translatable string list */ +#l10n-client-string-select { + display:none; + float:left; + width:25%;} + + #l10n-client .string-list { + height:17em; + overflow:auto; + list-style:none; list-style-image:none; + margin:0em; padding:0em;} + + #l10n-client .string-list li { + font-size:.9em; + line-height:1.5em; + cursor:default; + background:transparent; + list-style:none; list-style-image:none; + border-bottom:1px solid #ddd; + padding:.25em .5em; + margin:0em;} + + /* Green for translated */ + #l10n-client .string-list li.translated { + border-bottom-color:#9c3; + background:#cf6; color:#360;} + + #l10n-client .string-list li.translated:hover { + background: #df8;} + + #l10n-client .string-list li.translated:active { + background: #9c3;} + + #l10n-client .string-list li.hidden { + display:none;} + + /* Gray + Blue hover for untranslated */ + #l10n-client .string-list li.untranslated {} + + #l10n-client .string-list li.untranslated:hover { + background: #ace;} + + #l10n-client .string-list li.untranslated:active { + background: #8ac;} + + /* Selected string is indicated by bold text */ + #l10n-client .string-list li.active { + font-weight:bold;} + + #l10n-client #gL10nSearchForm { + background:#eee; + text-align:center; + height:2em; line-height:2em; + margin:0em; padding:.5em .5em; + } + + #l10n-client #gL10nSearchForm .form-item, + #l10n-client #gL10nSearchForm input.form-text, + #l10n-client #gL10nSearchForm #search-filter-go, + #l10n-client #gL10nSearchForm #search-filter-clear { + display:inline; + vertical-align:middle; + } + + #l10n-client #gL10nSearchForm .form-item { + margin:0em; + padding:0em; + } + + #l10n-client #gL10nSearchForm input.form-text { + width:80%; + } + + #l10n-client #gL10nSearchForm #search-filter-clear { + width:10%; + margin:0em; + } + + +#l10n-client-string-editor { + display:none; + float:left; + width:74%;} + + #l10n-client-string-editor .source { + overflow:hidden; + width:50%; float:left;} + + #l10n-client-string-editor .source .source-text { + line-height:1.5em; + background:#eee; + height:16em; margin:1em; padding:1em; + overflow:auto;} + + #l10n-client-string-editor .translation { + overflow:hidden; + width:49%; float:right;} + +#gL10nClientSaveForm { + padding:0em;} + + #gL10nClientSaveForm .form-textarea { + height:13em; + font-size:1em; line-height:1.25em; + width:95%;} + + #gL10nClientSaveForm .form-submit { + margin-top: 0em;} + + +#l10n-client form ul, +#l10n-client form li, +#l10n-client form input[type=submit], +#l10n-client form input[type=text] { + display: inline ! important ; +} diff --git a/modules/gallery/css/quick.css b/modules/gallery/css/quick.css new file mode 100644 index 00000000..02f9953e --- /dev/null +++ b/modules/gallery/css/quick.css @@ -0,0 +1,40 @@ +.gItem:hover { + background-color: #cfdeff; +} + +.gQuick { + border: none !important; + margin: 0 !important; + padding: 0 !important; +} + +#gQuickPane { + background: #000; + border-bottom: 1px solid #ccc; + opacity: 0.9; +} + +#gQuickPane a { + cursor: pointer; + float: left; + margin: 4px; +} + +#gQuickPaneOptions { + background: #000; + float: left; + width: 100%; +} + +#gQuickPaneOptions li a { + display: block; + float: none; + width: auto; + margin: 0; + padding: .5em .5em .5em .8em; + text-align: left; +} + +#gQuickPaneOptions li a:hover { + background-color: #4d4d4d; +} -- cgit v1.2.3