Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2243,3 +2243,27 @@ dt.d_decl:hover .decl_anchor {
text-align: right;
}
}


/**
* Messages boxes.
*/
.message-box {
padding: 1em 1em 1em 1em;
border-radius: 5px;
}
.message-box, .message-box a {
color: white;
}
.message-box-red {
background-color: #D60027;
}
.message-box-gray {
background-color: #797979;
}
.message-box-orange {
background-color: #EC5315;
}
.message-box-green {
background-color: #4EBA0F;
}
8 changes: 8 additions & 0 deletions dlang.org.ddoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ COMMON_SCRIPTS_DLANG =
$(SCRIPTLOAD $(STATIC js/run.js))
_=

COMPATIBILITY_BOX_DEPRECATED = $(MESSAGE_BOX red, $(B Deprecated) - $0)
COMPATIBILITY_BOX_SUPERSEDED = $(MESSAGE_BOX gray, $(B Obsolete) - $0)
COMPATIBILITY_BOX_OBSOLETE = $(MESSAGE_BOX gray, $(B Obsolete) - $0)
COMPATIBILITY_BOX_OUTDATED = $(MESSAGE_BOX gray, $(B Obsolete) - $0)
COMPATIBILITY_BOX_EXPERIMENTAL = $(MESSAGE_BOX orange, $(B Experimental) - $0)
_=

CONSOLE=$(TC pre, console notranslate, $0)
COPYRIGHT_FOUNDATION=Copyright © 1999-$(YEAR) by the $(LINK2 $(ROOT_DIR)foundation.html, D Language Foundation)
CPPCODE=$(TC pre, cppcode notranslate, $0)
Expand Down Expand Up @@ -205,6 +212,7 @@ MENU = <li><a href='$1'><span>$+</span></a></li>
MENU_W_SUBMENU = <li class='expand-container'><a class='expand-toggle' href='#'><span>$0</span></a>
MENU_W_SUBMENU_LINK = <li class='expand-container'><a class='expand-toggle' href='$1'><span>$+</span></a>
MENU_W_SUBMENU_END = </li>
MESSAGE_BOX = $(DIVC message-box message-box-$1, $+)
META_KEYWORDS=D programming language
META_DESCRIPTION=D Programming Language
MODDEFFILE=$(TC pre, moddeffile notranslate, $0)
Expand Down