Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
229
Merge Requests
229
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
af5bc7cd
Commit
af5bc7cd
authored
Nov 24, 2003
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Made the Xtemplate theme degrade gracefully when CSS is disabled.
parent
c2a4a5ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
includes/theme.inc
includes/theme.inc
+1
-1
themes/xtemplate/xtemplate.css
themes/xtemplate/xtemplate.css
+4
-8
themes/xtemplate/xtemplate.xtmpl
themes/xtemplate/xtemplate.xtmpl
+5
-5
No files found.
includes/theme.inc
View file @
af5bc7cd
...
...
@@ -247,7 +247,7 @@ function theme_box($subject, $content, $region = "main") {
**/
function
theme_block
(
$block
)
{
$output
=
"<div class=
\"
block block-
$block->module
\"
id=
\"
block-
$block->module
-
$block->delta
\"
>"
;
$output
.
=
" <h
3>
$block->subject
</h3
>"
;
$output
.
=
" <h
2>
$block->subject
</h2
>"
;
$output
.
=
" <div class=
\"
content
\"
>
$block->content
</div>"
;
$output
.
=
"</div>"
;
return
$output
;
...
...
themes/xtemplate/xtemplate.css
View file @
af5bc7cd
...
...
@@ -142,21 +142,17 @@ table {
padding-bottom
:
0.75em
;
margin-bottom
:
1.5em
;
}
.node
{
padding
:
0
0
2.5em
0
;
}
.comment
{
border
:
1px
solid
#abc
;
padding
:
1.5em
1.5em
1.5em
1.5em
;
padding
:
0
1.5em
1.5em
1.5em
;
margin
:
0.5em
0
0.5em
0
;
}
.node
.title
,
.block
.title
,
.box
.title
,
.node
.title
a
,
.box
.title
a
{
padding-bottom
:
0.5em
;
.node
h2
,
.node
h2
a
,
.block
h2
,
.box
h2
{
font-weight
:
bold
;
font-size
:
1.3em
;
color
:
#777
;
}
.form-item
.title
{
.form-item
label
{
font-size
:
1em
;
color
:
#222
;
}
...
...
@@ -187,7 +183,7 @@ table {
.path
a
,
.path
a
:visited
{
color
:
#777
;
}
.comment
.title
{
.comment
h3
{
font-weight
:
bold
;
font-size
:
1.1em
;
color
:
#777
;
...
...
themes/xtemplate/xtemplate.xtmpl
View file @
af5bc7cd
...
...
@@ -52,7 +52,7 @@
<!-- BEGIN: node -->
<div
class=
"node"
>
<
div
class=
"title"
><a
href=
"{link}"
>
{title}
</a></div
>
<
h2><a
href=
"{link}"
>
{title}
</a></h2
>
<span
class=
"author"
>
Submitted by {author} on {date}.
</span>
<span
class=
"taxonomy"
>
{taxonomy}
</span>
<div
class=
"content"
>
{content}
</div>
...
...
@@ -62,8 +62,8 @@
<!-- BEGIN: comment_new -->
<div
class=
"comment"
>
<h3>
{title}
</h3>
<span
class=
"new"
>
new
</span>
<div
class=
"title"
>
{title}
</div>
<div
class=
"author"
>
Posted by {author} on {date}.
</div>
<div
class=
"content"
>
{content}
</div>
<div
class=
"links"
>
»
{links}
</div>
...
...
@@ -72,7 +72,7 @@
<!-- BEGIN: comment_old -->
<div
class=
"comment"
>
<
div
class=
"title"
>
{title}
</div
>
<
h3>
{title}
</h3
>
<div
class=
"author"
>
Posted by {author} on {date}.
</div>
<div
class=
"content"
>
{content}
</div>
<div
class=
"links"
>
»
{links}
</div>
...
...
@@ -81,14 +81,14 @@
<!-- BEGIN: box -->
<div
class=
"box"
>
<
div
class=
"title"
>
{subject}
</div
>
<
h2>
{subject}
</h2
>
<div
class=
"content"
>
{content}
</div>
</div>
<!-- END: box -->
<!-- BEGIN: block -->
<div
class=
"block block-{module}"
id=
"block-{module}-{delta}"
>
<
div
class=
"title"
>
{subject}
</div
>
<
h2>
{subject}
</h2
>
<div
class=
"content"
>
{content}
</div>
</div>
<!-- END: block -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment