2012-08-20 01:14:33 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
width: 200px;
|
|
|
|
}
|
|
|
|
#no-styles {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2014-10-01 19:51:25 +00:00
|
|
|
.checker {
|
|
|
|
display: inline;
|
2012-08-20 01:14:33 +00:00
|
|
|
}
|
|
|
|
.style-name {
|
2014-10-03 20:31:25 +00:00
|
|
|
cursor: default;
|
2012-08-20 01:14:33 +00:00
|
|
|
font-weight: bold;
|
2015-04-08 19:10:34 +00:00
|
|
|
margin-bottom: 2px;
|
2015-04-08 19:14:16 +00:00
|
|
|
display: block;
|
2012-08-20 01:14:33 +00:00
|
|
|
}
|
|
|
|
.actions {
|
|
|
|
font-size: x-small;
|
|
|
|
}
|
|
|
|
a, a:visited {
|
|
|
|
color: black;
|
|
|
|
}
|
2015-03-12 23:00:23 +00:00
|
|
|
|
2015-04-08 19:07:30 +00:00
|
|
|
.left-gutter {
|
|
|
|
display: table-cell;
|
|
|
|
width: 16px;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
.left-gutter input {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
.main-controls {
|
|
|
|
display: table-cell;
|
|
|
|
}
|
|
|
|
|
2012-08-20 01:14:33 +00:00
|
|
|
.entry {
|
2015-03-12 23:00:23 +00:00
|
|
|
padding: 0.5em 0;
|
2012-08-20 01:14:33 +00:00
|
|
|
border-bottom: 1px solid black;
|
|
|
|
}
|
2015-03-12 23:00:23 +00:00
|
|
|
.entry:first-child {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
.entry:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
body > DIV {
|
|
|
|
border-bottom: 1px solid black;
|
2015-04-17 14:33:03 +00:00
|
|
|
padding-bottom: 2px;
|
2015-03-12 23:00:23 +00:00
|
|
|
}
|
|
|
|
body > DIV:last-of-type,
|
|
|
|
body.blocked > DIV {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
#installed {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
2015-04-08 19:18:12 +00:00
|
|
|
#installed.disabled .style-name {
|
|
|
|
text-decoration: line-through;
|
2015-03-24 11:12:55 +00:00
|
|
|
}
|
2015-03-27 10:30:07 +00:00
|
|
|
#installed .actions a {
|
2015-07-19 15:27:19 +00:00
|
|
|
margin-right: 0.2em;
|
2015-03-27 10:30:07 +00:00
|
|
|
}
|
2015-03-12 23:00:23 +00:00
|
|
|
body > .actions {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
|
2015-04-17 14:33:03 +00:00
|
|
|
.actions > div:not(:last-child):not(#disable-all-wrapper), .actions > .main-controls > div:not(:last-child), #unavailable:not(:last-child), #unavailable + .actions {
|
2015-01-30 17:28:05 +00:00
|
|
|
margin-bottom: 0.75em;
|
|
|
|
}
|
2015-03-24 11:12:55 +00:00
|
|
|
.actions input, .actions label {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2015-03-12 23:00:23 +00:00
|
|
|
|
2015-01-30 17:28:05 +00:00
|
|
|
#unavailable {
|
2015-03-12 23:00:23 +00:00
|
|
|
border: none;
|
2015-03-27 10:30:07 +00:00
|
|
|
display: none;
|
2015-03-12 23:00:23 +00:00
|
|
|
}
|
|
|
|
body.blocked #installed,
|
|
|
|
body.blocked #find-styles,
|
2015-04-08 19:07:30 +00:00
|
|
|
body.blocked #write-style,
|
|
|
|
body:not(.blocked) #unavailable {
|
2015-03-12 23:00:23 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-02-17 19:01:15 +00:00
|
|
|
/* Never shown, but can be enabled with a style */
|
|
|
|
.enable, .disable {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-03-02 04:23:03 +00:00
|
|
|
|
|
|
|
/* 'New style' links */
|
|
|
|
#write-style-for {margin-right: .6ex}
|
|
|
|
.write-style-link {margin-left: .6ex}
|
|
|
|
.write-style-link::before, .write-style-link::after {font-size: x-small}
|
|
|
|
.write-style-link::before {content: "\00ad"} /* "soft" hyphen */
|
|
|
|
#match {overflow-wrap: break-word;}
|
|
|
|
|
|
|
|
/* "breadcrumbs" 'new style' links */
|
|
|
|
.breadcrumbs > .write-style-link {margin-left: 0}
|
|
|
|
.breadcrumbs:hover a {color: #bbb; text-decoration: none}
|
|
|
|
|
|
|
|
/* use just the subdomain name instead of the full domain name */
|
|
|
|
.breadcrumbs > .write-style-link[subdomain]:not(:nth-last-child(2)) {font-size: 0}
|
|
|
|
.breadcrumbs > .write-style-link[subdomain]:not(:nth-last-child(2))::before {
|
|
|
|
content: attr(subdomain);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* "dot" after each subdomain name */
|
|
|
|
.breadcrumbs > .write-style-link[subdomain]::after {content: "."}
|
|
|
|
/* no "dot" after top-level domain */
|
|
|
|
.breadcrumbs > .write-style-link:nth-last-child(2)::after {content: none}
|
|
|
|
/* "forward slash" before path ("this URL") */
|
|
|
|
.breadcrumbs > .write-style-link:last-child::before {content: "\200b/"}
|
2015-03-03 19:31:32 +00:00
|
|
|
.breadcrumbs > .write-style-link:last-child:first-child::before,
|
|
|
|
.breadcrumbs > .write-style-link[subdomain=""] + .write-style-link::before {content: none}
|
2015-07-19 15:27:19 +00:00
|
|
|
|
2015-03-03 19:31:32 +00:00
|
|
|
/* suppress TLD-only link */
|
|
|
|
.breadcrumbs > .write-style-link[subdomain=""] {display: none}
|
2015-03-02 04:23:03 +00:00
|
|
|
|
|
|
|
/* :hover style */
|
|
|
|
.breadcrumbs.url\(\) > .write-style-link, /* :hover or :focus on "this URL" sets class="url()" */
|
|
|
|
.breadcrumbs > .write-style-link:hover,
|
|
|
|
.breadcrumbs > .write-style-link:focus,
|
|
|
|
.breadcrumbs > .write-style-link:hover ~ .write-style-link[subdomain],
|
|
|
|
.breadcrumbs > .write-style-link:focus ~ .write-style-link[subdomain] {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2012-08-20 01:14:33 +00:00
|
|
|
</style>
|
2012-04-16 01:56:12 +00:00
|
|
|
|
2015-07-19 15:27:19 +00:00
|
|
|
<template data-id="style">
|
|
|
|
<div>
|
|
|
|
<div class="left-gutter">
|
|
|
|
<input class="checker" type="checkbox">
|
|
|
|
</div>
|
|
|
|
<div class="main-controls">
|
|
|
|
<label class="style-name"></label>
|
|
|
|
<div class="actions">
|
|
|
|
<a href="#" class="enable" i18n-text="enableStyleLabel"></a>
|
|
|
|
<a href="#" class="disable" i18n-text="disableStyleLabel"></a>
|
|
|
|
<a class="style-edit-link" href="edit.html?id=" i18n-text="editStyleLabel"></a>
|
|
|
|
<a href="#" class="delete" i18n-text="deleteStyleLabel"></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2012-08-20 01:14:33 +00:00
|
|
|
<script src="localization.js"></script>
|
2013-06-26 04:25:04 +00:00
|
|
|
<script src="health.js"></script>
|
2012-08-20 01:14:33 +00:00
|
|
|
<script src="storage.js"></script>
|
|
|
|
<script src="messaging.js"></script>
|
2015-02-09 04:25:35 +00:00
|
|
|
<script src="apply.js"></script>
|
2012-08-20 01:14:33 +00:00
|
|
|
</head>
|
2013-01-26 00:50:46 +00:00
|
|
|
<body id="stylish-popup">
|
2012-04-16 01:56:12 +00:00
|
|
|
|
2015-03-27 10:30:07 +00:00
|
|
|
<div id="unavailable"><div class="left-gutter"></div><div class="main-controls"><span id="unavailable-message" i18n-text="stylishUnavailableForURL"></span></div></div>
|
2015-01-30 17:28:05 +00:00
|
|
|
|
2012-08-20 01:14:33 +00:00
|
|
|
<div id="installed"></div>
|
2012-04-16 01:56:12 +00:00
|
|
|
|
2015-02-25 05:20:55 +00:00
|
|
|
<div class="actions">
|
2015-03-24 11:12:55 +00:00
|
|
|
<div id="disable-all-wrapper">
|
2015-04-08 19:07:30 +00:00
|
|
|
<div class="left-gutter">
|
|
|
|
<input id="disableAll" type="checkbox">
|
|
|
|
</div>
|
|
|
|
<div class="main-controls">
|
2015-03-27 10:30:07 +00:00
|
|
|
<label id="disableAll-label" for="disableAll" i18n-text="disableAllStyles"></label>
|
2015-04-08 19:07:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="left-gutter"></div>
|
|
|
|
<div class="main-controls">
|
2015-03-27 10:30:07 +00:00
|
|
|
<div id="find-styles"><a id="find-styles-link" href="#" i18n-text="findStylesForSite"></a></div>
|
|
|
|
<div id="manage-styles"><a id="open-manage-link" href="manage.html" i18n-text="openManage"></a></div>
|
|
|
|
<div id="write-style"><span id="write-style-for" i18n-text="writeStyleFor"></span></div>
|
2015-03-24 11:12:55 +00:00
|
|
|
</div>
|
2015-02-25 05:20:55 +00:00
|
|
|
</div>
|
2012-04-16 01:56:12 +00:00
|
|
|
|
2012-08-20 01:14:33 +00:00
|
|
|
<script src="popup.js"></script>
|
2012-04-16 01:56:12 +00:00
|
|
|
|
2012-08-20 01:14:33 +00:00
|
|
|
</body>
|
2014-10-03 20:31:25 +00:00
|
|
|
</html>
|