Remove unused Conpherence sprites
Summary: These were refactored out a while ago Test Plan: Grep codebase, use Conpherence on desktop, mobile. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11023
|
@ -148,7 +148,6 @@ return array(
|
|||
'rsrc/css/phui/phui-workpanel-view.css' => '198c7e6c',
|
||||
'rsrc/css/sprite-apps-large.css' => '20ec0cc0',
|
||||
'rsrc/css/sprite-apps.css' => 'd5baed0f',
|
||||
'rsrc/css/sprite-conpherence.css' => '3b4a0487',
|
||||
'rsrc/css/sprite-docs.css' => '5f65d0da',
|
||||
'rsrc/css/sprite-gradient.css' => '4bdb98a7',
|
||||
'rsrc/css/sprite-login.css' => 'a355d921',
|
||||
|
@ -817,7 +816,6 @@ return array(
|
|||
'setup-issue-css' => '8f852bc0',
|
||||
'sprite-apps-css' => 'd5baed0f',
|
||||
'sprite-apps-large-css' => '20ec0cc0',
|
||||
'sprite-conpherence-css' => '3b4a0487',
|
||||
'sprite-docs-css' => '5f65d0da',
|
||||
'sprite-gradient-css' => '4bdb98a7',
|
||||
'sprite-login-css' => 'a355d921',
|
||||
|
|
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 886 B |
Before Width: | Height: | Size: 895 B |
Before Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 410 B |
Before Width: | Height: | Size: 1,005 B |
Before Width: | Height: | Size: 965 B |
Before Width: | Height: | Size: 1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 418 B |
Before Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 306 B |
Before Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 776 B |
Before Width: | Height: | Size: 923 B |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.5 KiB |
|
@ -1,81 +0,0 @@
|
|||
{
|
||||
"version" : 1,
|
||||
"sprites" : {
|
||||
"conpherence_calendar_off" : {
|
||||
"name" : "conpherence_calendar_off",
|
||||
"rule" : ".conpherence_calendar_off",
|
||||
"hash" : "e796dcc485ac1c7538077602dec9d19d"
|
||||
},
|
||||
"conpherence_calendar_on" : {
|
||||
"name" : "conpherence_calendar_on",
|
||||
"rule" : ".conpherence_calendar_on, .device-desktop .conpherence_calendar_off:hover ",
|
||||
"hash" : "da4b7152589b0eb36834bfeda6b55c69"
|
||||
},
|
||||
"conpherence_conversation_off" : {
|
||||
"name" : "conpherence_conversation_off",
|
||||
"rule" : ".conpherence_conversation_off",
|
||||
"hash" : "74cf53c92e7ad9ad3a852adfb0e655f4"
|
||||
},
|
||||
"conpherence_conversation_on" : {
|
||||
"name" : "conpherence_conversation_on",
|
||||
"rule" : ".conpherence_conversation_on, .device-desktop .conpherence_conversation_off:hover ",
|
||||
"hash" : "e8c73f0fcf11cf7fe1b252ede2211b34"
|
||||
},
|
||||
"conpherence_files_off" : {
|
||||
"name" : "conpherence_files_off",
|
||||
"rule" : ".conpherence_files_off",
|
||||
"hash" : "44643c3e1ac4eb2d46fbb256220e5957"
|
||||
},
|
||||
"conpherence_files_on" : {
|
||||
"name" : "conpherence_files_on",
|
||||
"rule" : ".conpherence_files_on, .device-desktop .conpherence_files_off:hover ",
|
||||
"hash" : "9f7bab94f1afcacce64762023ad53974"
|
||||
},
|
||||
"conpherence_list_off" : {
|
||||
"name" : "conpherence_list_off",
|
||||
"rule" : ".conpherence_list_off",
|
||||
"hash" : "28326e81ee1fb2c7b615f42a95d7429b"
|
||||
},
|
||||
"conpherence_list_on" : {
|
||||
"name" : "conpherence_list_on",
|
||||
"rule" : ".conpherence_list_on, .device-desktop .conpherence_list_off:hover ",
|
||||
"hash" : "ee13901236f1f5a7db2d682ddc6884ce"
|
||||
},
|
||||
"conpherence_more_off" : {
|
||||
"name" : "conpherence_more_off",
|
||||
"rule" : ".conpherence_more_off",
|
||||
"hash" : "2c0e47c834fa96248b70d7b8c9a4a931"
|
||||
},
|
||||
"conpherence_more_on" : {
|
||||
"name" : "conpherence_more_on",
|
||||
"rule" : ".conpherence_more_on, .device-desktop .conpherence_more_off:hover ",
|
||||
"hash" : "6eefff663beef44f01d438ddda54a8b7"
|
||||
},
|
||||
"conpherence_people_off" : {
|
||||
"name" : "conpherence_people_off",
|
||||
"rule" : ".conpherence_people_off",
|
||||
"hash" : "fccd3f5b8fe2e0af32dcb58b912153c9"
|
||||
},
|
||||
"conpherence_people_on" : {
|
||||
"name" : "conpherence_people_on",
|
||||
"rule" : ".conpherence_people_on, .device-desktop .conpherence_people_off:hover ",
|
||||
"hash" : "f959cea0c9d0f22aeefabc398e5d4ea7"
|
||||
},
|
||||
"conpherence_settings_off" : {
|
||||
"name" : "conpherence_settings_off",
|
||||
"rule" : ".conpherence_settings_off",
|
||||
"hash" : "b28d654205d852c92606cd18e229a390"
|
||||
},
|
||||
"conpherence_settings_on" : {
|
||||
"name" : "conpherence_settings_on",
|
||||
"rule" : ".conpherence_settings_on, .device-desktop .conpherence_settings_off:hover ",
|
||||
"hash" : "50b5f0920d22874ba3416bf6d796cfbd"
|
||||
}
|
||||
},
|
||||
"scales" : [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"header" : "\/**\n * @provides sprite-conpherence-css\n * @generated\n *\/\n\n.sprite-conpherence {\n background-image: url(\/rsrc\/image\/sprite-conpherence.png);\n background-repeat: no-repeat;\n}\n\n@media\nonly screen and (min-device-pixel-ratio: 1.5),\nonly screen and (-webkit-min-device-pixel-ratio: 1.5) {\n .sprite-conpherence {\n background-image: url(\/rsrc\/image\/sprite-conpherence-X2.png);\n background-size: {X}px {Y}px;\n }\n}\n",
|
||||
"type" : "standard"
|
||||
}
|
|
@ -29,7 +29,6 @@ $generator = new CeleritySpriteGenerator();
|
|||
$sheets = array(
|
||||
'menu' => $generator->buildMenuSheet(),
|
||||
'apps' => $generator->buildAppsSheet(),
|
||||
'conpherence' => $generator->buildConpherenceSheet(),
|
||||
'apps-large' => $generator->buildAppsLargeSheet(),
|
||||
'payments' => $generator->buildPaymentsSheet(),
|
||||
'tokens' => $generator->buildTokenSheet(),
|
||||
|
|
|
@ -148,51 +148,6 @@ final class CeleritySpriteGenerator {
|
|||
return $sheet;
|
||||
}
|
||||
|
||||
|
||||
public function buildConpherenceSheet() {
|
||||
$name = 'conpherence';
|
||||
$icons = $this->getDirectoryList($name.'_1x');
|
||||
$scales = array(
|
||||
'1x' => 1,
|
||||
'2x' => 2,
|
||||
);
|
||||
$template = id(new PhutilSprite())
|
||||
->setSourceSize(32, 32);
|
||||
|
||||
$sprites = array();
|
||||
foreach ($icons as $icon) {
|
||||
$color = preg_match('/_on/', $icon) ? 'on' : 'off';
|
||||
|
||||
$prefix = $name.'_';
|
||||
|
||||
$sprite = id(clone $template)
|
||||
->setName($prefix.$icon);
|
||||
|
||||
$tcss = array();
|
||||
$tcss[] = '.'.$prefix.$icon;
|
||||
if ($color == 'on') {
|
||||
$class = str_replace('_on', '_off', $prefix.$icon);
|
||||
$tcss[] = '.device-desktop .'.$class.':hover ';
|
||||
}
|
||||
|
||||
$sprite->setTargetCSS(implode(', ', $tcss));
|
||||
|
||||
foreach ($scales as $scale_key => $scale) {
|
||||
$path = $this->getPath($prefix.$scale_key.'/'.$icon.'.png');
|
||||
$sprite->setSourceFile($path, $scale);
|
||||
}
|
||||
$sprites[] = $sprite;
|
||||
}
|
||||
|
||||
$sheet = $this->buildSheet($name, true);
|
||||
$sheet->setScales($scales);
|
||||
foreach ($sprites as $sprite) {
|
||||
$sheet->addSprite($sprite);
|
||||
}
|
||||
|
||||
return $sheet;
|
||||
}
|
||||
|
||||
public function buildDocsSheet() {
|
||||
$icons = $this->getDirectoryList('docs_1x');
|
||||
$scales = array(
|
||||
|
|
|
@ -1,75 +0,0 @@
|
|||
/**
|
||||
* @provides sprite-conpherence-css
|
||||
* @generated
|
||||
*/
|
||||
|
||||
.sprite-conpherence {
|
||||
background-image: url(/rsrc/image/sprite-conpherence.png);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
@media
|
||||
only screen and (min-device-pixel-ratio: 1.5),
|
||||
only screen and (-webkit-min-device-pixel-ratio: 1.5) {
|
||||
.sprite-conpherence {
|
||||
background-image: url(/rsrc/image/sprite-conpherence-X2.png);
|
||||
background-size: 132px 132px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.conpherence_calendar_off {
|
||||
background-position: 0px 0px;
|
||||
}
|
||||
|
||||
.conpherence_calendar_on, .device-desktop .conpherence_calendar_off:hover {
|
||||
background-position: -33px 0px;
|
||||
}
|
||||
|
||||
.conpherence_conversation_off {
|
||||
background-position: -66px 0px;
|
||||
}
|
||||
|
||||
.conpherence_conversation_on, .device-desktop .conpherence_conversation_off:hover {
|
||||
background-position: -99px 0px;
|
||||
}
|
||||
|
||||
.conpherence_files_off {
|
||||
background-position: 0px -33px;
|
||||
}
|
||||
|
||||
.conpherence_files_on, .device-desktop .conpherence_files_off:hover {
|
||||
background-position: -33px -33px;
|
||||
}
|
||||
|
||||
.conpherence_list_off {
|
||||
background-position: -66px -33px;
|
||||
}
|
||||
|
||||
.conpherence_list_on, .device-desktop .conpherence_list_off:hover {
|
||||
background-position: -99px -33px;
|
||||
}
|
||||
|
||||
.conpherence_more_off {
|
||||
background-position: 0px -66px;
|
||||
}
|
||||
|
||||
.conpherence_more_on, .device-desktop .conpherence_more_off:hover {
|
||||
background-position: -33px -66px;
|
||||
}
|
||||
|
||||
.conpherence_people_off {
|
||||
background-position: -66px -66px;
|
||||
}
|
||||
|
||||
.conpherence_people_on, .device-desktop .conpherence_people_off:hover {
|
||||
background-position: 0px -99px;
|
||||
}
|
||||
|
||||
.conpherence_settings_off {
|
||||
background-position: -33px -99px;
|
||||
}
|
||||
|
||||
.conpherence_settings_on, .device-desktop .conpherence_settings_off:hover {
|
||||
background-position: -66px -99px;
|
||||
}
|