Changeset 6b7db094


Ignore:
Timestamp:
May 23, 2016 1:25:18 PM (5 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
147a7e4
Parents:
9d3dec8
Message:

Add toggles to i2psnark in preparation for CSS3 collapsible sections

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r9d3dec8 r6b7db094  
    20552055        out.write("<form action=\"_post\" method=\"POST\">\n");
    20562056        writeHiddenInputs(out, req, "Add");
    2057         out.write("<div class=\"addtorrentsection\"><span class=\"snarkConfigTitle\">");
     2057        out.write("<div class=\"addtorrentsection\">");
     2058        out.write("<input class=\"toggle_input\" id=\"toggle_addtorrent\" type=\"checkbox\"><label class=\"toggleview\" for=\"toggle_addtorrent\">");
    20582059        out.write(toThemeImg("add"));
    20592060        out.write(' ');
    20602061        out.write(_t("Add Torrent"));
    2061 
    2062         out.write("</span><hr>\n<table border=\"0\"><tr><td>");
     2062        out.write("</label>");
     2063
     2064        out.write("<hr>\n<table border=\"0\"><tr><td>");
    20632065        out.write(_t("From URL"));
    20642066        out.write(":<td><input type=\"text\" name=\"nofilter_newURL\" size=\"85\" value=\"" + newURL + "\" spellcheck=\"false\"");
     
    20922094        out.write("<form action=\"_post\" method=\"POST\">\n");
    20932095        writeHiddenInputs(out, req, "Create");
    2094         out.write("<span class=\"snarkConfigTitle\">");
     2096        out.write("<input class=\"toggle_input\" id=\"toggle_createtorrent\" type=\"checkbox\"><label class=\"toggleview\" for=\"toggle_createtorrent\">");
    20952097        out.write(toThemeImg("create"));
    20962098        out.write(' ');
    20972099        out.write(_t("Create Torrent"));
    2098         out.write("</span><hr>\n<table border=\"0\"><tr><td>");
     2100        out.write("</label><hr>\n<table border=\"0\"><tr><td>");
    20992101        //out.write("From file: <input type=\"file\" name=\"newFile\" size=\"50\" value=\"" + newFile + "\" /><br>\n");
    21002102        out.write(_t("Data to seed"));
  • installer/resources/themes/snark/light/snark.css

    r9d3dec8 r6b7db094  
    403403}
    404404
    405 .snarkConfigTitle {
     405.snarkConfigTitle, label.toggleview {
    406406     font-size: 10.5pt;
    407407     font-weight: bold;
     
    424424}
    425425
    426 .snarkConfigTitle img {
     426.snarkConfigTitle img, label.toggleview img {
    427427     margin-right: -3px;
    428428     padding-bottom: 3px;
     
    888888     width: 230px;
    889889}
     890
     891/* toggle create/add panel view */
     892
     893input.toggle_input { /* hide checkbox and use label as faux panel heading */
     894     display: none;
     895}
  • installer/resources/themes/snark/ubergine/snark.css

    r9d3dec8 r6b7db094  
    455455}
    456456
    457 .snarkConfigTitle {
     457.snarkConfigTitle, label.toggleview {
    458458     font-size: 11pt;
    459459     font-weight: bold;
     
    922922     width: 230px;
    923923}
     924
     925/* toggle create/add panel view */
     926
     927input.toggle_input { /* hide checkbox and use label as faux panel heading */
     928     display: none;
     929}
  • installer/resources/themes/snark/vanilla/snark.css

    r9d3dec8 r6b7db094  
    467467}
    468468
    469 .snarkConfigTitle {
     469.snarkConfigTitle, label.toggleview {
    470470     font-size: 11pt;
    471471     font-weight: bold;
     
    485485}
    486486
    487 .snarkConfigTitle img {
     487.snarkConfigTitle img, label.toggleview img {
    488488     margin-right: -3px;   
    489489}
     
    939939     width: 230px;
    940940}
     941
     942/* toggle create/add panel view */
     943
     944input.toggle_input { /* hide checkbox and use label as faux panel heading */
     945     display: none;
     946}
Note: See TracChangeset for help on using the changeset viewer.